procmail
[Top] [All Lists]

Re: [Q] Converter between ELM filter-rules file to procmailrc file?

1997-08-06 03:15:00
[This message has also been posted.]
On 5 Aug 1997 21:36:45 -0400, Dick Adams 
<rdadams(_at_)access5(_dot_)digex(_dot_)net> wrote
in an Usenet article:
I have to agree with Elijah that procmail is not a user friendly 
utility.

In the procmail mailing list (BTW, recommended very much if you like
to use procmail a lot) recently someone mentioned a "proclint" utility
to do some easy checks of the .procmailrc syntax.  I didn't check it
out myself, yet, but it could be of help.

It was my impression that the original poster was hoping
to find a utility program that would automate the conversion.  The
responses appear to be "you have to read the detail and figure it
out for yourself."  That's what I was afraid of!!

Me, too!  I dislike these arrogant unhelpful answers a lot that just
say RTFM, but really saying: stupid, think yourself.

Unfortunately I don't have the time currently to write such a tool,
but it shouldn't be too difficult (I'd try it in perl ...).

If someone is going to code it:

  One doesn't have to deal with the different syntactic forms allowed
  in the filter-rules file, if you just take the output of "filter -r"
  as this is normalized. (And as a side-effect this catches any errors
  in filter-rules which otherwise might confuse the converter :-).

Well, now that I think about it I just could give it a try, too :-)
(And tree hours later *sigh*)

A most probably incomplete first version is at:
  http://www.forwiss.uni-passau.de/~ramsch/Software/elmfilter2procmail.txt
  (to view the source)
  http://www.forwiss.uni-passau.de/~ramsch/Software/elmfilter2procmail.perl
  (to download)

I'd love to get some feedback on it to be able to improve the script.

Everybody with some knowledge of both Elm Filter and Procmail, please
would you try this script and have a look whether or not the output
Procmail recipes reasonably resemble the original filter rules?

Regards,
  Martin
-- 
Martin Ramsch <m(_dot_)ramsch(_at_)ieee(_dot_)org> <URL: 
http://home.pages.de/~ramsch/ >

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Q] Converter between ELM filter-rules file to procmailrc file?, Martin Ramsch <=