[Alpine-info] Content-type charset in display filter
philb328 at yahoo.co.uk
Sun Jun 22 07:14:38 PDT 2008
I'm trying to figure out a clean way for a display filter to obtain the
charset (as set by the sender of the message) of the block that it's
processing. So something like
(trigger) (command name) _MAILCHARSET_
where MAILCHARSET would be replaced by, say, ISO-8859-15.
I don't think there's a simple way to do this right now. Looking at the
Alpine source, it appears that dfilter() and expand_filter_tokens() in
alpine/dispfilt.c are the places for me to look first. But I'm stuck seeing
how I'm going to get hold of the charset parameter: dfilter() sets env to
NULL; I think I need to call rfc2231_get_param but that needs
An alternative is to modify the filters to write out in the sender's locale,
but I'm not sure that'll be any easier.
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
More information about the Alpine-info