Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

VAmin

macrumors member
Original poster
Oct 1, 2004
60
0
Hello,
I recently tried to send someone an email with a very large attachment (~180mb). My mail server rejected it, but now mail tries to resend it everytime I open it. The effort of trying to send the file causes it to freeze and 'unexpectedly quit' every time now. Is there a way that I can delete the file from my outbox without opening mail?
Thanks in advance,
Victor
 
Close Mail.

Open Terminal, and type:

cd ~/library/mail/mailboxes/outbox.mbox
ls -la

You will see a large file in there (the file size is the fifth column from the left).

Type:

mv "large file's name" temp

You don't need quotes around the large file's name unless it has spaces in it. Leave Terminal open.

Now open Mail. If everything is back to normal, go back to terminal, and type:

rm temp
exit

And then you can quit terminal.

If you have trouble,

mv temp "large file's name" (notice order reversed)

will undo what you did.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.