Hi,
attached a patch, which fixes a problem if you send non-English emails:
About the issue:
- you run a UTF-8 system.
- you send emails including non-7-bit-ASCII chars.
( German umlauts, french, ... )
- the "special" chars appear in the email-subject
how-to-reproduce (assuming your on same constellation:) :
---&<----
# sudo -u backuppc ./BackupPC_sendEmail_orig -u [EMAIL PROTECTED]
Sending test email using /usr/sbin/sendmail -t -f backuppc
Undefined subroutine &main::encode called at ./BackupPC_sendEmail_orig
line 405.
sendmail: fatal: No recipient addresses found in message header
---&<----
The patch does not more that add the missing "use Encode" line :)
According to SF-browse-CVS its not there so far.
Credits go to Alexandra K. for finding/fixing. (I just post)
.ka
*** BackupPC_sendEmail_orig Thu Jul 3 12:31:29 2008
--- BackupPC_sendEmail Thu Sep 4 16:48:16 2008
***************
*** 47,52 ****
--- 47,53 ----
use Getopt::Std;
use DirHandle ();
use vars qw($Lang $TopDir $BinDir $LogDir %Conf);
+ use Encode;
die("BackupPC::Lib->new failed\n") if ( !(my $bpc = BackupPC::Lib->new) );
$TopDir = $bpc->TopDir();
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BackupPC-devel mailing list
BackupPC-devel@lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-devel
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/