The following bug has been CLOSED
======================================================================
http://dbmail.org/mantis/bug_view_advanced_page.php?bug_id=0000104
======================================================================
Reported By: gonecrazy
Assigned To: aaron
======================================================================
Project: DBMail
Bug ID: 104
Category: LMTP daemon
Reproducibility: always
Severity: major
Priority: normal
Status: closed
======================================================================
Date Submitted: 18-Oct-04 23:03 CEST
Last Modified: 13-Dec-04 11:35 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.
----------------------------------------------------------------------
aaron - 06-Nov-04 09:39 CET
----------------------------------------------------------------------
Ok, go ahead and get the latest CVS of dbmail_2_0_branch, add the
apostrophe, and let me know if it works. If so, I'll add the apostrophe
into CVS and it'll appear in DBMail 2.0.1.
----------------------------------------------------------------------
aaron - 16-Nov-04 22:02 CET
----------------------------------------------------------------------
Ok folks, escaping is in place in dbmail_2_0_branch, and so the apostrophe
has been added to the validchars list. Still needs to be done in HEAD,
however, but the escaping needs to be done first.
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
02-Nov-04 00:59aaron Assigned To => aaron
02-Nov-04 00:59aaron Status confirmed => assigned
06-Nov-04 09:39aaron Bugnote Added: 0000346
16-Nov-04 22:02aaron Bugnote Added: 0000358
16-Nov-04 22:02aaron Resolution open => fixed
16-Nov-04 22:02aaron Status assigned => resolved
13-Dec-04 11:35ilja Status resolved => closed
======================================================================