freeside/FS/FS Misc.pm,1.10,1.11
Ivan Kohler
ivan at pouncequick.420.am
Mon Jun 6 12:54:24 PDT 2005
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory pouncequick:/tmp/cvs-serv24041
Modified Files:
Misc.pm
Log Message:
some additional warnings
Index: Misc.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Misc.pm,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- Misc.pm 6 Jun 2005 17:00:57 -0000 1.10
+++ Misc.pm 6 Jun 2005 19:54:22 -0000 1.11
@@ -69,6 +69,9 @@
sub send_email {
my(%options) = @_;
+ warn "FS::Misc::send_email called with options:\n ".
+ join("\n", map { " $_: ". $options{$_} } keys %options ). "\n"
+ if $DEBUG;
$ENV{MAILADDRESS} = $options{'from'};
my $to = ref($options{to}) ? join(', ', @{ $options{to} } ) : $options{to};
@@ -122,6 +125,8 @@
if ( $options{'from'} =~ /\@([\w\.\-]+)/ ) {
$domain = $1;
} else {
+ warn 'no domain found in invoice from address '. $options{'from'}.
+ '; constructing Message-ID @example.com';
$domain = 'example.com';
}
my $message_id = join('.', rand()*(2**32), $$, time). "\@$domain";
More information about the freeside-commits
mailing list