freeside/FS/FS Misc.pm,1.9,1.10
Ivan Kohler
ivan at pouncequick.420.am
Mon Jun 6 10:01:03 PDT 2005
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory pouncequick:/tmp/cvs-serv19409
Modified Files:
Misc.pm
Log Message:
fix message ID generation for ancient perl, bah
Index: Misc.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Misc.pm,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- Misc.pm 14 May 2005 16:30:58 -0000 1.9
+++ Misc.pm 6 Jun 2005 17:00:57 -0000 1.10
@@ -118,8 +118,13 @@
}
- $options{'from'} =~ /\@([\w\.\-]+)/ or $1 = 'example.com';
- my $message_id = join('.', rand()*(2**32), $$, time). "\@$1";
+ my $domain;
+ if ( $options{'from'} =~ /\@([\w\.\-]+)/ ) {
+ $domain = $1;
+ } else {
+ $domain = 'example.com';
+ }
+ my $message_id = join('.', rand()*(2**32), $$, time). "\@$domain";
my $message = MIME::Entity->build(
'From' => $options{'from'},
More information about the freeside-commits
mailing list