Craig Barratt a écrit :
> Jean-Claude,
>
>> The RFC 2822 forbids the inclusion of non-ASCII characters in any e-mail
>> header, including the subject.
>
> You're right. Try this:
>
> - Add:
>
> use Encode;
>
> near the top of bin/BackupPC_sendEmail (after the other "use" lines).
>
> - Change the charset in $Conf{EMailHeaders} to utf-8:
>
> $Conf{EMailHeaders} = 'MIME-Version: 1.0
> Content-Type: text/plain; charset="utf-8"';
>
> (Note the embedded newline; the second line should not be
> indented - ie: no whitespace at the start of the line.)
>
> If that works correctly I should make this setting the default.
>
> Craig
Hello Craig,
I have found a solution to the problem. In addition of the above
modifications, I have changed one line in the sendUserEmail function :
$vars->{subj} = encode('MIME-Header', $subj);
instead of
$vars->{subj} = $subj;
Now the users are receiving the notifications.
But this has revealed another problem : even people whose backups are
disabled ($Conf{BackupsDisable} = 1)
are receiving the email.
I think they should not.
Regards,
Jean-Claude
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
BackupPC-users mailing list
[email protected]
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/