Re: [Mailman-Users] Delete message in large mbox
I tried to use vim, but it's a too long file to manage (I don't know how to do, too).
I have not had as chance to read this entire thread from the weekend, so maybe what I have to say has already been said.
I once had to processs a 1+Gb mbox file where there had been a mail loop, which caused the mbox file to grow in size. The owner wanted to save all of the non-looping mail in the mbox.
I ended up using head, tail, grep, and a few other Unix utilities to find the wanted mail and extract it into a new mbox file. It would have been easier to use vi or vim, but the file was too large.
Barry S. Finkel Computing and Information Systems Division Argonne National Laboratory Phone: +1 (630) 252-7277 9700 South Cass Avenue Facsimile:+1 (630) 252-4601 Building 222, Room D209 Internet: BSFinkel@anl.gov Argonne, IL 60439-4828 IBMMAIL: I1004994
Barry Finkel ha scritto:
I ended up using head, tail, grep, and a few other Unix utilities to find the wanted mail and extract it into a new mbox file. It would have been easier to use vi or vim, but the file was too large.
I didn't do any changes yet, I was working on other projects. Vim is a new utility for me, but there's a useful guide I can use to do what I need for now. Your example makes me think I have to worry about the future growth of the mailbox and how to handle it with different utilities I don't know.
Do you think there is an easier way to do these cleanings? A sort of webmail interface?
Odieresis [Gmail] writes:
Do you think there is an easier way to do these cleanings? A sort of webmail interface?
Maybe this could be done in the long run, but the problem is finding a given message in the large mailbox. This can't be done effectively over the web. If you have shell access, I would use Python to set up the mbox file as a Python mailbox object, then loop over messages saving each to a copy mbox until you find similar to the one (eg, matching subject) you're looking for, let the user choose whether to skip that, and continue until done. (Sorry, I don't have code off the top of my head.)
On 2/25/08, Odieresis [Gmail] wrote:
I didn't do any changes yet, I was working on other projects. Vim is a new utility for me, but there's a useful guide I can use to do what I need for now. Your example makes me think I have to worry about the future growth of the mailbox and how to handle it with different utilities I don't know.
You do want to break the raw archive file periodically -- as in move the old archive file aside and start a new one, then reload Mailman. You don't want the file to grow so large that it can't be edited.
Do you think there is an easier way to do these cleanings? A sort of webmail interface?
Mailman does not currently have any such tools, no.
-- Brad Knowles brad@shub-internet.org LinkedIn Profile: http://tinyurl.com/y8kpxu
participants (4)
-
Barry Finkel
-
Brad Knowles
-
Odieresis [Gmail]
-
Stephen J. Turnbull