1 %; forwcomps - Our components file when we're using "forw"
3 %; We want people to be able to use the components from forwarded
4 %; messages in this file, so we have to cheat a bit. We create a series
5 %; of pseudo-components with a "nmh" prefix to represent arguments given
6 %; on the command line. We don't do this for %{fcc} since there's already
7 %; precedence for this from "repl".
9 %; If we're given multiple messages to forward, provide the components
10 %; from the first one. Can't really think of anything better to do there.
12 %; Generate a "From:" header; if we don't give one, use %(localmbox)
14 %<{nmh-from}%|%(void(localmbox))%>%(void(width))%(putaddr From: )
16 %; Generate To: and cc: headers; if we're given ones, put something in there
17 %; otherwise leave them blank.
19 %<{nmh-to}%(void(width))%(putaddr To: )%|To:%>
20 %<{nmh-cc}%(void(width))%(putaddr cc: )%|cc:%>
22 %; If we're not given a -fcc switch, then default to +outbox
24 Fcc: %<{fcc}%(putstr)%|+outbox%>
26 %; If we're not given a -subject switch, then use the original message
27 %; subject, but adding (fwd) on the end. I got this idea from exmh, and
28 %; I've always liked it.
30 Subject:%<{nmh-subject} %(trim)%(putlit)%?{subject} %(trim)%(putlit) (fwd)%>