procmail
[Top] [All Lists]

Re: Delivery to several directory folders?

2005-01-25 11:48:09
On Tue, Jan 25, 2005 at 07:49:01PM +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.

      I don't understand, if I save message to abc/ for example
      I'll have only one copy in  abc/new/long...string  and no
      more, isn't?

      Can you give example?

Okay, if you'll quit quoting .sigs and so much extraneous matter
in return, I'll be glad to.  :)


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

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

  :0
  foo/ bar/
  

I'll make two directories.

   7:24pm [~/Mail] 298[1]> md foo bar
  

Here the are:
  
   7:24pm [~/Mail] 299[0]> ls -l -d foo bar
  drwx--x--x    2 dman     users        4096 Jan 25 19:24 bar/
  drwx--x--x    2 dman     users        4096 Jan 25 19:24 foo/
  

Run a message through two.rc:
  
   7:24pm [~/Mail] 300[0]> vsnag.point-n-shoot.sh SPAMPLE --rcfile two.rc 
  procmail: [29640] Tue Jan 25 19:24:40 2005
  procmail: Assigning "VS_DIAGS=./vsnag.self-test.rc"
  procmail: Assigning "VS_MYVARS="
  procmail: Assigning "PROCMAIL=procmail"
  procmail: Rcfile: "two.rc"
  procmail: Assigning "LASTFOLDER=foo/new/1106677480.29640_0.panix5.panix.com"
  procmail: Linking to "bar/new/1106677480.29640_1.panix5.panix.com"
  From qolhkxt(_at_)freewebe(_dot_)com  Thu Jan  6 18:56:00 2005
   Subject: Be|ow the Radar Equity
    Folder: foo/new/1106677480.29640_0.panix5.panix.com bar/new/11066774     
8198
  

Is it really there, twice?
  
   7:24pm [~/Mail] 301[0]> find foo bar -type f
  foo/new/1106677480.29640_0.panix5.panix.com
  bar/new/1106677480.29640_1.panix5.panix.com
  

Yup.  Let's double-check:
  
   7:25pm [~/Mail] 302[0]> diff `!!`
  diff `find foo bar -type f`

Two copies were saved in the delivery.

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