home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.mail.elm
- Path: sparky!uunet!spool.mu.edu!uwm.edu!linac!uchinews!machine!gagme!ddsw1!dattier
- From: dattier@ddsw1.mcs.com (DWT)
- Subject: Re: Filter: forwardc saving in other than system mbox?
- Message-ID: <BxEvLB.FG4@ddsw1.mcs.com>
- Date: Sun, 8 Nov 1992 19:03:11 GMT
- References: <17315.9211061635@tsunb.ctn.cogs.susx.ac.uk>
- Organization: Contributor Account at ddsw1, Chicago, Illinois 60657
- Lines: 58
-
- johny@cogs.sussex.ac.uk (John Yeates) wrote in
- <17315.9211061635@tsunb.ctn.cogs.susx.ac.uk>:
-
- | Is it possible to persuade forwardc to save somewhere other than the system
- | mailbox?
-
- That's where forwardc and savecopy are supposed to put the extra copy.
-
- | The filter command looks like this:
- |
- | if (from contains "ug") then
- | forwardc tsunb!stephcl
- |
- | and was this before forwardc was available:
- |
- | if (from contains "ug") then
- | forward tsunb!stephcl,tsunb!johny
- |
- | In the first case, my copy goes to /usr/spool/mail/johny instead of =main,
- | which is where all mail is sent by default. In the second case, I get my
- | copy in =main, but the headers are changed, so it appears to be From me,
- | with a changed Subject.
-
- That's what the forward command is supposed to do (and even in the first
- case, that's what stephcl receives).
-
- | Is there a way of specifying a mailbox for forwardc to save in, or (better
- | yet) are there plans to implement a "bounce" action, working like the
- | bounce command in elm does? [Sanity permitting, I may have a go at this
- | myself, if I get the time]
-
- If you're not among the recipients you can bounce a letter like this:
-
- if condition then execute "rmail recipients"
-
- but you won't get a copy for yourself.
-
- You can include yourself in the list as "real-yourself" but then it will
- go to your system mailbox. If you just put your own logname there, you'll
- cause a filter loop.
-
- You can tell filter to execute a script or a program that will send the
- letter off to your friend(s) but also store a copy in your selected folder;
- if locking is not important, you can just append it to the folder; otherwise
- it can massage the headers so that filter can tell it apart from the original
- and then mail it to everyone involved, including you, or mail it to everyone
- else and also refeed it to filter.
-
- Now that -f is standard in filter, you can also execute a script or a program
- that uses its stdin twice like this: rmail (or otherwise bounce) it to
- everyone else and feed it to filter -f some_other_rule_file. That way you
- can avoid a loop without needing to alter headers.
-
- It's much easier to accomplish with procmail or deliver. Both allow multiple
- actions on a single letter.
-
- David W. Tamkin Box 59297 Northtown Station, Illinois 60659-0297
- dattier@ddsw1.mcs.com CompuServe: 73720,1570 MCI Mail: 426-1818
-