-
-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sending message to contact with < or > in Recipient gets treated as "Sent" but is not received #1474
Comments
This is an anonymized copy of the message where I first noticed the issue. This mail was SEND by DC, but can not be RECEIVED by it. |
Are you working on this or shall I try my luck? |
@Hocuri please also have a look, might be related to #1438 EDIT: probably unrelated, @angelo-fuchs do you know if the issue is really new? i would assume, it is pretty old. or is it a regression? for fixing: email addresses in the database should never have the format just had a rough look:
|
I don't know if it is new. I could not find an open issue addressing it and it is in the current DC. I found the source of the Address: When I hit "copy" in my regular Mail program on an email that contains a name, it copies the mail with it. @Hocuri I am not working on this currently. |
yip, this is what i mean with adapt/split in dc_create_contact() - we should either (a) not accept the whole thing, (b) parse the email address out of the "name " thing - or (c) even split to name + addr if no name is given to dc_create_contact() explicitly. @Hocuri i assigned you to the issue. |
There is also dc_add_address_book() which does not call through to Contact::create() but directly to Contact::add_or_lookup(). So, I think that this should be done in Contact::add_or_lookup(). |
This does sound like a job for a regex. And we do not want to reject any bad email address, just the obvious ones. |
checking for validity - yes. but if it comes to "smart" things as splitting but we can put this into a but the very first, and maybe sufficient things is to improve |
When I write a message to a contact that has the form
It gets send by DC (tried Desktop and Android) and treated as fine, but it is neither actually sent, nor displayed in the other DC because we refuse to accept mails like this. (Which is maybe also a Bug, because a Groupmail that contains one of such adresses is dropped completely)
Steps to reproduce:
example <test@example.com>
or any other message with that formWhen send with DC-Desktop, DC-Android says in the log (but no alert shown; Should this be fixed as well?):
I noticed the issue because I somehow have a contact in my list with this form (I still try to figure out where it came from).
The text was updated successfully, but these errors were encountered: