home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / mail / elm / 3237 < prev    next >
Encoding:
Text File  |  1992-11-09  |  2.7 KB  |  69 lines

  1. Newsgroups: comp.mail.elm
  2. Path: sparky!uunet!spool.mu.edu!uwm.edu!linac!uchinews!machine!gagme!ddsw1!dattier
  3. From: dattier@ddsw1.mcs.com (DWT)
  4. Subject: Re: Filter: forwardc saving in other than system mbox?
  5. Message-ID: <BxEvLB.FG4@ddsw1.mcs.com>
  6. Date: Sun, 8 Nov 1992 19:03:11 GMT
  7. References: <17315.9211061635@tsunb.ctn.cogs.susx.ac.uk>
  8. Organization: Contributor Account at ddsw1, Chicago, Illinois  60657
  9. Lines: 58
  10.  
  11. johny@cogs.sussex.ac.uk (John Yeates) wrote in
  12. <17315.9211061635@tsunb.ctn.cogs.susx.ac.uk>:
  13.  
  14. | Is it possible to persuade forwardc to save somewhere other than the system
  15. | mailbox?
  16.  
  17. That's where forwardc and savecopy are supposed to put the extra copy.
  18.  
  19. | The filter command looks like this:
  20. | if (from contains "ug") then
  21. |   forwardc tsunb!stephcl
  22. | and was this before forwardc was available:
  23. | if (from contains "ug") then
  24. |   forward tsunb!stephcl,tsunb!johny
  25. | In the first case, my copy goes to /usr/spool/mail/johny instead of =main,
  26. | which is where all mail is sent by default. In the second case, I get my
  27. | copy in =main, but the headers are changed, so it appears to be From me,
  28. | with a changed Subject.
  29.  
  30. That's what the forward command is supposed to do (and even in the first
  31. case, that's what stephcl receives).
  32.  
  33. | Is there a way of specifying a mailbox for forwardc to save in, or (better
  34. | yet) are there plans to implement a "bounce" action, working like the
  35. | bounce command in elm does? [Sanity permitting, I may have a go at this
  36. | myself, if I get the time]
  37.  
  38. If you're not among the recipients you can bounce a letter like this:
  39.  
  40. if condition then execute "rmail recipients"
  41.  
  42. but you won't get a copy for yourself.
  43.  
  44. You can include yourself in the list as "real-yourself" but then it will
  45. go to your system mailbox.  If you just put your own logname there, you'll
  46. cause a filter loop.
  47.  
  48. You can tell filter to execute a script or a program that will send the
  49. letter off to your friend(s) but also store a copy in your selected folder;
  50. if locking is not important, you can just append it to the folder; otherwise
  51. it can massage the headers so that filter can tell it apart from the original
  52. and then mail it to everyone involved, including you, or mail it to everyone
  53. else and also refeed it to filter.
  54.  
  55. Now that -f is standard in filter, you can also execute a script or a program
  56. that uses its stdin twice like this: rmail (or otherwise bounce) it to
  57. everyone else and feed it to filter -f some_other_rule_file.  That way you
  58. can avoid a loop without needing to alter headers.
  59.  
  60. It's much easier to accomplish with procmail or deliver.  Both allow multiple
  61. actions on a single letter.
  62.  
  63. David W. Tamkin   Box 59297   Northtown Station, Illinois  60659-0297
  64. dattier@ddsw1.mcs.com    CompuServe: 73720,1570    MCI Mail: 426-1818
  65.