procmail
[Top] [All Lists]

Re: Delivery to several directory folders?

2005-01-26 05:01:23
On Wed, Jan 26, 2005 at 01:25:09PM +0200, Udi Mottelo wrote:
On Wed, 26 Jan 2005, Dallman Ross wrote:

I haven't looked to see what procmail does on two different filesystems.
Let's try:

 procmail: Rcfile: "two.rc"
 procmail: Assigning 
"LASTFOLDER=foo/new/1106734272.20200_0.panix5.panix.com"
 procmail: Linking to "/var/tmp/bar/new/1106734272.20200_1.panix5.panix.com"
 procmail: Couldn't make link to 
"/var/tmp/bar/new/1106734272.20200_1.panix5.panix.com"

Interesting; the second copy fails in that event.

      Yes, because hardlink is two entries for one inode in one
      table which doesn't exist in other filesystem.  The softlink
      is one entry which contains the address of the real file.

Yup.  I'm aware of how hardlinks worked.  What I wasn't sure about was
whether procmail's source code had a fallback way of creating two
files when the action is to deliver to two dirs.  I have never actually
used that feature of procmail's, and wanted to clarify for myself
how it operates.  For example, I wondered whether procmail looks to
see if the link fails, and if so, does a second normal filewrite
instead.  But it obviously doesn't do such testing.
So the double delivery only works on one filesystem (and where perms
allow, natch).

-- 
dman

____________________________________________________________
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