Re: Running Scripts from Mail Rules
Re: Running Scripts from Mail Rules
- Subject: Re: Running Scripts from Mail Rules
- From: Steve Bird <email@hidden>
- Date: Sat, 28 Oct 2017 09:15:21 -0400
> On Oct 28, 2017, at 5:19 AM, Axel Luttgens <email@hidden> wrote:
>
>
> It could be inferred from your various messages that you have defined a
> single account in Mail, an account named "SBird". Could you show us the
> output of each of those tell blocks?
>
> tell application "Mail"
> mailboxes of accounts
> end tell
This produces (whitespace added by me)
{{}, {}, {}, {},
{mailbox "INBOX" of account "SBird" of application "Mail”,
mailbox "Drafts" of account "SBird" of application "Mail”,
mailbox "Sent Messages" of account "SBird" of application "Mail”,
mailbox "Deleted Messages" of account "SBird" of application "Mail”,
mailbox "Junk" of account "SBird" of application "Mail"},
{}, {}, {}, {}, {}, {}, {}, {}, {},
{mailbox "INBOX" of account "Sales" of application "Mail”,
mailbox "Drafts" of account "Sales" of application "Mail”,
mailbox "Sent Messages" of account "Sales" of application "Mail”,
mailbox "Deleted Messages" of account "Sales" of application "Mail”,
mailbox "Junk" of account "Sales" of application "Mail"},
{mailbox "INBOX" of account "Catchall" of application "Mail”,
mailbox "Drafts" of account "Catchall" of application "Mail”,
mailbox "Sent Messages" of account "Catchall" of application "Mail”,
mailbox "Deleted Messages" of account "Catchall" of application "Mail”,
mailbox "Junk" of account "Catchall" of application "Mail"},
{mailbox "INBOX" of account "EscapeBangor" of application "Mail”,
mailbox "Drafts" of account "EscapeBangor" of application "Mail”,
mailbox "Sent Messages" of account "EscapeBangor" of application "Mail”,
mailbox "Deleted Messages" of account "EscapeBangor" of application "Mail”}}
And that’s all. None of the storage mailboxes show up. I have other accounts,
but they are inactive, I presume that’s why they don’t show up here.
If I do
> tell application "Mail"
> mailboxes
> end tell
then I get a hundred or so mailboxes, corresponding to my storage arrangement.
Here are a few:
mailbox "Lists/AppleScript" of application “Mail",
mailbox "Seldom/Amazon" of application "Mail”,
mailbox "Seldom/Facebook" of application "Mail”,
mailbox "Spam" of application "Mail”,
mailbox "Archive" of application "Mail”,
mailbox "ToDos" of application "Mail”,
mailbox "Outbox" of application "Mail”,
mailbox "Drafts" of application "Mail”,
mailbox "Sent Messages" of application "Mail”,
mailbox "Deleted Messages" of application "Mail”,
mailbox "Junk" of application "Mail"}
>
> tell application "Mail"
> mailboxes of inbox
> end tell
this gets me four items:
{mailbox "INBOX" of account "SBird" of application "Mail”,
mailbox "INBOX" of account "Sales" of application "Mail”,
mailbox "INBOX" of account "Catchall" of application "Mail”,
mailbox "INBOX" of account "EscapeBangor" of application "Mail”}
This corresponds to what I see in the mail UI: “Inbox” is a folder containing
an inbox for those four accounts.
> tell application "Mail"
> properties of account "SBird"
> end tell
>
This gets me:
{password:"Account passwords can only be set, not read.”,
store junk mail on server:true,
server name:”< redacted, but valid >”,
empty sent messages frequency:-1,
empty junk messages on quit:false,
empty trash frequency:30,
store deleted messages on server:true,
name:"SBird", authentication:password,
empty sent messages on quit:false,
account directory:file "HD Macbook
Pro:Users:Steve:Library:Mail:V3:D332123A-B02F-4D99-8DE8-5D8A832D1DA1:”,
enabled:false,
smtp server:missing value,
empty trash on quit:false,
compact mailboxes when closing:true,
email addresses:{"email@hidden"},
store sent messages on server:true,
move deleted messages to trash:true,
uses ssl:true,
include when getting new mail:true,
full name:"”,
class:imap account,
empty junk messages frequency:-1,
port:143, account type:map,
user name:"email@hidden”,
store drafts on server:true,
message caching:all messages and their attachments}
Weird that it says it’s an IMAP account. It’s a POP account.
Hmmm. I have a disabled IMAP account with the same address. Wonder if that
contributes to the problem.
----------------------------------------------------------------
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
www.Culverson.com (toll free) 1-877-676-8175
_______________________________________________
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