* Luis Daniel Lucio Quiroz <luis.daniel.lu...@gmail.com> [20100221 15:32]: > Le Jeudi 4 Février 2010 05:44:36, Thomas Arendsen Hein a écrit : > > diff -urN amavisd-new-2.5.1.orig/amavisd amavisd-new-2.5.1/amavisd > > --- amavisd-new-2.5.1.orig/amavisd 2007-05-31 14:10:01.000000000 +0200 > > +++ amavisd-new-2.5.1/amavisd 2007-06-06 16:33:54.000000000 +0200 > > @@ -9854,7 +9854,10 @@ > > if ($subject_tag ne '') { > > if (defined $msginfo->orig_header_fields->{'subject'}) { > > $hdr_edits->edit_header('Subject', > > - sub { $_[1]=~/^([ \t]?)(.*)\z/s; ' '.$subject_tag.$2 > > }); + sub { $_[1]=~/^([ \t]?)(.*)\z/s; > > + my $subj = $2; > > + $subj=~s/\Q$subject_tag\E//sg; > > + ' '.$subject_tag.$subj }); > > } else { # no Subject header field present, insert one > > $subject_tag =~ s/[ \t]+\z//; # trim > > $hdr_edits->append_header('Subject', $subject_tag); > > > just a little questin > > if amavis sender mail adds "[SPAM]" and mine adds "[Basura]" will your patch > replace it or it just replace $subject_tag contents?
It will just replace $subject_tag, so it will be "Subject: [Basura] [Spam] foo bar" If you reply to the sender, your client will create: "Subject: Re: [Basura] [Spam] foo bar" If your mail server wants to tag it: "Subject: [Basura] Re: [Spam] foo bar" and the target mailserver will change it to: "Subject: [Spam] [Basura] Re: foo bar" Without the patch it would have been: "Subject: [Spam] [Basura] Re: [Basura] [Spam] foo bar" Regards, Thomas -- tho...@intevation.de - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A Intevation GmbH, Neuer Graben 17, 49074 Osnabrueck - AG Osnabrueck, HR B 18998 Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/