procmail
[Top] [All Lists]

Re: error report from recipe

2007-08-23 13:43:14
At 15:40 2007-08-23 -0400, Patrick Shanahan wrote:

The following recipe generates an error I do not know how to deal with..

# -------------------------------------------------------
:0 c
$MAILDIR/backup
:0 ic
| cd ~/mail/backup && rm -f dummy `ls -t msg.* | sed -e 1,6000d`
-------------------------------------------------------

the error:

 Folder:  cd ~/mail/backup && rm -f dummy ls -t msg.* | sed -e 1,600
/bin/bash: /bin/ls: Argument list too long

That's because the msg.* wildcard on the commandline expands to ALL of the 
matching filenames, ON THE COMMANDLINE.

See 'man xargs' for a workaround.  Another possible workaround would be to 
segment your backup directory, so that individual folders contain no more 
than 'x' files (say, 100 or 200 at a pop).

Am I limited to three digits or is the error msg truncated.  I really
want to maintain an accumulation of ~6000 duplicate msgs.

There's a word for people who enjoy pain...


---
  Sean B. Straw / Professional Software Engineering

  Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
  Please DO NOT carbon me on list replies.  I'll get my copy from the list.
____________________________________________________________
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