Re: [9fans] pipefrom fun

2009-08-21 Thread matt



why not use /mail/lib/names.local for the first example?



good point, upon my brief look the answer would be, although I can 
contrive upon boot to use a different file, in the general case, users 
can't edit it.



i haven't read the script, though.

; ls -l  /n/sources/contrib/maht/rc/pipefrom
--rwx--x--x M 675 maht sys 1107 Aug 20 20:50 /n/sources/contrib/maht/rc/pipefrom
 


I fixed that, oops thanks


one thing i've thought would be useful since people mail from
many places with many names is a translation from a set of from
addresses to a mailbox name so that, e.g. the ned f command doesn't
end up creating a bunch of folders for the same person.
 


I'll consider that when I get round to pipeto



Re: [9fans] pipefrom fun

2009-08-21 Thread matt

Russ Cox wrote:


pipefrom is too late to rewrite outgoing addresses,
because marshal has already written the To:


I submitted a patch for marshal to do the From: part but was told I 
should use pipefrom instead. I'll stick a sed in the send see how that 
works out :



line with the local address.  Your post says
   To: 9f...@steponnopets.net
 


dammit, I obviously had missed that when I was testing it


You can create /mail/box/$user/names
to get aliases that won't go out.

http://9fans.net/archive/2004/01/530
http://9fans.net/archive/2004/01/533
http://9fans.net/archive/2004/04/99  # ,s/%/@/g I think


 


Thanks I'll give those a read





Re: [9fans] pipefrom fun

2009-08-21 Thread Russ Cox
On Fri, Aug 21, 2009 at 12:59 AM, mattmaht-9f...@maht0x0r.net wrote:
 pipefrom is too late to rewrite outgoing addresses,
 because marshal has already written the To:

 I submitted a patch for marshal to do the From: part but was told I should
 use pipefrom instead. I'll stick a sed in the send see how that works out :

They're separate issues, which might not have
come across in my earlier mail.

Rewriting of To: must be done in marshal and is
supported by editing /mail/box/$user/names.

Rewriting of From: is the reason for pipefrom.

Russ



Re: [9fans] pipefrom fun

2009-08-21 Thread erik quanstrom
 Rewriting of From: is the reason for pipefrom.

in the simple case, From:  can be rewritten with
/mail/box/$upasname/headers

- erik



[9fans] pipefrom fun

2009-08-20 Thread maht-9fans
All being well this is a mail routed by my pipefrom

/n/sources/contrib/maht/rc/pipefrom

It has seen the outgoing address  of 9fans and changed it to 9fans@9fans.net
It has seen the outgoing address of 9fans@9fans.net and set upasname to be 
maht-9f...@maht0x0r.net





Re: [9fans] pipefrom fun

2009-08-20 Thread erik quanstrom
On Thu Aug 20 20:53:27 EDT 2009, maht-9f...@maht0x0r.net wrote:
 All being well this is a mail routed by my pipefrom
 
 /n/sources/contrib/maht/rc/pipefrom
 
 It has seen the outgoing address  of 9fans and changed it to 
 9fans@9fans.net
 It has seen the outgoing address of 9fans@9fans.net and set upasname to be 
 maht-9f...@maht0x0r.net


why not use /mail/lib/names.local for the first example?

i haven't read the script, though.

; ls -l  /n/sources/contrib/maht/rc/pipefrom
--rwx--x--x M 675 maht sys 1107 Aug 20 20:50 /n/sources/contrib/maht/rc/pipefrom

one thing i've thought would be useful since people mail from
many places with many names is a translation from a set of from
addresses to a mailbox name so that, e.g. the ned f command doesn't
end up creating a bunch of folders for the same person.

- erik



Re: [9fans] pipefrom fun

2009-08-20 Thread Russ Cox
pipefrom is too late to rewrite outgoing addresses,
because marshal has already written the To:
line with the local address.  Your post says
To: 9f...@steponnopets.net
You can create /mail/box/$user/names
to get aliases that won't go out.

http://9fans.net/archive/2004/01/530
http://9fans.net/archive/2004/01/533
http://9fans.net/archive/2004/04/99  # ,s/%/@/g I think

Russ