On Nov 14, 2013, at 12:19, John <email@hidden> wrote:
I have had the same problem with sent mailbox as well.
______________________________________________________________________
Hmm.
Okay I just sent a message to my Gmail account, so I'd have something in its Inbox.
It does NOT show up when the scripts are run. In fact the message in the Gmail Inbox says it's actually in Archive - gmail (All Mail), although this is not actually correct.
Selecting the message and running:
tell application "Mail" item 1 of (get selection) result's mailbox end tell
--> mailbox "[Gmail]/All Mail" of account "gmail" of application "Mail"
I can do something like this:
tell application "Mail" tell account "gmail" # The actual name of the account. tell mailbox "[Gmail]/All Mail" set msg to first message whose read status is false tell msg subject end tell end tell end tell end tell
But it's really problematic, because there's quite a bit of mail in there - and quite a lot of that is marked unread.
At the moment I'm not seeing a way to simply access the Gmail Inbox. If someone has found a work-around please chime in.
Just to be thorough I also fired off a message to my iCloud account. It was seen by the scripts without issue. (My other accounts are POP.)
-- Best Regards, Chris
|