nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] Question about anno

2005-12-06 16:50:12
Some years ago as part of the new attachment handling stuff, I added a
-delete option to anno that allows header fields to be deleted from
messages.  Today I was using anno with this option to delete some
headers from messages and ran across something that I had never thought
about when doing the initial implementation.  anno -delete only deletes
the first matching header field.  So, if there is more than one header
field with the same field name, only the first gets deleted.  This was
not what I wanted today!

So, the question is, which of the following options do you like best or
hate least?

 1.  Add a -all dash option to anno that says to delete all matching
     headers, or

 2.  Just make anno -delete remove all matching headers.

i think you should delete them all.  the fact that anno itself
adds two headers by default means that if you're trying to undo
what you added before, you need to get rid of more than one.  and
if you want to be selective, there's already the "-number"
argument.  (i.e., i believe "-delete -number 1" is the current
default behavior.)

paul
=---------------------
 paul fox, pgf@foxharp.boston.ma.us (arlington, ma, where it's 24.4 degrees)


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

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