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

  1. Newsgroups: comp.mail.elm
  2. Path: sparky!uunet!snorkelwacker.mit.edu!ira.uka.de!Germany.EU.net!news.uni-bielefeld.de!asl.uni-bielefeld.de!marvo
  3. From: marvo@asl.uni-bielefeld.de (Markus Vogt)
  4. Subject: Re: Filter: forwardc saving in other than system mbox?
  5. Sender: news@hermes.hrz.uni-bielefeld.de (News Administrator)
  6. Message-ID: <BxKsnA.E5s@hermes.hrz.uni-bielefeld.de>
  7. Date: Wed, 11 Nov 1992 23:45:10 GMT
  8. References: <17315.9211061635@tsunb.ctn.cogs.susx.ac.uk> <BxEvLB.FG4@ddsw1.mcs.com>
  9. Nntp-Posting-Host: liliasl1.uni-bielefeld.de
  10. Organization: Universitaet Bielefeld, ASL.
  11. Lines: 43
  12.  
  13. In article <BxEvLB.FG4@ddsw1.mcs.com>, dattier@ddsw1.mcs.com (DWT) writes:
  14. |> johny@cogs.sussex.ac.uk (John Yeates) wrote in
  15. |> <17315.9211061635@tsunb.ctn.cogs.susx.ac.uk>:
  16. |> 
  17.  
  18. [..deleted..]
  19.  
  20. |> | Is there a way of specifying a mailbox for forwardc to save in, or (better
  21. |> | yet) are there plans to implement a "bounce" action, working like the
  22. |> | bounce command in elm does? [Sanity permitting, I may have a go at this
  23. |> | myself, if I get the time]
  24. |> 
  25. |> You can tell filter to execute a script or a program that will send the
  26. |> letter off to your friend(s) but also store a copy in your selected folder;
  27. |> if locking is not important, you can just append it to the folder; otherwise
  28. |> it can massage the headers so that filter can tell it apart from the original
  29. |> and then mail it to everyone involved, including you, or mail it to everyone
  30. |> else and also refeed it to filter.
  31. |> 
  32. |> Now that -f is standard in filter, you can also execute a script or a program
  33. |> that uses its stdin twice like this: rmail (or otherwise bounce) it to
  34. |> everyone else and feed it to filter -f some_other_rule_file.  That way you
  35. |> can avoid a loop without needing to alter headers.
  36. |> 
  37. |> It's much easier to accomplish with procmail or deliver.  Both allow multiple
  38. |> actions on a single letter.
  39. |> 
  40. |> David W. Tamkin   Box 59297   Northtown Station, Illinois  60659-0297
  41. |> dattier@ddsw1.mcs.com    CompuServe: 73720,1570    MCI Mail: 426-1818
  42.  
  43. I had a filter-rules file containing only the following line:
  44. if (subject = "linecheck") then forwardc "%r"
  45.  
  46. In my .forward file I had the following line:
  47. | /vol/local/bin/filter
  48.  
  49. Since then all(!) my mails were put into the system's spool dir,
  50. and not into my own maildir.
  51. Does anybody know, how to build a script for the filter that 
  52. stores the mail in my own maildir instead of the system's maildir?
  53.  
  54. Thanks in advance for any further information,
  55. Markus.    
  56.