nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] Applying alias file , to Reply-To: and From: components of a draft

2014-11-11 13:11:01
Hi Ken,

If, however, you want an alias to be expanded when you do a 'repl',
that's not possible.

Wondering about the case of the draft having email addresses turned back
into aliases, I played with whom(1).

    $ echo To: me >draft
    $ whom draft
      -- Network Recipients --
      ralph at inputplus.co.uk
    $

That's fine, but wasn't my first attempt.

    $ whom <(echo To: me)
    whom: unable to open /dev/fd/63: No such file or directory
    $

whom forks and close(2)s file descriptors [3, 255] along the way,
trampling 63.  Is this `close all the file descriptors' approach still
needed with more modern facilities like O_CLOEXEC?  Can nmh just take
care to ensure file descriptors it opens that shouldn't cross execve(2)
are marked to be closed on exec?  It shouldn't bother itself with all
file descriptors?

(Is 255 fixed?  File descriptors can run far higher on some systems, and
closing them all can take time, e.g. Apache used to suffer from this.
The BSDs added http://manned.org/closefrom.2 to lessen the calls, but it
still tramples willy-nilly.)

Cheers, Ralph.

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

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