Hello, On Mon, 06 Oct 2014, Carl Spitzer wrote:
[opensuse-offtopic] =?UTF-8?B?UmU6IFtvcGVuc3VzZS1vZmZ0b3BpY10gUmU6IFtvcGVuc3VzZS1vZmY=? =?UTF-8?B?dG9waWNdIFJlOiBbb3BlbnN1c2Utb2ZmdG9waWNdIFJlOiBbb3BlbnN1c2Utb2Y=? =?UTF-8?B?ZnRvcGljXSBGd2Q6IFRoZSBDb21wbGV0ZSBIaXN0b3J5IG9mIE1vbnNhbnRvLCA=? =?UTF-8?B?4oCcVGhlIFdvcmxk4oCZcyBNb3N0IEV2aWwgQ29ycG9yYXRpb27igJ0=?
They appear like normal subject lines in Evolution but not in the source. Thus frustrating filtering which is based upon the source of a message not interpretation. Is there a program for correcting this so filters can work??
Those lines are Base64 encoded UTF-8 strings (the end is wrong though). Schema is: =? CHARSET ? ENCODING ? ENCODED_STRING ?= CHARSET is one of the official encoding names (first in line in the output of 'recode -l' is a good guess). ENCODING is either Q for Quoted-Printable or B for Base64. You could e.g. use this to decode the Subject: ==== /tmp/t.txt ==== From: foo Subject: =?UTF-8?B?UmU6IFtvcGVuc3VzZS1vZmZ0b3BpY10gUmU6IFtvcGVuc3VzZS1vZmY?= =?UTF-8?B?dG9waWNdIFJlOiBbb3BlbnN1c2Utb2ZmdG9waWNdIFJlOiBbb3BlbnN1c2Utb2Y?= =?UTF-8?B?ZnRvcGljXSBGd2Q6IFRoZSBDb21wbGV0ZSBIaXN0b3J5IG9mIE1vbnNhbnRvLCA?= =?UTF-8?B?4oCcVGhlIFdvcmxk4oCZcyBNb3N0IEV2aWwgQ29ycG9yYXRpb27igJ0?= To: bar ==== $ perl -MMIME::Head -e 'my $head = MIME::Head->new( \*STDIN ); \ $head->decode; print $head->get("Subject");' \ < /tmp/t.txt | recode utf8..latin9 Re: [opensuse-offtopic] Re: [opensuse-offtopic] Re: [opensuse-offtopic] Re: [opensuse-offtopic] Fwd: The Complete History of Monsanto, "The World's Most Evil Corporation" Note, that I fixed the end-code of the encoded headers from =? to ?=. The 'recode' is just because I use latin9 (usually for mail). HTH, -dnh --
What is the status of Linux' Unicode implementation. Will Linux be prepared for the first contact? We have full klingon console support just in case -- Alan Cox on linux-kernel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org