[rt-devel] Problem with Multiple AdminCCs

Ulrich Kiermayr uk at ap.univie.ac.at
Tue Apr 3 13:21:12 EDT 2001


On Tue, 3 Apr 2001, Jesse wrote:

> I've seen this with MIME::Entity's send method before and haven't been
> able to pin it down.  If anyone else has any ideas what's up, I'd greatly
> appreciate some assistance.  I'm getting just about ready to give up
> on MIME::Entity->send as a pipe to sendmail.

It has been hard work, but I think I found that Bug: There is A problem in
Mail::Header from MailTools-1.15.

MIMEObj->head->add somehow is confused if the line is to long and does
LineBreak inproperly, resulting in a blank line in the header.

I have a workaround, which prevents the header-lines from beeing wraped.
But I think the Best way would be to find the Bug in Mail::Header.

-----------------------

Index: SendEmail.pm
===================================================================
RCS file:
/raid/cvsroot/rt/lib/RT/Action/Attic/SendEmail.pm,v
retrieving revision 1.1.2.61
diff -u -1 -b -p -r1.1.2.61 SendEmail.pm
--- SendEmail.pm        2001/03/31 00:31:37
1.1.2.61
+++ SendEmail.pm        2001/04/03 17:16:19
@@ -256,2 +256,5 @@ sub SetHeader {

+  chomp $val;
+  chomp $field;
+  $self->TemplateObj->MIMEObj->head->fold_length($field,10000);
   $self->TemplateObj->MIMEObj->head->add($field, $val);

-----------------------

I hope that helps :)

LL&P uk
-- 
---------------------------------------------------------------------------
Ulrich Kiermayr            Zentraler Informatikdienst der Universitaet Wien
Security Team                      Boltzmanngasse 5, A-1090 Vienna, Austria
---------------------------------------------------------------------------
eMail:   ulrich.kiermayr at univie.ac.at             Tel: (+43 1) 4277 / 14104
Hotline: security.zid at univie.ac.at                Fax: (+43 1) 4277 /  9141
Web:     http://www.univie.ac.at/zid/security.html
---------------------------------------------------------------------------
   GPG Key fingerprint = BF0D 5749 4DC1 ED74 AB67  7180 105F 491D A8D7 64D8





More information about the Rt-devel mailing list