A NOTE has been added to this issue.
======================================================================
http://www.dbmail.org/mantis/view.php?id=718
======================================================================
Reported By: ilanco
Assigned To:
======================================================================
Project: DBMail
Issue ID: 718
Category: Database layer
Reproducibility: always
Severity: major
Priority: normal
Status: new
target:
======================================================================
Date Submitted: 11-Aug-08 15:29 CEST
Last Modified: 28-Dec-08 21:56 CET
======================================================================
Summary: dbmail_fromfield (fromaddr) has wrong data
Description:
When parsing an email dbmail will sometimes insert bad data in
dbmail_fromfield (fromaddr).
If the From header is of the form 'From: pr.latinnet
<[email protected]>'
(Real example) then dbmail will insert the following information in
dbmail_fromfield :
physmessage_id | id | fromname | fromaddr
----------------+--------+----------+-------------
774266 | 773084 | | pr.latinnet
My guess is that the character responsible for this is the '.' (dot).
I can reproduce this for every from line with '.'
======================================================================
----------------------------------------------------------------------
Toast - 16-Dec-08 14:14
----------------------------------------------------------------------
This issue is related to gmime. The gmime function
internet_address_list_to_string() returns the broken string.
I've attached a workaround patch, but please use with caution. I'm not
sure, wether it won't breaks some other stuff.
----------------------------------------------------------------------
paul - 28-Dec-08 21:56
----------------------------------------------------------------------
Sorry, the fix is invalid. Simply quoting *everything* before the
'<[email protected]>' atom will mess up perfectly valid, and correctly parsed
addresses.
Please look at the unit-tests in test/check_dbmail_imap.c
(test_imap_cleanup_address)
Issue History
Date Modified Username Field Change
======================================================================
11-Aug-08 15:29 ilanco New Issue
16-Dec-08 14:14 Toast Note Added: 0002704
16-Dec-08 14:14 Toast File Added: 0000718.patch
20-Dec-08 00:41 grosjo Issue Monitored: grosjo
28-Dec-08 21:56 paul Note Added: 0002724
======================================================================
_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev