On Tue, 18 Jan 2022, Chris Green wrote:
[...]
Currently I deliver local mail to myself on my linux (xubuntu 21.10)
system using a ~/.forward file as follows:-

   | /home/chris/.mutt/bin/filter.py

I'm looking for a simple way to test new versions of filter.py and I'm
not coming up with easy answers.

This is something which historically I've used formail (part of procmail) for. (Come to think of it I've kept the source around and compile it myself.)

As a grizzled veteran, I suggest you contemplate a workflow somewhat like:

* Save mail to a "unix mail" or "maildir" mailbox; this is your "corpus".
  You might consider doing this upstream, e.g. in aliases.

* Find something to process that corpus back into individual messages for
  reprocessing, e.g. formail.

* Build a proper test suite. ;-)

* Test, test, test!

--

Fred Morris, internet plumber

Reply via email to