:0fbw
* ^Content-type:*\/[^ ].*
^ space missing here, I suppose
| metamail -qbc $MATCH
but then I thought about things like
Content-Type: text/plain; charset=ISO-8859-1
and wondered how I would get rid of the ; and everything after it
(if present)... can I do this w/o resorting to 'sed'?
You could, why let that part get into $MATCH in the first place?
:0 fbw
* ^Content-Type: *\/[^;]+
| metamail -qbc $MATCH
just reads everything up to the semicolon into $MATCH, no need to cut
anything off afterwards.
But there is not always a semicolon there.
(I have 136 messages that don't have them a ; in that field).
Is there a way to make that optional?
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail