You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by fe...@apache.org on 2004/10/08 00:36:01 UTC

svn commit: rev 54024 - spamassassin/trunk/lib/Mail/SpamAssassin

Author: felicity
Date: Thu Oct  7 15:36:00 2004
New Revision: 54024

Modified:
   spamassassin/trunk/lib/Mail/SpamAssassin/Reporter.pm
Log:
bug 3883: using the full gecos field when doing spamcop reporting was sending out more than just the user name.  couldn't figure out why the full name would be necessary anyway, so just removed the full name from the From field of the report.

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Reporter.pm
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Reporter.pm	(original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Reporter.pm	Thu Oct  7 15:36:00 2004
@@ -414,12 +414,11 @@
   my $user = $self->{main}->{'username'} || 'unknown';
   my $host = Mail::SpamAssassin::Util::fq_hostname() || 'unknown';
   my $from = $self->{conf}->{spamcop_from_address} || "$user\@$host";
-  my $name = (Mail::SpamAssassin::Util::portable_getpwuid($>))[6] || "Unknown";
 
   # message data
   my %head = (
 	      'To' => $self->{conf}->{spamcop_to_address},
-	      'From' => "\"$name\" <$from>",
+	      'From' => $from,
 	      'Subject' => 'report spam',
 	      'Date' => Mail::SpamAssassin::Util::time_to_rfc822_date(),
 	      'Message-Id' =>