procmail
[Top] [All Lists]

Re: Seemingly simple rule won't work

2004-05-06 04:33:36
On Thu, 6 May 2004, Nancy McGough wrote:

On 6 May 2004 Hans du Plooy (hansdp(_at_)newingtoncs(_dot_)co(_dot_)za) wrote:

 [...]

* Rather than specifying the full path to a mailbox, I recommend
that you use a relative path. This will make your code more
portable and easier to change.

        I suggest to set a variable in the head of the script.
        It is possible scenario that you cope the script to another
        place where you have similar subdirectories' name and procmail
        would corrupt the wrong file.   For example:  My folder is in
        /home/ayalon/elect/box and I use the relative path "elect/box".
        Now, if I use it from another account in /home/production procmail
        will write a message into the file "elect/box" but not under "ayalon"
        and will corrupt my electronic research data-base!  In this scenario
        the relative path is bad for the portability.

Bye,
 Udi




I discuss these and a lot more in my Procmail Quick Start, which
is here:

  <http://www.ii.com/internet/robots/procmail/qs/>

Nancy
Infinite Ink
www.ii.com

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>