Re: OT: Sorting emails in maildir?

Subject: Re: OT: Sorting emails in maildir?

Date: Mon, 10 Dec 2012 15:40:22 +0200

To: notmuch@notmuchmail.org

Cc:

From: Andrei POPESCU


On Lu, 10 dec 12, 12:57:57, Rainer M Krug wrote:
> On 10/12/12 12:39, Andrei POPESCU wrote:
> > On Lu, 10 dec 12, 12:30:32, Rainer M Krug wrote:
> >> Hi
> >> 
> >> This is slightly offtopic, but I would like to move all emails in a Maildir folder into an
> >> Archive folder. What is the easiest way of doing this? I assume I ave to do this outside
> >> notmuch, but is there an easy way? I have 250 000 emails on my gmail account, and this is
> >> slowing many things down.
> >> 
> >> Any suggestions?
> > 
> > mv?
> 
> I found
> 
> notmuch search --output=files $(date +%s -d 2010-01-01)..$(date +%s -d 2010-12-31)
> 
> and how I can create a maildir (http://plasmasturm.org/log/81/)
> 
> So now I have to pipe the result from the notmuch command above to mv and move it to
> $MAILDIR/ARCHIVE.2010/cur
> 
> Is this correct? How can I do this?

Above you wrote "all emails in a Maildir", which is why I suggested 
'mv'. For a more complex operation I would use my usual mail client 
(mutt in my case).

Kind regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)
signature.asc (application/pgp-signature)

Thread: