On Fri, 20 Sep 2002 09:02:31 +0300 Pekka Karp <[EMAIL PROTECTED]> wrote:
PK> can anyone help me and please tell me how to encode subject on header PK> before a new message sending. (RFC1522 encoding) with c-client PK> functions. I use either rfc822_binary() or rfc822_8bit() depending on the number of characters needed to be encoded. You have to be careful about a few things however: 1. the encoded words (in the sense of RFC 2047) must be no more than 75 characters and you have to enforce this yourself 2. rfc822_8bit() doesn't encode spaces, tabs and '?' which must be encoded in the header so you need to do this manually I don't know why c-client doesn't provide a standard function to do this. I think I've already asked Mark (if I'm mistaken, let me do it now) if a patch adding such function would be accepted -- if this is the case, I may provide one. Regards, VZ
