home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / archives / 2943 < prev    next >
Encoding:
Internet Message Format  |  1992-07-20  |  3.3 KB

  1. Path: sparky!uunet!usc!elroy.jpl.nasa.gov!ames!agate!eiffel.com!ram
  2. From: ram@eiffel.com (Raphael Manfredi)
  3. Newsgroups: comp.archives
  4. Subject: [comp.lang.perl] Perl mail filter program publicly available
  5. Followup-To: poster
  6. Date: 21 Jul 1992 09:33:39 GMT
  7. Organization: Interactive Software Engineering, Santa Barbara CA
  8. Lines: 68
  9. Approved: adam@soda.berkeley.edu
  10. Distribution: world
  11. Message-ID: <14glljINNn9b@agate.berkeley.edu>
  12. References: <102@eiffel.eiffel.com>
  13. NNTP-Posting-Host: soda.berkeley.edu
  14. Summary: How to get a mail filter program written in perl
  15. X-Original-Newsgroups: comp.lang.perl,comp.mail.mh,comp.mail.elm,alt.sources.d
  16. X-Original-Date: 20 Jul 92 20:58:18 GMT
  17.  
  18. Archive-name: auto/comp.lang.perl/Perl-mail-filter-program-publicly-available
  19.  
  20. ANNOUNCEMENT
  21.  
  22. I have made a previous announcement in comp.lang.perl, stating I was looking
  23. for a FTP site willing to archive the distribution. I would like to express
  24. my thanks to all those who responded, namely (order of arrival):
  25.  
  26.     Bill Silvert <silvert@cs.dal.ca>
  27.     Christopher Davis <ckd@eff.org>
  28.     sondeen@isi.edu
  29.     John N. Stewart <jns@nas.nasa.gov>
  30.  
  31. Here are the required information to grab a copy of the distribution via
  32. anonymous FTP:
  33.  
  34.     Host: ftp.eff.org (192.88.144.4),
  35.     Directory: /pub/net-tools
  36.     File: perl-mailagent.tar.Z
  37.  
  38. This is version 2.9 PL0 (as of today), and it is a beta version, preparing
  39. the final 3.0 release which should be part of a general software distribution
  40. package.
  41.  
  42.  
  43. WHY A NEW FILTER?
  44.  
  45. Elm and MH users who are currently using the "standard" filter program
  46. (respectively "filter" and "slocal") might find the perl mailagent I wrote
  47. useful. I think it has all the commonly used (and needed) features, plus
  48. the advantage of being written in a scripting language -- although I doubt
  49. someone really has to actually edit the code: the configuration being flexible
  50. enough to satisfy most installation criteria and is done in a separate
  51. ~/.mailagent file.
  52.  
  53. Filtering rules are specified using a lex-like syntax. In fact, this is the
  54. main reason which is at the origin of this program. The ELM filter program
  55. specifies rules "in English", but it lacks regular expressions and happily
  56. appends mails to your folders by using something like:
  57.  
  58.     open(MBOX, ">$folder");
  59.     print MBOX <STDIN>;
  60.     close MBOX;
  61.  
  62. Who said there is no error checking nor file locking? ;-)
  63. (The ELM filter is written in C, the above excerpt is perl code, which is more
  64. concise than the equivalent C, I think)
  65.  
  66. The ~/.maildelivery used by slocal from the MH distribution is intended to
  67. be compatible with MMDF (as far as I know) and is not very "readable". The
  68. only viable alternative if you are an MH user is to use Martin Strike's
  69. audit.pl package. But I can't use that package on my machine, for various
  70. reasons (contact me for details: ram@eiffel.com).
  71.  
  72. ABOUT THE PROGRAM
  73.  
  74. This mailagent program finds its roots into an earlier version written by
  75. the author of perl himself, in his "dist" 2.0 package. Since February 1991, it
  76. has progressively evolved into a 5000+ lines script.
  77.  
  78. Because it also pleases the author of my story, a lot of work has been put in
  79. this program to make it easy to configure, install, use and maintain.
  80. -- 
  81. Raphael Manfredi <ram@eiffel.com>
  82. Interactive Software Engineering Inc.
  83. 270 Storke Road, Suite #7                      / Tel +1 (805) 685-1006 \
  84. Goleta, California 93117, USA                  \ Fax +1 (805) 685-6869 /
  85.  
  86.