nmh-workers
[Top] [All Lists]

Re: [nmh-workers] Additional things

2019-09-29 17:42:18

Ken Hornstein <kenh@pobox.com> wrote:
    > Let's say it is something like this:

    > %[%(formataddr{to})%(formataddr({cc})%^%(addr{loop})%#,%]

    > What does that mean?  We take the addresses in the "To" and "cc" headers,
    > treat them as a address list, and execute %(addr) on each address (the
    > pseudo-component "loop" will be set to the value of each address as the
    > loop progresses).  Everything after %# gets executed between each entry.
    > So this on the above To: line would end up generating:

    > foo@bar.com,blah@arg.com,some@body.com

    > This might be something I could actually implement in a reasonable amount
    > of time.

Seems cool to me.
I guess addr{loop} will operate on any ,-seperated list of address-like
things.  I would also guess it would nuke the "My Name" and (comment)
parts beforehand.

--
]               Never tell me the odds!                 | ipv6 mesh networks [
]   Michael Richardson, Sandelman Software Works        |    IoT architect   [
]     mcr@sandelman.ca  http://www.sandelman.ca/        |   ruby on rails    [

Attachment: signature.asc
Description: PGP signature

-- 
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers
<Prev in Thread] Current Thread [Next in Thread>