From 111b21b123bff372f7beb84e3152f22ac362e504 Mon Sep 17 00:00:00 2001 From: Steven Schubiger Date: Mon, 6 Jan 2014 22:40:20 +0100 Subject: lreminder: fix encoding of subject line --- lreminder/reminder.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lreminder') diff --git a/lreminder/reminder.pl b/lreminder/reminder.pl index aa0bc9e..2568006 100755 --- a/lreminder/reminder.pl +++ b/lreminder/reminder.pl @@ -15,7 +15,7 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # # Author: Steven Schubiger -# Last modified: Thu Jan 31 11:12:22 CET 2013 +# Last modified: Wed Dec 4 21:18:20 CET 2013 use strict; use warnings; @@ -24,6 +24,7 @@ use constant true => 1; use constant false => 0; use DBI (); +use Encode qw(encode); use File::Basename (); use File::Spec (); use FindBin qw($Bin); @@ -34,7 +35,7 @@ use Mail::Sendmail qw(sendmail); use Text::Wrap::Smart::XS qw(fuzzy_wrap); use WWW::Mechanize (); -my $VERSION = '0.41'; +my $VERSION = '0.42'; #----------------------- # Start of configuration @@ -228,7 +229,7 @@ MSG sendmail( From => $Config->{mail_from}, To => $mail_subscriber, - Subject => "LUGS Reminder - $title", + Subject => encode('MIME-Q', "LUGS Reminder - $title"), Message => $message, ) or die $Mail::Sendmail::error; } -- cgit v1.2.3