Hi,
I need to delete a message from the archive. I read in some post I have to open mbox file of the list and manually remove the message as in source code. Then to rebuild the archive it's necessary to backup the archive folder and leave it blank.
Now I have a large mbox of MB 200. Can you tell me how I can handle such a file direct in shell access or downloading and uploading it?
Thank you for your time,
Francesco
Odieresis wrote:
I need to delete a message from the archive. I read in some post I have to open mbox file of the list and manually remove the message as in source code. Then to rebuild the archive it's necessary to backup the archive folder and leave it blank.
Now I have a large mbox of MB 200. Can you tell me how I can handle such a file direct in shell access or downloading and uploading it?
If you haven't already done so, see <http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq03.003.htp>. Even if you have seen this FAQ, see it again as I just revised it.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mark Sapiro ha scritto:
If you haven't already done so, see <http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq03.003.htp>. Even if you have seen this FAQ, see it again as I just revised it.
Thank you Mark, this is where I collected the informations about how to delete the messages. Now my question is how to handle a large mailbox file. Maybe it's a dumb question, I can't open the file with mutt or emacs, I think these are unavailable on my virtual server.
I will appreciate any suggestion, thank you.
Odieresis wrote:
Thank you Mark, this is where I collected the informations about how to delete the messages. Now my question is how to handle a large mailbox file. Maybe it's a dumb question, I can't open the file with mutt or emacs, I think these are unavailable on my virtual server.
You could try ed, ex, vi or vim, or you could just edit the individual HTML message per the last section in the revised FAQ.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mark Sapiro ha scritto:
You could try ed, ex, vi or vim, or you could just edit the individual HTML message per the last section in the revised FAQ
I don't want to edit the html files and leave the message in the mailbox. I tried to use vim, but it's a too long file to manage (I don't know how to do, too). It will be nice if I can download and edit the mbox file or use such a mailbox manager online.
Thank you.
On 2/23/08, Odieresis [Gmail] wrote:
I don't want to edit the html files and leave the message in the mailbox.
Fair enough.
I tried to use vim, but it's a too long file to manage (I don't know how to do, too).
Vim should be able to handle it. If vim can't handle it, you may be left with no other viable option. Again, you need to talk to your provider.
It will be nice if I can download and edit the mbox file or use such a mailbox manager online.
We don't provide any such service, and I don't know of anyone who does. Moreover, I don't know of any such tools you could use to edit the file locally which would meet the necessary requirements, other than the exact same tools you could already use to edit the file in-place on your server.
-- Brad Knowles <brad@shub-internet.org> LinkedIn Profile: <http://tinyurl.com/y8kpxu>
Brad Knowles ha scritto:
Vim should be able to handle it. If vim can't handle it, you may be left with no other viable option. Again, you need to talk to your provider.
I'm trying to edit the .mbox with Vim, I hope to do any mistakes. Thank you for your detailed answers.
On 2/23/08, Mark Sapiro wrote:
You could try ed, ex, vi or vim, or you could just edit the individual HTML message per the last section in the revised FAQ.
My recollection is that ed, ex, and the original vi cannot handle arbitrarily long lines or binary content, and don't work well with large files. I believe that "nvi" and "vim" as alternatives to the original "vi" should be able to do these things just fine, as would emacs (and the various derivatives).
-- Brad Knowles <brad@shub-internet.org> LinkedIn Profile: <http://tinyurl.com/y8kpxu>
On 2/23/08, Odieresis [Gmail] wrote:
Now my question is how to handle a large mailbox file. Maybe it's a dumb question, I can't open the file with mutt or emacs, I think these are unavailable on my virtual server.
You may need to talk to your service provider to find out what tools they do have available which would be able to meet the specified requirements.
-- Brad Knowles <brad@shub-internet.org> LinkedIn Profile: <http://tinyurl.com/y8kpxu>
On 2/23/08, Odieresis [Gmail] wrote:
Now I have a large mbox of MB 200.
That's not a large mbox. A large mbox is 2GB, especially on a system where the OS is not configured to support "large files", and 2GB is the largest file size it can handle. Oh, and the machine has only 2GB of RAM.
Can you tell me how I can handle such
a file direct in shell access or downloading and uploading it?
If you've got the necessary write access to the file, it doesn't matter if you edit the file in-place using tools like emacs or vim, or if you download the file to your local machine and edit it there with a similar program and then re-upload.
Either way, you're going to need an editor that can handle lines of arbitrary length, and binary content. Relatively few editors handle either or both of those things correctly.
-- Brad Knowles <brad@shub-internet.org> LinkedIn Profile: <http://tinyurl.com/y8kpxu>
participants (3)
-
Brad Knowles
-
Mark Sapiro
-
Odieresis [Gmail]