[Top][All Lists]

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

Re: [Nmh-workers] Thoughts: header/address parsing

From: norm
Subject: Re: [Nmh-workers] Thoughts: header/address parsing
Date: Tue, 05 Aug 2014 06:07:46 -0700

Ken Hornstein <address@hidden> writes

>>One example: Get the effective content part of an 'X-Spam-Status" header.>
>That program already exists today.
>% scan -width 9999 -format '%{x-spam-status}' messages ....
>should do what you want, I think.

If I replace "x-spam-status" by "to", and there are multiple "To:" fields,
I'm not sure what I want. I think I want each addressee on a separate line.
But whatever I want,

      % scan -width 9999 -format '%{to}' messages ...

does not give me what I want. Parsing its output, distinguishing commas
used as delimiters, and commas within quotes, is not quite trivial.

    Norman Shapiro

reply via email to

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