Re: Running Scripts from Mail Rules
Re: Running Scripts from Mail Rules
- Subject: Re: Running Scripts from Mail Rules
- From: Axel Luttgens <email@hidden>
- Date: Sat, 28 Oct 2017 16:09:37 +0200
- Ironport-phdr: 9a23:t2sMHh3Np3B79QMAsmDT+DRfVm0co7zxezQtwd8ZseIUL/ad9pjvdHbS+e9qxAeQG96Ku7Qc06L/iOPJYSQ4+5GPsXQPItRndiQuroEopTEmG9OPEkbhLfTnPGQQFcVGU0J5rTngaRAGUMnxaEfPrXKs8DUcBgvwNRZvJuTyB4Xek9m72/q89pDXYAhEniaxba9vJxiqsAvdsdUbj5F/Iagr0BvJpXVIe+VSxWx2IF+Yggjx6MSt8pN96ipco/0u+dJOXqX8ZKQ4UKdXDC86PGAv5c3krgfMQA2S7XYBSGoWkx5IAw/Y7BHmW5r6ryX3uvZh1CScIMb7S60/Vza/4KdxUBLnlCgIOSM5/m7VhMJwlq1VrhGvpxJhxIDZe52VNON7fq/BfdMWWWhMU8BMXCJBGIO8aI4PAvIdMOdXsYb9o0YFox2jBQmwGOPvxSFHhnnt3aYn1OkuCw7H0xIkH94UtHTUscn1NLsdUe+ryqnI1i7Ob+hV2Tb97ojHbAwhreuXUr1uaMfcz1QkGQDdjliIqoHoPSmZ2+UPvmSB4edtWvijh3MlpgxypDWk290ihZPTho0Pz1DJ7SB5wIEoKtKmUEN7etukEIdItyGdKot2XtsuQ2F2tyY+zb0LoZm7fDUWyJQ8xh7fc/iHc4+V4h75SumQLi13hHd9eLK7mRm+61Svyur5VsWs0VZKqDRKksXUu30O1RHf8MmKR/ln8kqv1juDzR3f5+NHLEwskKrUMZ8hwro+lpoJtkTDGzf7l1/5jaCIckUo4Oyo6/n7YrX6qZ+TKYl0ihrlP6Q1mcy+AeI4PRYSX2SB4uuzyqXv/VflT7VSkv02jq7ZvYjAKsQDvq65BxFa0p0/5BalDjemyMgYkWAaLFJeZh2HlZPpNkrKIPD5Fve/n0+snC1xyPDeJr3hBovCImLfn7fmeLYuo3JbnQMo0JgL7opMDrwaK+jyQlO0qcfVFAQRNw2v3/2hAc1l0o5YUmWKVPyjPbvWoGOPs+s0PqHYbZcNvDvmIOIk/+KrkGQ0g0Q1eaiywYBRYWigGvkgKEKcNynCmNAERE4asw52aPH2lFKPVyUbM3+iUqZ64iwnFI2rC5zrXYO8hrGdmi22SM4FLltaA0yBRC+7P76PXO0BPXqf
> Le 28 oct. 2017 à 15:15, Steve Bird a écrit :
>
>
>> On Oct 28, 2017, at 5:19 AM, Axel Luttgens 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 "Deleted Messages" of account "EscapeBangor" of application "Mail”}}
>
> And that’s all. None of the storage mailboxes show up.
Hello again Steve,
So, I guessed false: you have more than one account. ;-)
That the "storage mailboxes" do not appear is to be expected, as they are not
related to any account anymore; they are accessible thru Mail’s "mailboxes"
property.
Anyway, it could well be that during the upgrade, Mail encountered various
"ghost accounts" and tried, unsuccessfully, to do something out of them (I
think I met such problems too with earlier versions of Mail: creating then
removing an account left some traces into com.apple.mail.plist).
This could be reflected by those empty lists in above output.
> I have other accounts, but they are inactive, I presume that’s why they don’t
> show up here.
As far as your inactive accounts are concerned, I think they should appear in
above output; perhaps are they currently masked by such ghost accounts.
> 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 "Junk" of application "Mail"}
OK, this one looks fine.
>>
>> 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.
And this is consistent with the first output: each of your (active) accounts
should indeed have an "INBOX" mailbox.
>> tell application "Mail"
>> properties of account "SBird"
>> end tell
>>
>
> This gets me:
> {password:"Account passwords can only be set, not read.”,
> […]
> account directory:file "HD Macbook
> Pro:Users:Steve:Library:Mail:V3:D332123A-B02F-4D99-8DE8-5D8A832D1DA1:”,
> […]
> class:imap account,
> […]
> port:143, account type:map,
> […]
> 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.
If Mail got somehow confused as discussed above, it could well be that it
errors when trying to access your true mailbox "INBOX" of account "SBird".
But you then sent another message…
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