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,

Thanks for your answer. I have patched BackupPC as you suggested, but 
the problem is not solved. Now the title is encoded in UTF-8 instead of 
ISO-8859-1, but not as expected (RFC 2047).

For testing purposes, I have changed the subject of the test message :
Subject: BackupPC test message électronique

and the e-mail server sent back this message :

The message WAS NOT relayed to:
   <[EMAIL PROTECTED]>:
    550 5.7.1 Rejected, id=10956-16 - BAD_HEADER: Non-encoded 8-bit data 
(char C3 hex): Subject: BackupPC test message \303\251lectronique\n

INVALID HEADER: INVALID 8-BIT CHARACTERS IN HEADER

   Non-encoded 8-bit data (char C3 hex): Subject: BackupPC test message
     \303\251lectronique\n

Return-Path: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Subject: BackupPC test message électronique

(...)

Return-Path: <[EMAIL PROTECTED]>
Received: from clapier (backup.mxm [192.168.0.229])
        by gelas.mail.mxm (Postfix) with SMTP id 443BED4ADF
        for <[EMAIL PROTECTED]>; Mon, 25 Feb 2008 11:46:08 +0100 (CET)
Received: by clapier (sSMTP sendmail emulation); Mon, 25 Feb 2008 
11:46:02 +0100
From: "Serveur de sauvegarde" <[EMAIL PROTECTED]>
Date: Mon, 25 Feb 2008 11:46:02 +0100
To: [EMAIL PROTECTED]
Subject: BackupPC test message électronique
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Message-Id: <[EMAIL PROTECTED]>


-------------------------------------------------------------------------
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/

Reply via email to