How to delete IMAP junk messages once and for all
How to delete IMAP junk messages once and for all
- Subject: How to delete IMAP junk messages once and for all
- From: victor de martino <email@hidden>
- Date: Wed, 26 May 2010 18:12:40 +0200
As an absolute beginner with the following code I'm able to delete all the messages of the various account in in the junk mailbox but my @me.com IMAP is pulling my leg!
I mean that while all the pop accounts messages are regularly removed the IMAP account (me.com) messages seem to disappear but after a while they pop up again and, strangely enough, they are often different from the ones that I firstly deleted.
How come and what should I do?
tell application "Mail"
set contamailbox to 0
set contamessaggi to 0
tell message viewer 1
try
-- Posizionati su posta indesiderata ed elimina i messaggi
tell junk mailbox
set contamailbox to 0
set contamessaggi to 0
set contamailbox to count of mailboxes
repeat with numero from 1 to contamailbox
tell mailbox numero
set contamessaggi to count of messages
if contamessaggi > 0 then
delete every message
end if
end tell
end repeat
end tell
on error
beep 3
end try
end tell
end tell
Ciao from Rome
Victor
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden