procmail
[Top] [All Lists]

Re: How to include an on the fly autogenerated file in procmailrc

2007-11-11 04:37:11
Stefano Sabatini schreef:

Here it is my problem: I see that there is the possibility to include
a procmailrc inside another. Would be possible to include a file
autogenerated on the fly, for example using some script, something
like the:
source "script args|"

feature of mutt?

This is because I would like to define a script which reads from a
file the list of the subscribed mailing lists, then automatically
generates the corresponding boiler plate snippet for procmailrc, (then
I could eventually refine settings in the rest of the procmailrc
manually edited file).

The alternative to the automatic generation is to manually run the
script every time a new entry in the subscribed mailinglist list is
changed, but I would like to avoid this step.

CMIIAW, but it seems to me that your current problem is that you have
chosen a wrong way to solve your original problem. Let's go back to
(what I see as) your original problem: how to conveniently sort messages
per mailing list.

That problem has been solved many times before, often by using a single
general list recipe.

A key element in many of those solutions is a (pure procmail)
substitution list.
In the recipe you capture an identifying string from the message, and
substitute that with the list's folder name.
New subscriptions will just use the identifying string as the folder
name, because most of the times there is no need to substitute.

-- 
Groet, Ruud

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail