2010.10.08 15:55 Kamenik, Aleksander rašė:
> Hi,
>
> I have mbox files I want to import with the mailbox2dbmail tool. One mbox
> file equals 1 imap folder and can be over a gigabyte in size.
>
> The mbox files contain Subjects with various encodings, some are ISO-8859,
> some specify the encondig (Subject: =?windows-1257?Q?...) and some a mixed
> (several subjects with different encodings). However many subjects are in
> UTF only, utf7 I assume.

You don't have to assume anything. Character set name is written in first
section of B|Q encoding. If character set name is not written and subject
is not encoded, it must be in us ascii.

utf7 is rarely used for Subject. You have utf-8 (=?utf-8?b? or =?utf-8?q?)
or some unicode variat (unicode-#-# or unicode-#-#-some-text) or you
confuse Unicode with broken 8bit headers.

-- 
Tomas


_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to