On Thursday 18 January 2001 05:34, you wrote:
> it will delete the rest of the emails after the attachemetn, if the
> attachement is in some part between the mailbox?
>
>

Are you using Maildir format mailboxes?  Or /var/spool/mail?  I think the 
assumption has been made that you are using Maildir.  It sounds to me like 
you have just the one mbox format file that contains somewhere within it the 
offending email.

The "best" solution I can think of, that doesn't require a text editor that 
needs lot of RAM or temporary disk space, is to actually load the file your 
mail program.  For example, run "mail" or "mailx" and use the option to 
specify a mail file to open.  eg, "mail -f /var/spool/mail/<username>"  Best 
done as root or the actual owner of the mailbox.  Any other user will not 
have the required permissions for saving the file.

The next step is to sit back and wait while your chosen program loads the 
12Mb+ mbox file....

Next, identify the problem message and delete it, then exit the mail program.

Finally, convert all of your mail users to Maildir format, as this is much 
more robust and would have made this while process as simple as this:

cd ~username/Maildir/new
ls -l
<identify big mail message>
rm <big mail message>

Hope this helps.

-- 
Andrew Bold
Unix Systems Administrator
[EMAIL PROTECTED]

--  
This message is confidential.  It may also be legally privileged.  It is intended 
solely for the stated addressee(s) and access to it by anyone else is unauthorised.  
If you have received this message in error, you must not disclose, copy, circulate or 
in any other way use or rely on the information contained in this message.  Such 
unauthorised use may be unlawful.  If you have received this message in error, please 
delete it immediately and advise us by return e-mail to the above address.

Reply via email to