Thomas --

...and then Thomas Hurst said...
% * Vineet Kumar ([EMAIL PROTECTED]) wrote:
% 
% > * Thomas Hurst ([EMAIL PROTECTED]) [011127 15:43]:
% 
% > The other thing, which it seems is often overlooked and
% > underappreciated, is the ability to use nice things like grep, find,
% > xargs and the like on your mail the way it oughta work.
% 
% Hm, is there a quick way to convert a mbox to Maildir so I can have a
% quick look to see what it's like on a huge mailbox?

  :set mbox_type=Maildir
  T.
  ;C/tmp/TestMailFolder/

to set your mbox type to maildir, tag all messages, and then copy them to
a test maildir (but not flag them all for deletion in the current folder;
if you want that then ;s(ave) instead of ;C(opy).


% 
% (he says, blatently avoiding reading the manual)

Yeah, obviously :-)


% 
% > > I do tend to leave deleting/archiving mail until I absolutely can't
% > > stand waiting for the client to load folders any more, though, so
% > > maybe that mainly applies to very large mailboxes.  I've killed
% > > three MUA's doing that so far :)
% >
% > Well, I certainly don't mean to tell you how to live your life, but
% > here's how I do mine:
% >
% > set mbox_type=Maildir set record="+archive/sent-mail/`date
% > +%Y/%m-sent-mail-%Y'`" set mbox="+archive/inbox/`date
% > '+%Y/%m-inbox-%Y'`" set move
% 
% I do plan on doing something like this, it's just a matter of being
% bothered to do it.  Maybe when my freebsd cvs-all folder gets tedious to
% open :)

Well, let's see, here...  Now I'm finally curious.  First I opened my big
funnies folder and converted it to Maildir; on about 9400 messages that
took mutt about 7 minutes to write using the exact method described
above (but we don't have the fastest SCSI disk even though we are using
reiserfs.  When I open the folder both ways I get

  [zero] [10:14am] ~>  time mutt -e "push x" -f Mail/F.funnies
  4.460u 1.590s 1:18.68 7.6% 0+0k 0+0io 1747pf+0w

  [zero] [10:16am] ~>  time mutt -e "push x" -f Mail/M.funnies
  4.850u 3.370s 3:20.50 4.0% 0+0k 0+0io 1145pf+0w

It looks like Maildir is distinctly worse for me.

I should probably have used /dev/null for my muttrc since I push a
collapse-all and sort by threads in there, but it applies to both and the
sorting is quick; once the message count finishes, the screen only stays
blank for a second or two saying "sorting messages".

It was interesting to me to find that the Maildir version does not show a
percentage count as it counts up messages; it's comforting to see oneself
getting closer and closer to 100% when you don't know how many messages
are in the [large!] folder.  I'd think that would be even easier with
Maildir, since you need only look at the directory inodes rather than
look through the whole mbox file, but perhaps that percentage is of the
total size rather than the total number (and the size, of course, is easy
to get on the way in).


% 
% -- 
% Thomas 'Freaky' Hurst  -  [EMAIL PROTECTED]  -  http://www.aagh.net/


:-D
-- 
David T-G                      * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: msg20753/pgp00000.pgp
Description: PGP signature

Reply via email to