undeletable? piece of junk mail wont leave inbox.

ok, this has been a problem since oct 2006. i recieved a piece of junk from "mail delivery system", entitled "Undelivered Mail Returned to Sender". typical spam, although i have no idea why they send it around with nothing in the actual message. i deleted it. i closed my mail window and went back to my day. next day, i open my mail. it's there again. i cant do ANYTHING to get rid of this crap. it always shows back up. anybody seen anything like it?

1.8Ghz G5, Mac OS X (10.4.8)

Posted on Dec 29, 2006 7:59 AM

Reply
9 replies

Dec 30, 2006 10:00 AM in response to David Gimeno Gost

strange. since i tried your apple+x instead of delete, i'm unable to quit mail without force quitting. as soon as i force quit and go back of course, the message has returned. anything else i do in mail doesnt affect it. if i, say, check my mail, download new messages and delete my trash, that all works fine. but if i touch that one piece of mail, forget it.

and no, there's no attachment.

ben

Dec 30, 2006 10:05 AM in response to im_bl8ant

dont know if this will help, but here's the message, headers and all.

----------

From: MAILER-DAEMON@interia.pl
Subject: Undelivered Mail Returned to Sender
Date: October 26, 2006 5:57:27 PM EDT
To: irso@theneep.com
X-Gmail-Received: 6600e272992b802158eae85b1a0f2dbe7f8efd38
Delivered-To: XXXXX@gmail.com
Received: by 10.70.125.8 with SMTP id x8cs225890wxc; Thu, 26 Oct 2006 14:57:30 -0700 (PDT)
Received: by 10.70.49.12 with SMTP id w12mr4142784wxw; Thu, 26 Oct 2006 14:57:30 -0700 (PDT)
Received: from kyoto.hostforweb.net (kyoto.hostforweb.net [205.234.253.9]) by mx.google.com with ESMTP id i36si714834wxd.2006.10.26.14.57.30; Thu, 26 Oct 2006 14:57:30 -0700 (PDT)
Received: from [80.48.65.10] (port=49314 helo=smtp4.poczta.interia.pl) by kyoto.hostforweb.net with esmtp (Exim 4.52) id 1GdDCn-0001QC-PV for irso@theneep.com; Thu, 26 Oct 2006 16:56:06 -0500
Received: by smtp4.poczta.interia.pl (INTERIA.PL, from userid 502) id 42F253B259D; Thu, 26 Oct 2006 23:57:28 +0200 (CEST)
Received: from mx.poczta.interia.pl (mx03.poczta.interia.pl [10.217.10.3]) by smtp4.poczta.interia.pl (INTERIA.PL) with ESMTP id DC2633B2636 for <irso@theneep.com>; Thu, 26 Oct 2006 23:57:27 +0200 (CEST)
Received: by mx.poczta.interia.pl (Postfix) id 3CCDB3AD480; Thu, 26 Oct 2006 23:57:27 +0200 (CEST)
Return-Path:
Received-Spf: pass (google.com: best guess record for domain of kyoto.hostforweb.net designates 205.234.253.9 as permitted sender)
Mime-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status; boundary="C079B3AFD34.1161899847/mx.poczta.interia.pl"
Message-Id: <20061026215727.3CCDB3AD480@mx.poczta.interia.pl>
X-Emid: 3a140acc
X-Antiabuse: This header was added to track abuse, please include it with any abuse report
X-Antiabuse: Primary Hostname - kyoto.hostforweb.net
X-Antiabuse: Original Domain - theneep.com
X-Antiabuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-Antiabuse: Sender Address Domain -
X-Source:
X-Source-Args:
X-Source-Dir:

This is the Postfix program at host mx.poczta.interia.pl.

I'm sorry to have to inform you that your message could not be
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The Postfix program

<pawnowy@interia.pl>: permission denied
Reporting-MTA: dns; mx.poczta.interia.pl
X-Postfix-Queue-ID: C079B3AFD34
X-Postfix-Sender: rfc822; irso@theneep.com
Arrival-Date: Thu, 26 Oct 2006 22:11:20 +0200 (CEST)

Final-Recipient: rfc822; pawnowy@interia.pl
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; permission denied

Date: October 26, 2006 4:10:50 PM EDT

Dec 30, 2006 10:28 AM in response to im_bl8ant

OK. It looks like manually getting rid of the offending *.emlx file and re-creating the index will be necessary here. Here are two alternate procedures that should allow you to fix the problem. Let me know which do you find more convenient and/or works better for you:

* PROCEDURE A *

1. Select the offending message in Mail.

2. Copy the following script, open /Applications/AppleScript/Script Editor, paste the script there, and click Run:

set theFileList to {}
tell application "Mail"
set theSelection to the selection
repeat with aMessage in theSelection
set aFileName to (id of aMessage as string) & ".emlx"
copy aFileName to the end of theFileList
end repeat
end tell
get theFileList

The *.emlx file associated with the offending message should appear in the script’s Result pane (and in Script Editor’s Window > Result History).

3. Quit Mail.

4. In the Finder, go to ~/Library/Mail/. Make a backup copy of this folder, just in case something goes wrong, e.g. by dragging it to the Desktop while holding the Option (Alt) key down. This is where all your mail is stored.

5. Locate Envelope Index and move it to the Trash. If you see an Envelope Index-journal file there, delete it as well.

6. (Optional) In the Finder, go to ~/Library/Mail/POP-username@mailserver/. Locate Deleted Messages.mbox, and move it to the Trash if there is nothing to be preserved there.

7. In the Finder, go to ~/Library/Mail/POP-username@mailserver/INBOX.mbox/Messages/. Locate the offending *.emlx file and move it out of there, e.g. to the Desktop. You can view its contents with a text editor to check that it does indeed correspond to the offending message before getting rid of it.

8. Open Mail. It will tell you that your mail needs to be “imported”. Click Continue and Mail will proceed to re-create Envelope Index -- Mail says it's “importing”, but it just re-creates the index if the mailboxes are already in Mail 2.x format.

* PROCEDURE B *

1. In Mail, create a new custom “On My Mac” mailbox.

2. Select the Inbox of the account that contains the offending message, then select all the messages it contains (i.e. Edit > Select All (⌘A)), and deselect the offending message by Command-clicking (⌘-click) on it. That is, select all the messages in that mailbox except the offending one.

3. Do Message > Move To, and select the mailbox created is step 1. That is, move to another mailbox all the messages that should be preserved and that are stored in the same mailbox as the offending one.

4. Quit Mail.

5. In the Finder, go to ~/Library/Mail/. Make a backup copy of this folder, just in case something goes wrong, e.g. by dragging it to the Desktop while holding the Option (Alt) key down. This is where all your mail is stored.

6. Locate Envelope Index and move it to the Trash. If you see an Envelope Index-journal file there, delete it as well.

7. In the Finder, go to ~/Library/Mail/POP-username@mailserver/. Move INBOX.mbox and Deleted Messages.mbox to the Trash.

8. Open Mail. It will tell you that your mail needs to be “imported”. Click Continue and Mail will proceed to re-create Envelope Index -- Mail says it's “importing”, but it just re-creates the index if the mailboxes are already in Mail 2.x format.

Note: For those not familiarized with the ~/ notation, it refers to the user's home folder, i.e. ~/Library is the Library folder within the user's home folder.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

undeletable? piece of junk mail wont leave inbox.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.