Bug 359632 - Trojita does not recognize address list group syntax
Summary: Trojita does not recognize address list group syntax
Status: RESOLVED UNMAINTAINED
Alias: None
Product: trojita
Classification: Unmaintained
Component: Core (show other bugs)
Version: git
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Trojita default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-21 12:13 UTC by Erik Quaeghebeur
Modified: 2024-09-23 18:50 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Quaeghebeur 2016-02-21 12:13:35 UTC
Address list group syntax, as described in RFC 5322 (https://tools.ietf.org/html/rfc5322#section-3.4) is of the form "group1: adress1, address2;". It is seldom used, except to indicate undisclosed recipients, i.e., as "undisclosed-recipients:;". Its usefulness in this latter case is to omit addresses in the header. This use may be expanded in the future, see RFC 6854 (https://tools.ietf.org/html/rfc6854).

IMAP servers deal with group syntax in the envelope as follows (RFC 3501 Page 76, https://tools.ietf.org/html/rfc3501#section-7.4.2):

“[RFC-2822] group syntax is indicated by a special form of
address structure in which the host name field is NIL.  If the
mailbox name field is also NIL, this is an end of group marker
(semi-colon in RFC 822 syntax).  If the mailbox name field is
non-NIL, this is a start of group marker, and the mailbox name
field holds the group name phrase.”

For example "group: a@b, C <c@d>;" becomes

    (NIL NIL group NIL) (NIL NIL a b) (C NIL c d) (NIL NIL NIL NIL)

When faced with a message with such group syntax in an address list, Trojita outputs

    group@, a@b, C <c@d>, @

in the GUI Envelope view.

When replying to such a message,

    group@[]
    ""@[]

appear in the reply list.

Based on this, my impression is that both the underlying model and the GUI do not deal with group syntax correctly.

A thorough fix would be to fix the underlying model and GUI parts. A simple fix could perhaps consist of filtering out invalid addresses such as 'group@' and '@' from the address list. An intermediate fix would be to filter them out when replying and dealing correctly with group syntax when constructing the envelope view.

Reproducible: Always
Comment 1 Jan Kundrát 2016-02-22 13:01:00 UTC
Yes, it's a little annoying. I'll be happy to review patches which *fix* this, but please don't submit quick workarounds -- let's not paper over obvious defects.
Comment 2 Justin Zobel 2021-03-09 07:26:31 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 3 Erik Quaeghebeur 2021-03-09 08:25:04 UTC
Still relevant.
Comment 4 Christoph Cullmann 2024-09-23 18:50:44 UTC
Trojitá is no longer maintained, please switch to a maintained alternative like https://apps.kde.org/kmail2/

Sorry for the inconveniences.