The following bug has been CLOSED ====================================================================== http://dbmail.org/mantis/bug_view_advanced_page.php?bug_id=0000108 ====================================================================== Reported By: seanxkelly Assigned To: aaron ====================================================================== Project: DBMail Bug ID: 108 Category: Command-Line programs (dbmail-users, dbmail-util) Reproducibility: always Severity: major Priority: normal Status: closed ====================================================================== Date Submitted: 23-Oct-04 23:35 CEST Last Modified: 13-Dec-04 11:36 CET ====================================================================== Summary: dbmail-users does not allow apostrophe in alias Description: When trying to add an alias e-mail address containing an apostrophe, dbmail-users exits with "command failed". ======================================================================
---------------------------------------------------------------------- aaron - 25-Oct-04 10:11 CEST ---------------------------------------------------------------------- Are apostrophe's allowed characters in email addresses? We also have a problem receiving them. If they should be allowed, well, let's make them work! ---------------------------------------------------------------------- paul - 25-Oct-04 10:38 CEST ---------------------------------------------------------------------- Aaron, Quickly reading over rfc2822 reveals that basically anything goes in addresses, esp when quoted. Some relevant excepts: 3.2.4. Atom Several productions in structured header field bodies are simply strings of certain basic characters. Such productions are called atoms. Some of the structured header field bodies also allow the period character (".", ASCII value 46) within runs of atext. An additional "dot-atom" token is defined for those purposes. atext = ALPHA / DIGIT / ; Any character except controls, "!" / "#" / ; SP, and specials. "$" / "%" / ; Used for atoms "&" / "'" / "*" / "+" / "-" / "/" / "=" / "?" / "^" / "_" / "`" / "{" / "|" / "}" / "~" atom = [CFWS] 1*atext [CFWS] dot-atom = [CFWS] dot-atom-text [CFWS] dot-atom-text = 1*atext *("." 1*atext) Both atom and dot-atom are interpreted as a single unit, comprised of the string of characters that make it up. Semantically, the optional comments and FWS surrounding the rest of the characters are not part of the atom; the atom is only the run of atext characters in an atom, or the atext and "." characters in a dot-atom. 3.2.5. Quoted strings Strings of characters that include characters other than those allowed in atoms may be represented in a quoted string format, where the characters are surrounded by quote (DQUOTE, ASCII value 34) characters. 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 qcontent = qtext / quoted-pair quoted-string = [CFWS] DQUOTE *([FWS] qcontent) [FWS] DQUOTE [CFWS] A quoted-string is treated as a unit. That is, quoted-string is identical to atom, semantically. Since a quoted-string is allowed to contain FWS, folding is permitted. Also note that since quoted-pair is allowed in a quoted-string, the quote and backslash characters may appear in a quoted-string so long as they appear as a quoted-pair. Semantically, neither the optional CFWS outside of the quote characters nor the quote characters themselves are part of the quoted-string; the quoted-string is what is contained between the two quote characters. As stated earlier, the "\" in any quoted-pair and the CRLF in any FWS/CFWS that appears within the quoted-string are semantically "invisible" and therefore not part of the quoted-string either. [snip] 3.4.1. Addr-spec specification An addr-spec is a specific Internet identifier that contains a locally interpreted string followed by the at-sign character ("@", ASCII value 64) followed by an Internet domain. The locally interpreted string is either a quoted-string or a dot-atom. If the string can be represented as a dot-atom (that is, it contains no characters other than atext characters or "." surrounded by atext characters), then the dot-atom form SHOULD be used and the quoted-string form SHOULD NOT be used. Comments and folding white space SHOULD NOT be used around the "@" in the addr-spec. addr-spec = local-part "@" domain local-part = dot-atom / quoted-string / obs-local-part ---------------------------------------------------------------------- aaron - 01-Nov-04 00:39 CET ---------------------------------------------------------------------- Fixed in HEAD. Will resolve the bug once it's also fixed in dbmail_2_0_branch. ---------------------------------------------------------------------- aaron - 06-Nov-04 09:38 CET ---------------------------------------------------------------------- Fixed in dbmail_2_0_branch. Bug History Date Modified Username Field Change ====================================================================== 23-Oct-04 23:35seanxkelly New Bug 23-Oct-04 23:35seanxkelly Bug Monitored: seanxkelly 25-Oct-04 10:11aaron Bugnote Added: 0000319 25-Oct-04 10:38paul Bugnote Added: 0000321 01-Nov-04 00:39aaron Bugnote Added: 0000328 01-Nov-04 00:40aaron Assigned To => aaron 01-Nov-04 00:40aaron Status new => assigned 06-Nov-04 09:38aaron Bugnote Added: 0000345 06-Nov-04 09:38aaron Resolution open => fixed 06-Nov-04 09:38aaron Status assigned => resolved 13-Dec-04 11:36ilja Status resolved => closed ======================================================================