On Thu, 1 Apr 1999, Mario Melendez Esquivel wrote:
> Would you know how I could make the recipe read the addresses it's supposed
> to reply to from a certain file on my system?

        The message before and this one are slighly modified from the
examples in procmailex man page.  So check it more careful.  Also, make
sure to check the procmailrc and the procmail man pages.

        Anyway, your solution would look like that:
EMAILS=`cat $HOME/emails`
:0 B:
* ^From.*${EMAILS}
| your_commands

        EMAILS is the variable which will contain the file emails from
your home directory.  And emails is the file in which you will put the
address.  Man page says be careful, this filelenght should be smaller than
$LINEBUF or you'll have to increase $LINEBUF.  $LINEBUF it's a procmail
variable, which cannot be smaller than 128, and defaults to 2k.
        I have to add here that I'm not sure that this can apply to what
you want.  If you don't want to modify $HOME/.procmailrc, and there is no
problem with writing the $HOME/emails file like that:
(address1|address2|address3) and so on, than it could work something like:
EMAILS=`cat $HOME/emails`
:0
* ^From.*${EMAILS}
| your_commands

        Just remeber the warning with $LINEBUF.

        Raider
--
                ``Liberate tu-temet ex inferis''

Reply via email to