[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

message-id header invalid



A colleague noticed that the invoice I emailed him had an invalid
Message-Id. Actually, it was his spam filter that noticed.  It should
have <> around the ID.

commit 54831ebfed46ef757c8449581df2c35d5aec83bb
Author: Michael Richardson <..hidden..>
Date:   Fri Jan 15 11:09:41 2010 -0500

    fixed msg id of generated emails

diff --git a/LedgerSMB/Mailer.pm b/LedgerSMB/Mailer.pm
index c1128d0..593fc3a 100755
--- a/LedgerSMB/Mailer.pm
+++ b/LedgerSMB/Mailer.pm
@@ -54,7 +54,7 @@ sub send {
     my $boundary = time;
     $boundary = "LSMB-$boundary";
     $domain =~ s/(.*?\@|>)//g;
-    my $msg_id = "$boundary\@$domain";
+    my $msg_id = "<$boundary\@$domain>";
 
     $self->{contenttype} = "text/plain" unless $self->{contenttype};