LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] huge mbox file with approx 5601 mails

[ILUG] huge mbox file with approx 5601 mails

ray at skynet.ie ray at skynet.ie
Thu Nov 18 03:14:47 GMT 2004


On Thu, 18 Nov 2004, Glen Turner wrote:

> Ken Guest wrote:
> > I've been very bad and let my ~/mbox get ridiculously huge.
> > There are some 5601 or so mails in it from various mailing lists and
> > friends. Because I ssh to read my emails I use mutt (what else!) - what is the
> > best way for me to separate these mails out into folders of their own?
> 
> Copy the mbox file to /var/spool/mail/fred. Heat up an IMAP server
> like Dovecot. Run an IMAP filter program to sort the mail into
> various folders. Freshmeat lists about 10 programs, and if none
> of them suit you could always use fetchmail/postfix|sendmail/procmail
> to re-process the mail.
> 
> The copy the folders to wherever you need them for mutt.

Christ... That actually sounds like /work/ but being able to use multiple 
clients is always a good idea (tm)

anyway, this is /my/ way of doing this!

touch a file for each mailfolder in whatever directory you've got your
mbox in, power up pine, making sure that the dir it reads is where mbox &
the rest live, open the mbox "mail folder" hit " ; " to bring up "SELECT 
criteria :"  T for text, A for all message
text & then whack "X-BeenThere: ilug at linux.ie" in & hit enter This will
mark all your ilug mail with an X (eventually).
Hit " a " to apply followed by " s " to save & type in the name of the 
folder which you intend to save your ilug mail to, wait another bit while 
this happens & once it's finished tap " x " to flush mails which have 
since been marked for deletion & make subsequent searchs that little 
quicker.

Rinse, wash, repeat for each list etc etc

& then for the sake of the people & love of the baby jesus "SET UP
PROCMAIL (or similar) TO DO THIS AUTOMAGICALLY" it's not that hard to 
accomplish

Actually, thick mucksavage here has just remembered that procmail 
itself or one of a shedload of perlscripts out there (including one in 
the "perl cookbook" IIRC or was this "perl for sysadmins") can do this 
from a cmd line & take a hell of a lot less time but that's a different 
excercise if only because I cant remember how off the top of my head but 
I'm sure that msn search would be of some use here to find the syntax ;)

ta
	Ray ...

btw, how do you have approx 5601 mails ? shouldnt that be "approx 5k6 
msils" ?




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell