* OT: Sorting emails in maildir?
@ 2012-12-10 11:30 Rainer M Krug
2012-12-10 11:39 ` Andrei POPESCU
0 siblings, 1 reply; 6+ messages in thread
From: Rainer M Krug @ 2012-12-10 11:30 UTC (permalink / raw)
To: notmuch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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?
Rainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
iEYEARECAAYFAlDFx9gACgkQoYgNqgF2egpbEQCgi5pm2X8k41f7IMLo805KByo9
2jMAn3N+Kpdx6hRRC4GNJzjWJlKKrpNi
=U49R
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OT: Sorting emails in maildir?
2012-12-10 11:30 OT: Sorting emails in maildir? Rainer M Krug
@ 2012-12-10 11:39 ` Andrei POPESCU
2012-12-10 11:57 ` Rainer M Krug
0 siblings, 1 reply; 6+ messages in thread
From: Andrei POPESCU @ 2012-12-10 11:39 UTC (permalink / raw)
To: notmuch
[-- Attachment #1: Type: text/plain, Size: 515 bytes --]
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?
Kind regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OT: Sorting emails in maildir?
2012-12-10 11:39 ` Andrei POPESCU
@ 2012-12-10 11:57 ` Rainer M Krug
2012-12-10 13:40 ` Andrei POPESCU
0 siblings, 1 reply; 6+ messages in thread
From: Rainer M Krug @ 2012-12-10 11:57 UTC (permalink / raw)
To: notmuch; +Cc: public-notmuch-gxuj+Tv9EO5zyzON3hdc1g
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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?
Thanks
Rainer
>
> Kind regards, Andrei
>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
iEYEARECAAYFAlDFzkUACgkQoYgNqgF2egrJ/ACdGuKw18R7oSQEcsv2btnfBNCS
ui8An2giOBzpuBlLilnV9I2etyfyI391
=1cTp
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OT: Sorting emails in maildir?
2012-12-10 11:57 ` Rainer M Krug
@ 2012-12-10 13:40 ` Andrei POPESCU
2012-12-10 14:27 ` Rainer M Krug
0 siblings, 1 reply; 6+ messages in thread
From: Andrei POPESCU @ 2012-12-10 13:40 UTC (permalink / raw)
To: notmuch
[-- Attachment #1: Type: text/plain, Size: 1150 bytes --]
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)
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OT: Sorting emails in maildir?
2012-12-10 13:40 ` Andrei POPESCU
@ 2012-12-10 14:27 ` Rainer M Krug
2012-12-10 22:15 ` Maxim Vuets
0 siblings, 1 reply; 6+ messages in thread
From: Rainer M Krug @ 2012-12-10 14:27 UTC (permalink / raw)
To: notmuch; +Cc: public-notmuch-gxuj+Tv9EO5zyzON3hdc1g
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 10/12/12 14:40, Andrei POPESCU wrote:
> 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).
Sorry - I have forgotten the part "from one year". But I found a solution:
notmuch search [...] | xargs -0 -I {} mv {} ~/rkrug/Maildir/Archive/2009/cur
$ notmuch search --output=files $(date +%s -d 2009-01-01)..$(date +%s -d 2009-31-12) | xargs -0 -I
{} mv {} ~/rkrug/Maildir/Archive/2009/cur
to move all emails from 2009 into the maildir Maildir/Archive/2009
I though about using mutt or , but I am using usually thunderbird and notmuch for searching and
occasionally answering emails and archiving. So mutt is not that straight forward to me.
Thanks,
Rainer
>
> Kind regards, Andrei
>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
iEYEARECAAYFAlDF8TcACgkQoYgNqgF2egqbqwCeMggEjTBTn9eiqkiN9EI77EH5
3LsAnj2GWjrri2WFl6SkBXIGCqeJGTbC
=2iOX
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OT: Sorting emails in maildir?
2012-12-10 14:27 ` Rainer M Krug
@ 2012-12-10 22:15 ` Maxim Vuets
0 siblings, 0 replies; 6+ messages in thread
From: Maxim Vuets @ 2012-12-10 22:15 UTC (permalink / raw)
To: Rainer M Krug; +Cc: notmuch
On Mon, Dec 10, 2012 at 03:27:04PM +0100, Rainer M Krug wrote:
>notmuch search [...] | xargs -0 -I {} mv {} ~/rkrug/Maildir/Archive/2009/cur
...
>I though about using mutt or , but I am using usually thunderbird and notmuch for searching and
>occasionally answering emails and archiving. So mutt is not that straight forward to me.
You may also try archivemail[1]. Unfortunately its the only output
format is mbox, so you cannot keep your archive indexed.
However I like your approach better. Thanks for the hint.
[1] http://archivemail.sourceforge.net/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-12-10 22:15 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-10 11:30 OT: Sorting emails in maildir? Rainer M Krug
2012-12-10 11:39 ` Andrei POPESCU
2012-12-10 11:57 ` Rainer M Krug
2012-12-10 13:40 ` Andrei POPESCU
2012-12-10 14:27 ` Rainer M Krug
2012-12-10 22:15 ` Maxim Vuets
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).