I also tried the same settings mentioned above for apple mail behaviors from Gmail site:
Recommended IMAP client settings
All IMAP clients differ, and you can configure your mail client's settings to best suit your needs. However, to work optimally with Gmail, we recommend certain settings. Click on your client below to view our recommended configuration.
Apple Mail
• From the Mail menu, click Preferences > Accounts > Mailbox Behaviors
◦ Drafts:
Store draft messages on the server > do NOT check
Sent:
Store sent messages on the server > do NOT check
Junk:
Store junk messages on the server > checked
Delete junk messages when > Never
Trash:
Move deleted messages to the Trash mailbox > do NOT check
Store deleted messages on the server > do NOT check
And I also removed the preference plist and evelope index files, still to no avail. Upon restarting mail to receive my account creation here at forums I have the same 800 emails i just manually deleted. ug!
it's only from one gmail accnt, of which I have 3 gmail accnts total, and they are concurrently being "saved" as duplicates, minute by minute, in the "all mail" folder on the said accnt, which is set up as IMAP not Pop.
This is an everyday theater here deleting mail I cannot find even going to gmail directly and searching all folders/mail i have stored there on gmail server. Where is apple mail finding these?
re: one reply i sent once, is copied every minute, sometimes twice in same minute from 3:01 PM to 4:58 PM, total of over 200 copies of one reply, which was sent March 22, 2011, and still "finding" it somewhere, after I cleaned out gmail's server of this reply. Going on third set just today, of same duplicates being created from mail, deleted off gmail servers way back, over 800 mails to manually remove.. 3x's a day.
Image of partial list of a reply duplicated:
http://i853.photobucket.com/albums/ab94/GlennGoreAlbum/partialduplist.jpg