On Tue, 17 Dec 2002 02:49:50 +0100 (Romance Standard Time) Vadim Zeitlin <[EMAIL PROTECTED]> wrote:
> 1. when encoding, we shouldn't encode an already encoded header (not sure > if my code already avoids this in all cases) We (used to) re-encode already encoded headers. You can verify by removing my change, saving a draft with a 8bit subject (Ctrl-Z should show it encoded once), re-editing the draft and re-saving it. You should see that the header is encoded twice. But see below... > 2. when decoding we might want to do it recursively as many other mailers > do encode the subjects twice (mistakenly) This is the case, AFAICT. I tried to edit a draft with doubly-encoded subject (generated using the steps above), and it came fine. This also means that headers won't be encoded twice: if they were encoded when the editing begins, this encoding is removed. Then they are encoded back (once) when saving. This should be correct, no? -- Xavier Nodet "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin, 1759. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Mahogany-Developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mahogany-developers