• 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
Re: Delete message in Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Delete message in Mail


  • Subject: Re: Delete message in Mail
  • From: Axel Luttgens <email@hidden>
  • Date: Thu, 13 Nov 2008 17:55:23 +0100


Le 13 nov. 08 à 16:34, Luther Fuller a écrit :

Yesterday, I wrote a quickie script to scan Mail's mailboxes to determine if mailboxes need rebuilding. The test is to compare the message count with the file count in the /Users/<username>/Library/ Mail/.../Messages/ folder. If they are not equal, the mailbox needs rebuilding. The source of this problem is ...

	tell application "Mail" to delete msg

which does move the message and its associated file into the Trash mailbox, but leaves a copy of the .emlx file in the original Messages folder.

I tried to fix this with ...

	tell application "Mail" to move msg to trash mailbox
or
	tell application "Mail" to move msg to (trash mailbox of frontViewer)

But this DOES NOT move anything. I've tried all sorts of variations on this theme, and 'move' does not move anything. Perhaps I haven't got the syntax exactly right, but it seems to comply with the dictionary.

Does anyone know more? (If its a bug, I guess it should be reported.)

Hello Luther,

This one works perfectly for me here (Mail 3.5):

tell application "Mail" to delete first message of mailbox "INBOX" of account "Swing"

But a slight delay may occur before the emlx is effectively removed from the INBOX.mbox directory on the disk, as if Mail were performing cleaning tasks at intervals.

Axel

_______________________________________________
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
References: 
 >Delete message in Mail (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Are You Sure ?
  • Next by Date: Re: Are You Sure ?
  • Previous by thread: Re: Delete message in Mail
  • Next by thread: Maths Calculation Problem
  • Index(es):
    • Date
    • Thread