raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.23k stars 2.92k forks source link

[Apple Mail]...not pulling all the inboxes in multiple accounts in mail app #14107

Closed passwordless-OTP closed 1 week ago

passwordless-OTP commented 3 weeks ago

Extension

https://raycast.com/yug2005/mail

Raycast Version

1.81.2

macOS Version

No response

Description

Error:

Error: Command timed out after undefined milliseconds: osascript
Timed out
    at Timeout._onTimeout (/Users/jarvis/.config/raycast/extensions/9abdb4fc-f5ee-4ee8-ade4-2296de586cef/see-recent-mail.js:8:322615)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)

Steps To Reproduce

image

Current Behaviour

got 4 accounts in my mail app of MacBook. I see it pulling some other folder such as "draft" "important". however when I do recent mails command it times out.

Expected Behaviour

either pull the mails or give a recommendations how to fix that.

raycastbot commented 3 weeks ago

Thank you for opening this issue!

🔔 @yug2005 @ikupenov @pernielsentikaer @fengtianze @tleo19 @Luk4h @jfkisafk @StevenRCE0 you might want to have a look.

💡 Author and Contributors commands The author and contributors of `yug2005/mail` can trigger bot actions by commenting: - `@raycastbot close this issue` Closes the issue. - `@raycastbot close as not planned` Closes the issue as not planned. - `@raycastbot rename this issue to "Awesome new title"` Renames the issue. - `@raycastbot reopen this issue` Reopens the issue. - `@raycastbot assign me` Assigns yourself to the issue. - `@raycastbot good first issue` Adds the "Good first issue" label to the issue. - `@raycastbot keep this issue open` Make sure the issue won't go stale and will be kept open by the bot.
jfkisafk commented 3 weeks ago

@passwordless-OTP We made a few changes in https://github.com/raycast/extensions/pull/13938 that can cause this:

  1. Earlier any errors from osascript were being swallowed and now they are exposed. But if the commands were working for you earlier then I don't suspect this is an issue as you wouldn't have seen any messages in "Recent Mail" command (w/o any error)
  2. The "Message Limit" preference was not being applied to "Recent Mail" command. Earlier the osascript was only retrieving first 10 messages per account and then slicing the first 5 of those 10 to render the List. Now, osascript will retrieve messages based on the "Message Limit" preference and if it is large (and your message sizes are also large), I suspect that can cause a timeout. Can you try setting the "Message Limit" preference to 10?
uzairansaruzi commented 2 weeks ago

ive set Message limit to 10 and 5 also but still keep getting the osascript error

jfkisafk commented 1 week ago

ive set Message limit to 10 and 5 also but still keep getting the osascript error

Hmm I am not sure why it is saying undefined timeout, when the default value is 10 sec. Anyways, I am trying to increase the timeout to 30 sec to see if that helps.

jfkisafk commented 1 week ago

@raycastbot assign me