[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] re repl'ing to msgs with utf-8 From & Subject
From: |
Ken Hornstein |
Subject: |
Re: [Nmh-workers] re repl'ing to msgs with utf-8 From & Subject |
Date: |
Thu, 25 Oct 2012 10:56:26 -0400 |
>Okay, I agree about the headers, but how exactly does one get %decode() to
>work in a filter for the replied text?? I just tried...
>
> from:nocomponent,formatfield="From: %decode()":
> from:nocomponent,formatfield="From: %decode(%(putstr{text}))":
Sigh. I won't defend mh-format(5) syntax because it's kinda weird, but
it's actually all in the man page (and I told you the wrong syntax for
decode, because even though I have been inside of that code I always forget
the damn syntax)). You probably want something closer to:
%(decode{text})
If you wanted to nest these functions (which you don't in this case) you'd
do something like:
%(decode(putstr{text}))
But that would probably end up with you printing out the text twice. You
might actually prefer:
%(putstr(decode{text}))
But I think that's redundant .... yes, actually, I just checked. It is.
You might find the tools "ap" and "fmtcomp" helpful (they're both in the
nmh lib directory).
--Ken
- [Nmh-workers] re repl'ing to msgs with utf-8 From & Subject, rader, 2012/10/25
- Re: [Nmh-workers] re repl'ing to msgs with utf-8 From & Subject, Ken Hornstein, 2012/10/25
- Re: [Nmh-workers] re repl'ing to msgs with utf-8 From & Subject, rader, 2012/10/25
- Re: [Nmh-workers] re repl'ing to msgs with utf-8 From & Subject, rader, 2012/10/25
- Re: [Nmh-workers] re repl'ing to msgs with utf-8 From & Subject, Ken Hornstein, 2012/10/25
- Re: [Nmh-workers] re repl'ing to msgs with utf-8 From & Subject, rader, 2012/10/25
- Re: [Nmh-workers] re repl'ing to msgs with utf-8 From & Subject, Ralph Corderoy, 2012/10/25