• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to delete IMAP junk messages once and for all
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Need an icon
  • Next by Date: Re: Applescript & Final Cut Server & XML
  • Previous by thread: Re: Need an icon
  • Next by thread: AppleScript
  • Index(es):
    • Date
    • Thread