linagora / tmail-flutter

A multi-platform (Flutter) application for reading your emails, with your favorite devices, using the JMAP protocol!
GNU Affero General Public License v3.0
324 stars 73 forks source link

[EPIC] Sender Identity #447

Closed hoangdat closed 1 year ago

chibenwa commented 2 years ago

https://jmap.io/spec-mail.html#identities

-> One setting page to read, update, delete, create new identity -> Identity selector when sending an email

hoangdat commented 2 years ago

@chibenwa can you show us the request to create/edit identity, we try with /set but it is not successfully

chibenwa commented 2 years ago
{
    "using": ["urn:ietf:params:jmap:core", "urn:ietf:params:jmap:submission"],
    "methodCalls": [
        [
            "Identity/set",
            {
                "accountId": "29883977c13473ae7cb7678ef767cbfbaffc8a44a6e463d971d23a65c1dc4af6",
                "create": {
                    "4f29": {
                        "name": "Bob",
                        "email": "bob@domain.tld",
                        "replyTo": [{
                            "name": "Alice",
                            "email": "alice@domain.tld"
                        }],
                        "bcc": [{
                            "name": "David",
                            "email": "david@domain.tld"
                        }],
                        "textSignature": "Some text signature",
                        "htmlSignature": "<p>Some html signature</p>"
                    }
                }
            },
            "c1"
        ],
        ["Identity/get",
            {
                "accountId": "29883977c13473ae7cb7678ef767cbfbaffc8a44a6e463d971d23a65c1dc4af6",
                "ids": null
            }, "c2"
        ]

    ]
}

For instance. Please note that the email needs to be the mail address of the user or a valid alias. Valid aliases can be obtained by Identity/get .

we try with /set but it is not successfully

If possible share your errors...

dab246 commented 2 years ago

@chibenwa . I'm doing the edit identity feature. I use SetMethod but get this error

Screen Shot 2022-05-06 at 12 49 32.

chibenwa commented 2 years ago

https://github.com/apache/james-project/pull/992 fixes this.

We will deploy a hotfix next monday on preprod.

dab246 commented 2 years ago

Don't know if this bug has been fixed yet @chibenwa. I still get this error when I execute

chibenwa commented 2 years ago

Don't know if this bug has been fixed yet @chibenwa. I still get this error when I execute

Yes, merged but not deployed yet. Hang on...

chibenwa commented 2 years ago

I deployed the fix on preprod

chibenwa commented 2 years ago

Wait tmail backend 0.6.0 to be released for openpaas.linagpra.com