Hi,

It looks like your problem is the same as:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495242
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=514730

I will reassign this bug report to limailtools-perl, and merge all of them
together.

I have enclosed a small script that shows the problem.

However, running through Mail::Internet with a small script with the debugger,
I am not able to catched the warnings. I may be missing something :)

So, first you can set your gecos field (hope this one is empty), or patched
caff according to:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=556782

which supplies a patch to force the Sender header.

About your second point:

 Anyway, I have no idea of what your program is supposed to save effort
 of. We have to enter our password 13 times over and over, along with all
 the other actions. In the end we just hope what files out our mail

Please fill a wishlist bug against caff. Patches are welcome.

About the third point, at a first glance, I am sorry to say I do not have a
clue. The Sender header looks just fine.

Any idea?

Regards,

-- 
Franck Joncourt
#!/usr/bin/perl

use strict;
use warnings;

# Here is an empty gecos field fetched from /etc/passwd
# Could be set to: "Franck Joncourt,,,"
my $name = ",,,";

while($name =~ s/\([^\(\)]*\)//) { 1; }

$name = (split /,/, $name)[0];

if($name =~ /[^\w\s]/)
{
    $name =~ s/"/\"/g;
    $name = '"' . $name . '"';
}

my $from = sprintf "%s <my_email_address>", $name;

print "From: $from\n";

Attachment: signature.asc
Description: Digital signature

Reply via email to