[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coldsync-hackers] I have problems with Mail.pm



On Fri, Mar 15, 2002 at 11:01:46AM -0800, Rob Bloodgood wrote:
> the fields are not defined.  If it was me, I'd patch the conduit like this:
> 
> $cc =~ s/\s*\n\s*(?!$)/, /gs if $cc;
> $bcc =~ s/\s*\n\s*(?!$)/, /gs if $bcc;
> $replyTo =~ s/\s*\n\s*(?!$)/, /gs if $replyTo;
> $sentTo =~ s/\s*\n\s*(?!$)/, /gs if $sentTo;

	ITYM

$cc =~ s/\s*\n\s*(?!$)/, /gs if defined($cc);
$bcc =~ s/\s*\n\s*(?!$)/, /gs if defined($bcc);
$replyTo =~ s/\s*\n\s*(?!$)/, /gs if defined($replyTo);
$sentTo =~ s/\s*\n\s*(?!$)/, /gs if defined($sentTo);

because "0" is a valid, if unconventional, email address.

-- 
Andrew Arensburger                      This message *does* represent the
arensb@ooblick.com                      views of ooblick.com
		Follow-ups to alt.nobody.really.cares.

-- 
This message was sent through the coldsync-hackers mailing list.  To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body.  For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.