Skip Menu |

This queue is for tickets about the Mail-Sendmail CPAN distribution.

Report information
The Basics
Id: 72441
Status: open
Priority: 0/
Queue: Mail-Sendmail

People
Owner: Nobody in particular
Requestors: lgiles [...] motorola.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: A long list of recipients can confuse mail
Date: Tue, 15 Nov 2011 11:37:46 -0500
To: bug-Mail-Sendmail [...] rt.cpan.org
From: Leslie Giles <lgiles [...] motorola.com>
The To: header can be a very long list of addresses - if it is too long, over around 100 characters, then it can get corrupted. I'm not sure if it is getting corrupted in our SMTP server, or our gmail system, or maybe somewhere else, but the fix is to avoid dumping all addresses into one long list. The fix that I have is... 358,360c359,372 < $mail{$header} =~ s/\s+$//o; # kill possible trailing garbage < socket_write("$header: $mail{$header}$CRLF") < || return fail("send $header: error"); --- Show quoted text
> if ($header eq "To") { > # Motorola Mobility - Lezz Giles - 11/15/2011: > # Split the To field up into seperate addresses > # and send them one at a time instead of as a > # long list on a single line. > while ($mail{$header} =~ /$address_rx/go) { > socket_write("$header: $1$CRLF") > || return fail("send $header: $1: error"); > } > } else { > $mail{$header} =~ s/\s+$//o; # kill possible trailing garbage > socket_write("$header: $mail{$header}$CRLF") > || return fail("send $header: error"); > }
Leslie Giles
What do you mean by "corrupted"? What happens? Turn on debugging ( $mailcfg{'debug'}=6; ), and post the result.
Subject: Re: [rt.cpan.org #72441] A long list of recipients can confuse mail
Date: Wed, 23 Nov 2011 09:05:11 -0500
To: bug-Mail-Sendmail [...] rt.cpan.org
From: Leslie Giles <lgiles [...] motorola.com>
It's not an issue directly with the module - it's a problem with some part of the mail delivery system, which may - of course - be specific to our environment. Put simply, if there is a single line of "To:" addressees and it is over about 100 characters, it gets corrupted somewhere in the mail system between being sent from the perl module to arriving in the mail client. This is a problem that may never hit anybody else, partly because it is unusual to have long lists of addressees, and partly because it is probably specific to Motorola's internal mail infrastructure - however the solution seems simple and safe - just split up the To: list into separate lines. Lezz On Wed, Nov 23, 2011 at 7:51 AM, Milivoj Ivkovic via RT < bug-Mail-Sendmail@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=72441 > > > What do you mean by "corrupted"? What happens? > > Turn on debugging ( $mailcfg{'debug'}=6; ), and post the result. > >