The Mac in Question is an Intel iMac 5,1 2.3Ghz running OS X 10.4.11. It was working in online mode.
I've collected log information. The person using the email account has informed me that an email was received in the inbox at 14:49, but at 18:18 he noticed it had re-appeared in the inbox, despite having trashed the email. Then he trashed the duplicate email. Log information is below. Can you please take a look at it and see if it makes any sense of the issue?
Sorry if I've missed out any SELECT statements that would indicate which folder Mail is working in... please let me know if I missed anything from the log file.
It looks to me like the email is fetched in the inbox, moved to trash and set to deleted. Nothing is re-fetched into the inbox, yet another e-mail appears in the Trash. So is Mail accidentally showing another copy of the email in the inbox by accident, which is trashed for a second time, causing mail to upload the email to the Trash mailbox a second time?
LOG FILE
This seems to fetch it into the inbox for the first time: UID is 125143.. it is trashed pretty soon..
----------------------------------
READ Oct 29 14:51:42[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0x101105b0 -- thread:0xf18bb00
* 32 FETCH (FLAGS () UID 125143 INTERNALDATE "29-Oct-2012 14:50:12 +0000" RFC822.SIZE 20704 BODY[HEADER.FIELDS (DATE SUBJECT FROM TO CC MESSAGE-ID IN-REPLY-TO REFERENCES X-PRIORITY X-SPAM-FLAG RECEIVED-SPF CONTENT-TYPE)] {516}
yada yada...
165 OK FETCH completed
WROTE Oct 29 14:51:42[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0x101105b0 -- thread:0xf18bb00
166 UID FETCH 125143 BODY.PEEK[]
READ Oct 29 14:51:42[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0x101105b0 -- thread:0xf18bb00
* 32 FETCH (UID 125143 BODY[] {20775}
yada yada….
166 OK UID FETCH completed
WROTE Oct 29 14:56:04[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0x101105b0 -- thread:0x101f3b80
174 UID STORE 125143 +FLAGS.SILENT (\Seen)
WROTE Oct 29 14:56:04[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0x101105b0 -- thread:0x101f3b80
176 UID COPY 125143 Trash
READ Oct 29 14:56:05[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0x101105b0 -- thread:0x101f3b80
176 OK [COPYUID 4 125143 125143] UID COPY completed
WROTE Oct 29 14:56:05[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0x101105b0 -- thread:0x101f3b80
177 UID STORE 125143 +FLAGS.SILENT (\Seen \Deleted)
WROTE Oct 29 18:26:10[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0x11edc210 -- thread:0x10122d10
150 UID COPY 125189,125168,125152,125143,125117,125114 Trash
READ Oct 29 18:26:10[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0x11edc210 -- thread:0x10122d10
150 OK [COPYUID 4 125114,125117,125143,125152,125168,125189 125195:125200] UID COPY completed
WROTE Oct 29 18:26:11[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0x11edc210 -- thread:0x10122d10
151 UID STORE 125114,125117,125143,125152,125168,125189 +FLAGS.SILENT (\Seen \Deleted)
----------------------------------
This seems to work with a copy of the same email with a UID of 125147 that is also fetched from the Trash folder.
----------------------------------
WROTE Oct 29 14:56:05[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0xf1368c0 -- thread:0xfeeb290
13 SELECT Trash
READ Oct 29 14:56:05[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0xf1368c0 -- thread:0xfeeb290
* 168 FETCH (FLAGS (\Seen) UID 125147 INTERNALDATE "29-Oct-2012 14:50:12 +0000" RFC822.SIZE 20704 BODY[HEADER.FIELDS (DATE SUBJECT FROM TO CC MESSAGE-ID IN-REPLY-TO REFERENCES X-PRIORITY X-SPAM-FLAG RECEIVED-SPF CONTENT-TYPE)] {516}
yada yada email content...
14 OK UID FETCH completed
WROTE Oct 29 14:56:05[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0xf1368c0 -- thread:0xfeeb290
17 UID FETCH 125147 (BODYSTRUCTURE BODY.PEEK[HEADER] BODY.PEEK[HEADER])
READ Oct 29 14:56:06[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0xf1368c0 -- thread:0xfeeb290
* 168 FETCH (UID 125147 BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "quoted-printable" 4730 91 NIL NIL ("en-US") NIL)("text" "html" ("charset" "us-ascii") NIL NIL "quoted-printable" 12284 204 NIL NIL ("en-US") NIL) "alternative" ("boundary" "_000_E8C44E43AA18444B85496F858533501087E73DC361LOEWYMAIL3loe_") NIL ) BODY[HEADER] {3435}
yada yada...
17 OK UID FETCH completed
WROTE Oct 29 14:56:06[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0xf1368c0 -- thread:0xfeeb290
18 UID FETCH 125147 (BODY.PEEK[1] BODY.PEEK[2])
READ Oct 29 14:56:06[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0xf1368c0 -- thread:0xfeeb290
* 168 FETCH (UID 125147 BODY[1] {4730}
yada yada…
READ Oct 29 14:56:06[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0xf1368c0 -- thread:0xfeeb290
BODY[2] {12284}
html body
READ Oct 29 14:56:06[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0xf1368c0 -- thread:0xfeeb290
yada html body text=
)
18 OK UID FETCH completed
READ Oct 29 15:54:27[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0xfef0a80 -- thread:0x111614c0
AGS (\Seen) UID 124967)
yada yada...
* 168 FETCH (FLAGS (\Seen) UID 125147)
----------------------------------
Then there is another copy of the same email with a different UID of 125207… it is fetched from the Trash.
----------------------------------
WROTE Oct 29 18:26:11[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0x135a5a20 -- thread:0x105f4a10
3 SELECT Trash
* 183 FETCH (FLAGS (\Seen) UID 125207 INTERNALDATE "29-Oct-2012 14:50:12 +0000" RFC822.SIZE 20704 BODY[HEADER.FIELDS (DATE SUBJECT FROM TO CC MESSAGE-ID IN-REPLY-TO REFERENCES X-PRIORITY X-SPAM-FLAG RECEIVED-SPF CONTENT-TYPE)] {516}
yada email content
)
WROTE Oct 29 18:26:12[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0x135a5a20 -- thread:0x105f4a10
8 UID FETCH 125207 (BODYSTRUCTURE BODY.PEEK[HEADER])
READ Oct 29 18:26:12[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0x135a5a20 -- thread:0x105f4a10
* 183 FETCH (UID 125207 BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "quoted-printable" 4730 91 NIL NIL ("en-US") NIL)("text" "html" ("charset" "us-ascii") NIL NIL "quoted-printable" 12284 204 NIL NIL ("en-US") NIL) "alternative" ("boundary" "_000_E8C44E43AA18444B85496F858533501087E73DC361LOEWYMAIL3loe_") NIL ) BODY[HEADER] {3435}
yada email content
)
8 OK UID FETCH completed
WROTE Oct 29 18:26:14[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0x135a5a20 -- thread:0x105f4a10
21 UID FETCH 125207 (BODY.PEEK[1] BODY.PEEK[2])
READ Oct 29 18:26:15[kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:imap.mail.yahoo.com -- port:993 -- socket:0x135a5a20 -- thread:0x105f4a10
* 183 FETCH (UID 125207 BODY[1] {4730} yada email content
21 OK UID FETCH completed
* 183 FETCH (FLAGS (\Seen) UID 125207)
* 183 FETCH (FLAGS (\Seen) UID 125207)
* 183 FETCH (FLAGS (\Seen) UID 125207)