[Top][All Lists]

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

Re: [Nmh-workers] Applying alias file , to Reply-To: and From: component

From: Ralph Corderoy
Subject: Re: [Nmh-workers] Applying alias file , to Reply-To: and From: components of a draft
Date: Tue, 11 Nov 2014 19:10:32 +0000

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.

reply via email to

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