[rt-devel] Problem with Multiple AdminCCs
Kevin Croombs
kevin_croombs at tao-group.com
Mon Jul 2 12:18:33 EDT 2001
Hi,
On Tue, Apr 03, 2001 at 7:21:12PM +0200, Ulrich Kiermayr wrote:
> 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 :)
We also need to workaround this in "lib/RT/Template.pm" for RT
2.0.0. Without this change long subject lines (for example) cause
email problems.
--- ./lib/RT/Template.pm Fri Mar 30 08:32:27 2001
+++ /home/croombs/Template.pm Mon Jul 2 16:53:25 2001
@@ -249,6 +249,9 @@
if ($headers) {
foreach $header (split(/\n/,$headers)) {
(my $key, my $value) = (split(/: /,$header,2));
+ chomp $key;
+ chomp $value;
+ $self->{'MIMEObj'}->head->fold_length($key,10000);
$self->{'MIMEObj'}->head->add($key, $value);
}
}
--
Kevin Croombs
More information about the Rt-devel
mailing list