steffen: server/amavisd undecipherable_subject.patch,NONE,1.1

cvs at kolab.org cvs at kolab.org
Thu Oct 19 05:54:04 CEST 2006


Author: steffen

Update of /kolabrepository/server/amavisd
In directory doto:/tmp/cvs-serv22943

Added Files:
	undecipherable_subject.patch 
Log Message:
patch for UNCHECKED subject marker (issue1447). Not in use currently

--- NEW FILE: undecipherable_subject.patch ---
--- amavisd.orig	2006-10-19 05:25:38.000000000 +0200
+++ amavisd	2006-10-19 05:47:08.000000000 +0200
@@ -8078,7 +8078,7 @@ sub add_forwarding_header_edits_per_reci
         my($entity) = $msginfo->mime_entity;
         if (defined $entity && defined $entity->head->get('Subject',0)) {
           $hdr_edits->edit_header('Subject',
-                    sub { $_[1]=~/^([ \t]?)(.*)\z/s; ' '.$subject_insert.$2 });
+                    sub { $_[1]=~/^([ \t]?)(.*)\z/s; my $subj = $2; $subj=~s/\Q$subject_insert\E//sg; ' '.$subject_insert.$subj });
         } else {  # no Subject header field present, insert one
           $subject_insert =~ s/[ \t]+\z//;  # trim
           $hdr_edits->append_header('Subject', $subject_insert);





More information about the commits mailing list