Re: wrong subject encoding in /var/mail/<user>

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hiisi wrote:
> pe, 2010-10-29 kello 09:08 -0400, Todd Zullinger kirjoitti:
> <--SNIP-->
>> Why do you say this is incorrect?  It looks like a properly encoded
>> mail header that uses non-ascii characters, per RFC 2047.
>>
> 
> I use this command in a bash script:
> cat |grep Subject:|sed 's/Subject: //g'>$OUTFILE
> The script is invoked by procmail. The $OUTFILE consists of something
> like that:
> =?utf-8?B?0YLQtdC80LAg0L/QuNGB0YzQvNCw?=
> I would like the information in it to be readable.
> $OUTFILE encoding is 7bit ASCII characters. Converting it to different
> encoding using iconv does not make any difference. If subject encoding
> is right, how can I recode it to something different?
> TIA

You can use "reformime" from maildrop package (present in Fedora):

reformime -c UTF-8 -h "header"
reformime -c UTF-8 -h "$(grep -i '^Subject:' MailFile)"  # Header keys
are case-insensitive, thus "-i"

Frantisek HanzlÃk
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux