projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
920fd36
)
Verhindern, dass zwei von Lx-Office erzeugte Mails identische message IDs haben können.
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 7 Nov 2007 09:18:10 +0000
(09:18 +0000)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 7 Nov 2007 09:18:10 +0000
(09:18 +0000)
SL/Mailer.pm
patch
|
blob
|
history
diff --git
a/SL/Mailer.pm
b/SL/Mailer.pm
index
35cc57a
..
234b6a7
100644
(file)
--- a/
SL/Mailer.pm
+++ b/
SL/Mailer.pm
@@
-33,6
+33,8
@@
package Mailer;
use SL::Common;
use SL::Template;
+my $num_sent = 0;
+
sub new {
$main::lxdebug->enter_sub();
@@
-94,7
+96,8
@@
sub send {
local (*IN, *OUT);
- my $boundary = time();
+ $num_sent++;
+ my $boundary = time() . "-$$-${num_sent}";
$boundary = "LxOffice-$self->{version}-$boundary";
my $domain = $self->{from};
$domain =~ s/(.*?\@|>)//g;