Some time ago i wrote about problem of non-english locale.
New mail with date creates in my locale(Russian).
But rfc822 says: day should be Mon,Tue,Wed,Thu,Fri,Sat,Sun
and month: Jan,Feb,Mar,Apr...
Your mail client will not be able to analize message date created on my
machine, because he doesn't not understand russian :)
I make some changes in Mail/Message/Field.pm:
diff Mail/Message/Field.pm Mail.new/Message/Field.pm
167c167,169
< use POSIX 'strftime';
---
> use POSIX qw/strftime setlocale/;
> my $old_locale = setlocale('LC_CTYPE');
> setlocale('LC_CTYPE', "C");
169c171,173
< strftime "%a, %d %b %Y %H:%M:%S %z", @time;
---
> my $strtime=strftime "%a, %d %b %Y %H:%M:%S %z", @time;
> setlocale('LC_TYPE',$old_locale);
> $strtime;
|