Closed (cannot reproduce)
Project:
Mail Logger
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Sep 2009 at 20:07 UTC
Updated:
21 May 2014 at 09:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
miraclegr commentedThe same thing happens to me too.
Emails get logged correctly but an other empty record is also inserted in the database.
You can see the attachements for screenshots of the mail logger and the database records.
I have no idea why this is happening, but I don't have the "Reroute Email" module.
Regards
Comment #2
Babalu commentedtoo
Comment #3
mokko commentedThis problem still appears in dev today. Also: I noticed that while table on /admin/reports/mail-logger is empty, the table mail_logger is not. In the DB there is a header "N;", similar to screenshot above.
The problem doesn't happen with every mail, but every time I send my simplenews newsletter.
It looks like header gets split somehow. Maybe this also explains why some mails get corrupted, see http://drupal.org/node/388164. I am only guessing.
Comment #4
litwol commentedIf some one provides a patch i'll commit.
Comment #5
mokko commentedI am not convinced anymore that this is mail_logger's fault. I don't see how:
could possibly update more than one entry in the db. That would mean that
mail_logger_mail_alter(&$message)
gets called two times per mail, and this means that the logger should faithfully report it.
Also to produce such an incomplete mail would never result in any mail actually sent, since it is only produces a header, no $to, $from, $body etc. So it would NOT be really an obvious error which breaks any functionality. Let me see if I find a log of MTA.
EDIT: understanding qmail will take me some time...
Comment #6
miraclegr commentedI don't know if it is relevant by I get this behavour (double entry) when I enable the mimemail module and check the "Use mime mail for all messages", although the mail is send as plain text.
The mimemail module has some code in the function mimemail (line 161) were it calls mail_alter for each other module that implements it.
Trying to comment out this for loop (lines 161 through 164), the mail logger worked correctly. The mail still goes out correctly as plain text.
I have no idea what other implications this might have, but it is something I just noticed. Maybe someone else with better understanding of the mimemail module could help.
I also found this:
http://drupal.org/node/263142
Comment #7
fizk commentedPlease reopen this if you're still affected.