[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mutt-users
Subject:    Re: "All mail" meta-folder. Possible?
From:       Peter Wiersig <peter () friesenpeter ! de>
Date:       2009-11-20 13:50:08
Message-ID: 20091120135008.GB17324 () london087 ! server4you ! de
[Download RAW message or body]

On Thu, Nov 19, 2009 at 05:56:11PM +0100, Peter Wiersig wrote:
> On Thu, Nov 19, 2009 at 12:50:37PM +0000, Salvatore Iovene wrote:
> > 
> > Any ideas?
> 
> Time-consuming:
> rm -r Maildir/.All-Mails
> maildirmake Maildir/.All-Mails
> find Maildir/ -type f -name '1[0-9]*.*:*' -print0 | xargs cp --target=Maildir/.All-Mails/cur

find Maildir/ -type f -name '1[0-9]*.*:*' -print0 | xargs -0r cp --target=Maildir/.All-Mails/cur

correction: when -print0 is used, xargs needs -0 before cp, optionally also -r is useful...

Peter
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic