A BUGNOTE has been added to this bug. ====================================================================== http://dbmail.org/mantis/bug_view_advanced_page.php?bug_id=0000104 ====================================================================== Reported By: gonecrazy Assigned To: ====================================================================== Project: DBMail Bug ID: 104 Category: LMTP daemon Reproducibility: always Severity: major Priority: normal Status: confirmed ====================================================================== Date Submitted: 18-Oct-04 23:03 CEST Last Modified: 01-Nov-04 22:24 CET ====================================================================== Summary: Apostrophe in From address dosn't get delivered Description: If someone sends a message to a server running dbmail-lmtpd and there is a apostrophe in the from address (my'[EMAIL PROTECTED]) the deamon truncates the address at the apostrophe, and then refuses the mail becuase of in-proper address. ======================================================================
---------------------------------------------------------------------- aaron - 19-Oct-04 08:29 CEST ---------------------------------------------------------------------- The problem is that the apostrophe is not among the valid characters for an LMTP stream. Once the apostrophe arrives, the rest of the line appears to be ignored. From lmtp.c: static const char validchars[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" "[EMAIL PROTECTED]&*()-+=~[]{}<>:;\\/ "; Try adding an apostrophe into that list someplace (doesn't matter where) and recompile. Let us know if that works! ---------------------------------------------------------------------- gonecrazy - 20-Oct-04 18:29 CEST ---------------------------------------------------------------------- If you add an apostrophe to that list: static const char validchars[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" "[EMAIL PROTECTED]&*()'-+=~[]{}<>:;\\/ "; like so it does solve the problem. ---------------------------------------------------------------------- aaron - 01-Nov-04 22:24 CET ---------------------------------------------------------------------- First we have to make absolutely sure that all of the queries are escaped. Once that's done, we can add the apostrophe as an allowable character. Bug History Date Modified Username Field Change ====================================================================== 18-Oct-04 23:03gonecrazy New Bug 19-Oct-04 08:29aaron Bugnote Added: 0000317 19-Oct-04 19:13aaron Projection none => tweak 19-Oct-04 19:13aaron Status new => confirmed 20-Oct-04 18:29gonecrazy Bugnote Added: 0000318 23-Oct-04 23:27seanxkelly Bug Monitored: seanxkelly 01-Nov-04 22:24aaron Bugnote Added: 0000330 ======================================================================