Bug 352228 - Sending invitations to mail addresses formatted as follows fails: "someone@example.com" <someone@example.com>
Summary: Sending invitations to mail addresses formatted as follows fails: "someone@ex...
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: invitations (show other bugs)
Version: 5.1.2
Platform: Kubuntu Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-03 16:26 UTC by Gunter Ohrner
Modified: 2017-07-07 21:38 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.6.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gunter Ohrner 2015-09-03 16:26:36 UTC
If I add the following (interestingly formatted, but technically correct) mail address to the attendee list, my mail server rejects the invitation mail with the following error message:

Fehler beim Übertragen der Nachricht. Message sending failed since the following recipients were rejected by the server: "someone@example.com" <someone@example.com> (The server responded: "<"someone@example.com" <someone@example.com>>: "@" or "." expected after ""someone@example.com""")

The message stays stuck in the outbox. Simply opening and re-sending the message using kmail works and will successfully send the mail.

This stirs something up in my memory; I think we already had exactly the same - or an amazingly similar - bug in the past, a few years ago...

Reproducible: Always
Comment 1 Gunter Ohrner 2015-09-03 16:29:45 UTC
Ok, found it. This bugs looks similar to https://bugs.kde.org/show_bug.cgi?id=284685 .
Comment 2 Edward Viesel 2015-12-02 19:21:39 UTC
I can confirm this bug. Choosing an address of an attendee from KAddressBook in the format  "Firstname Lastname" <firstname.lastname@example.com> leads to the invitation being rejected. It is placed in the outbox of KMail with an error message in red.

Clicking on it and selecting "send" sends this e-mail, and everything is fine from thereon.

Interestingly enough, even though the error message mentions the syntax <"John Example" <someone@example.com>> as the cause for the rejection, I can see the address field of the message in the outbox, where the syntax is perfectly okay, displayed as:

John Example <someone@example.com

in the address field of KMail.

And, of course, the e-mail is then sent correctly.

It always happens.

Error message:
Fehler beim Übertragen der Nachricht. Message sending failed since the following recipients were rejected by the server: "Firstname Lastname" <firstname.lastname@example.com> (The server responded: "<"Firstname Lastname" <firstname.lastname@example.com>>: "@" or "." expected after ""Firstname Lastname""")

I am running Kubuntu 15.10, KMail and KAddressBook are version 5.02, KOrganizer doesn't give a version under Help>About.
Comment 3 Edward Viesel 2015-12-03 18:28:19 UTC
There seems to be further strange behaviour on sending e-mails via KOrganizer Groupware.

I have an IMAP account in KMail and a kind of legacy POP3 account with old e-mails (local folders).

Normally all e-mails sent with my new IMAP account (the POP3 is no longer active) are put in my Sent folder in the IMAP account, as specified under the Identity settings of KMail.

When I accept a change to an appointment from an organizer, the e-mail that is sent to confirm this change is suddenly placed in the Sent folder of the local folders. As all the other e-mails in there are really old, I can see that this error only occurs when accepting changes to an appointment made by the organizer (who is not me).

This seems to happen always with the aforementioned changes. If I am the organizer, the e-mails are placed in the correct IMAP Sent folder.
Comment 4 Gunter Ohrner 2016-04-27 09:32:05 UTC
This is still current as of

kOrganizer Version 5.1.3 
KDE Frameworks 5.18.0
Qt 5.5.1 (kompiliert gegen 5.5.1)

(Could not find application version in the version dropdown list here, though...)
Comment 5 Edward Viesel 2016-04-27 15:57:26 UTC
Yes, I can confirm that all the above-mentioned bugs are still current under:

(Kubuntu 16.04 LTS):

KOrganizer Version 5.1.3 
KDE Frameworks 5.18.0
Qt 5.5.1 (compiled against 5.5.1)
The xcb window system
Comment 6 kramski 2016-08-29 22:04:50 UTC
Same here on Arch Linux, KOrganizer/KMail 5.2.3.

To reproduce, I simply have to press "Select Attendees..." on the Attendees tab and select one.
'"Lastname, Firstname" <account@host.tld>' (testing with '"Kramski-Grote, Heinz Werner" <kramski@web.de>') is my (the?) default address format and not "interestingly formatted".

Error message here is:
Message sending failed since the following recipients were rejected by the server: "Kramski-Grote, Heinz Werner" <kramski@web.de> (The server responded: "5.5.4 RCPT command parameter unrecognized: "Heinz"")
Comment 7 Edward Viesel 2016-10-25 12:48:43 UTC
The bug is still active in Kubuntu 16.04.1 (KOrganizer Version 5.1.3)

Today, I noticed that KMail/KAddressbook display a similar syntax error:

If I send an e-mail with the following address:
John Example <someone@example.com>

And do a right click on the address in KMail and click on "Add to address book" (German version: "Zum Adressbuch hinzufügen"), the confirmation window that confirms that the address has been added to the address book displays the following wrong syntax for the (perfectly correct) address:

<"John Example" <someone@example.com>> 

So I assume the superfluous angle brackets are quite deeply embedded in KOrganzier.

The end result in KAddressbook is perfectly correct, though.
Comment 8 Laurent Montel 2017-07-07 11:56:52 UTC
Git commit 2fbc490b1c84e72633a2de82233fb89064a118f5 by Montel Laurent.
Committed on 07/07/2017 at 11:30.
Pushed by mlaurent into branch 'master'.

Fix Bug 362625 - Syntax error on sending mails to participants added to an appointment

FIXED-IN: 5.6.0
Related: bug 362625

M  +4    -4    src/individualmailcomponentfactory.cpp
M  +1    -1    src/individualmailcomponentfactory.h

https://commits.kde.org/incidenceeditor/2fbc490b1c84e72633a2de82233fb89064a118f5
Comment 9 kramski 2017-07-07 21:38:03 UTC
Thanks. Great to see long standing reports get solved.