A NOTE has been added to this issue. ====================================================================== http://dbmail.org/mantis/view.php?id=626 ====================================================================== Reported By: Tarick Assigned To: ====================================================================== Project: DBMail Issue ID: 626 Category: Database layer Reproducibility: always Severity: minor Priority: normal Status: new target: ====================================================================== Date Submitted: 16-Jul-07 12:29 CEST Last Modified: 16-Jul-07 13:06 CEST ====================================================================== Summary: Insert into dbmail_headervalue incorrectly parsed content of non-standard From: header Description: Broken one:
INSERT INTO dbmail_headervalue (headername_id, physmessage_id, headervalue) VALUES (4,68324,'"(no space here)\\\\ Name Surname" <"(one space here) user"@tld>'); but Valid one: INSERT INTO dbmail_fromfield (physmessage_id, fromname, fromaddr) VALUES (68324,'(space here) \\ Name Surname','"(two spaces here) user"@tld'); Original "From:" header (from dspam debug.messages before passing to dbmail and from Thunderbird sent source of message) From: " \\ Name Surname" <" user"@tld> Dbmail strips all spaces more than one to one space from " user"@tld and from the start of " \\ Name Surname" (i.e. leave one space if one exists and one if many). In dbmail_fromfield valid values inserted. ====================================================================== ---------------------------------------------------------------------- Tarick - 16-Jul-07 13:03 ---------------------------------------------------------------------- Correction: in steps to reproduce create account with email address: (two spaces)[EMAIL PROTECTED] Original header in Description: From: " \\ Name Surname" <" user"@tld> Dbmail strips all spaces more than one to one space from " user"@tld and from the start of " \\ Name Surname" (i.e. leave one space if one exists and one if many). In dbmail_fromfield valid values inserted. ---------------------------------------------------------------------- Tarick - 16-Jul-07 13:06 ---------------------------------------------------------------------- It seems Mantis also strips 2 spaces to 1 in "" construct. Correction: in steps to reproduce create account with email address: (two spaces)[EMAIL PROTECTED] Original header in Description: From: " \\ Name Surname" <"(2 spaces) user"@tld> Dbmail strips all spaces more than one to one space from "(2 spaces) user"@tld and from the start of " \\ Name Surname" (i.e. leave one space if one exists and one if many). In dbmail_fromfield valid values inserted. Ignore - Mantis test: " (2 spaces)test" Issue History Date Modified Username Field Change ====================================================================== 16-Jul-07 12:29 Tarick New Issue 16-Jul-07 13:03 Tarick Note Added: 0002292 16-Jul-07 13:06 Tarick Note Added: 0002293 ====================================================================== _______________________________________________ Dbmail-dev mailing list [email protected] http://twister.fastxs.net/mailman/listinfo/dbmail-dev
