procmail
[Top] [All Lists]

Re: Delivery to several directory folders?

2005-01-26 03:27:02
On Wed, Jan 26, 2005 at 11:19:09AM +0200, Udi Mottelo wrote:

On Tue, 25 Jan 2005, Dallman Ross wrote:

If the delivery is to a directory or directories -- either
maildir-, MH-, or traditional procmail dir-format -- then, yes.
If to flat folders (mbox-style files), then, no.


Here's an rcfile I called "two.rc":

   7:23pm [~/Mail] 297[0]> cat two.rc

  :0
  foo/ bar/


      Thanks for the example, I didn't know it.  But now after I
      read the man again I think that you missed one more test:

# ls -i */new/*
 655833 A/new/1106729566.4420_0.serv.co
 655833 B/new/1106729566.4420_1.serv.co
#

      The inode is same because there are no two copies
      but hardlink.  It can help for access by two ways
      to the same message, for example:

vi $username/new/message  or  vi $familyname/new/message

      but if you delete $username/new/message then
      $familyname/new/message will not be exist!

It is hardlinked, yes.  But your conclusion in the last sentence
just above is not correct.  Deleting one copy of a hardlinked 
file does leave the remaining cop(y|ies).

  
   11:08am [~/Mail] 259[1]> ln SPAMPLE SAMPLE
  

   11:08am [~/Mail] 260[0]> ls -li S*
  3122272 -rw-r--r--    2 dman     users        8250 Jan 24 01:37 SAMPLE
  3122272 -rw-r--r--    2 dman     users        8250 Jan 24 01:37 SPAMPLE
  

   11:08am [~/Mail] 261[0]> rm -f SAMPLE
  

   11:09am [~/Mail] 262[0]> ls -li S*
  3122272 -rw-r--r--    1 dman     users        8250 Jan 24 01:37 SPAMPLE


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.

-- 
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