https://bugs.kde.org/show_bug.cgi?id=336163
Bug ID: 336163 Summary: autocompletion shows multiple entries for one contact with different quotes Classification: Unclassified Product: kmail2 Version: Git (master) Platform: Compiled Sources OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: composer Assignee: kdepim-bugs@kde.org Reporter: kna...@kolabsys.com When typing a name you can get multiple results, that only differ in the quoutes they have: John Doe <d...@example.com> "John Doe" <d...@example.com> "'John Doe'" <d...@example.com> This is annoying and some versions are not allowed by RFC 2822. The bug should be either fixed in AddresseeLineEdit::addContact [kdepim]/libkdepim/addressline/addresslineedit or KPIMUtils::normalizedAddress [kdepimlibs]/kpimutils/email. relevant part of the RFC 2822: to = "To:" address-list CRLF address-list = (address *("," address)) / obs-addr-list address = mailbox / group mailbox = name-addr / addr-spec name-addr = [display-name] angle-addr angle-addr = [CFWS] "<" addr-spec ">" [CFWS] / obs-angle-addr display-name = phrase phrase = 1*word / obs-phrase word = atom / quoted-string atom = [CFWS] 1*atext [CFWS] atext = ALPHA / DIGIT / ; Any character except controls, "!" / "#" / ; SP, and specials. "$" / "%" / ; Used for atoms "&" / "'" / "*" / "+" / "-" / "/" / "=" / "?" / "^" / "_" / "`" / "{" / "|" / "}" / "~" quoted-string = [CFWS] DQUOTE *([FWS] qcontent) [FWS] DQUOTE [CFWS] qcontent = qtext / quoted-pair qtext = NO-WS-CTL / ; Non white space controls %d33 / ; The rest of the US-ASCII %d35-91 / ; characters not including "\" %d93-126 ; or the quote character quoted-pair = ("\" text) / obs-qp text = %d1-9 / ; Characters excluding CR and LF %d11 / %d12 / %d14-127 / obs-text obs-qp = "\" (%d0-127) obs-text = *LF *CR *(obs-char *LF *CR) obs-char = %d0-9 / %d11 / ; %d0-127 except CR and %d12 / %d14-127 ; LF Reproducible: Always Steps to Reproduce: 1. enter a name "Doe" 2. get mutliple results (from baloo) Expected Results: only one valid result. The bug #316036 is about different versions writing an email address. This one here cares about RFC and quotes. -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Kdepim-bugs mailing list Kdepim-bugs@kde.org https://mail.kde.org/mailman/listinfo/kdepim-bugs