nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] suppress Content-ID's with new mhbuild option?

2006-01-29 20:22:47
Can you perhaps define the sendproc profile entry to be a filter that
forwards options and its output to send?

That could work.  It's easy to filter out all Content-ID:
lines.  But if I wanted to keep forwarded messages perfectly
intact, it's not as simple.  It usually doesn't matter, but
some recipients might want to see _all_ original header lines
in forwarded messages.

I agree. Isn't it guaranteed that a blank line separates headers from
body? If so, the filter can be something like this

awk '/^$/ { body=1 } \!body && /^Content-ID:/ { next } { print }'

Cheers,

        - Joel


_______________________________________________
Nmh-workers mailing list
Nmh-workers@nongnu.org
http://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>