nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Joel Reicher
Subject: Re: [Nmh-workers] suppress Content-ID's with new mhbuild option?
Date: Mon, 30 Jan 2006 14:21:52 +1100

> > 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]