# Notifications on Non-Inbox Folders

**URL:** <https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323>\
**Category:** Feature Suggestions\
**Tags:** notifications, later, accepted, folders\
**Created:** [January 28, 2021, 1:38am UTC](https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323 "2021-01-28T01:38:23Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://community.getmailspring.com/uploads/default/original/1X/3f576930406c827860db462048a1fc090a147a05.png) [@system](https://community.getmailspring.com/u/system)\
**Post date:** [January 28, 2021, 1:38am UTC](https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323/1 "2021-01-28T01:38:23Z")

</div>

No notification if mail comes to any other folder beside inbox.

On server side i have folders (inbox, bank, steam, tourism etc.) on the same hierarchy level, to which mail sorts by server expression rules as it comes. Some mails remains in inbox folder, others no. But if unread mail comes to any other folder beside inbox there is no notification about incoming mail. I checked option to “show unread counts near every folder” and it works, but it seems that all that mail is not beeing classificated as unread. Tried to move my folders as inbox subfolders, nothing changed too.

* * *

> <https://github.com/Foundry376/Mailspring/issues/667>
>
> No notification if mail comes to any other folder beside inbox.
> On server side i have folders (inbox, bank, steam, tourism etc.)...

(Original issue had 18 upvotes.)

(Originally posted by **[TrunovS](https://github.com/TrunovS)** on GitHub.)

---

<div class="post-metadata">

**Author:** ![system](https://community.getmailspring.com/uploads/default/original/1X/3f576930406c827860db462048a1fc090a147a05.png) [@system](https://community.getmailspring.com/u/system)\
**Post date:** [January 28, 2021, 1:45am UTC](https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323/2 "2021-01-28T01:45:29Z")

</div>

Duplicate/related issues:

> <https://github.com/Foundry376/Mailspring/issues/1065>
>
> Clicking "Unread" only shows messages from the "Inbox" box in the connected accounts.
> State 1:
> In my "Inbox" folder (As defined in Edit...

> <https://github.com/Foundry376/Mailspring/issues/1231>
>
> What operating system are you using?
> Ubuntu 18.10
> What version of Mailspring are you using?
> 1.5.2-31660462
> Feature Request?
> It would be nice to have the blue...

> <https://github.com/Foundry376/Mailspring/issues/1316>
>
> Hi all!
> I've got a rule defined that moves a mail to one subfolder based on Subject name and From name. When...

> <https://github.com/Foundry376/Mailspring/issues/2011>
>
> In current mailspring, notifications for filtered folders will not show when new email has been received,
> This feature is required for people...

---

<div class="post-metadata">

**Author:** ![system](https://community.getmailspring.com/uploads/default/original/1X/3f576930406c827860db462048a1fc090a147a05.png) [@system](https://community.getmailspring.com/u/system)\
**Post date:** [February 20, 2021, 3:38am UTC](https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323/3 "2021-02-20T03:38:14Z")

</div>

When new emails are added to some labels bypassing the inbox folder, it would be nice to highlight them.

This is useful when you use labels as folders for mailing lists or such, in order to track new emails there that aren’t shown in the inbox folder.

* * *

(Originally posted by **[3v1n0](https://github.com/3v1n0)** on GitHub.)

> <https://github.com/Foundry376/Mailspring/issues/444>
>
> When new emails are added to some labels bypassing the inbox folder, it would be nice to highlight them.
> This is useful...

---

<div class="post-metadata">

**Author:** ![Daniel](https://community.getmailspring.com/user_avatar/community.getmailspring.com/daniel/32/1243_2.png) [@Daniel](https://community.getmailspring.com/u/Daniel)\
**Post date:** [March 1, 2021, 9:13pm UTC](https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323/4 "2021-03-01T21:13:47Z")

</div>

Are there any plans to implement this? I was going to switch to Mailspring but the fact that new emails in folders don’t show notifications or appear in “Unread” is a deal breaker for me. I have many server-side filters that sort my emails into several folders, so I’m missing notifications on a large number of them.

---

<div class="post-metadata">

**Author:** ![CodeMouse92](https://community.getmailspring.com/user_avatar/community.getmailspring.com/codemouse92/32/2359_2.png) [@CodeMouse92](https://community.getmailspring.com/u/CodeMouse92)\
**Post date:** [March 1, 2021, 9:19pm UTC](https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323/5 "2021-03-01T21:19:26Z")

</div>

There’s a _lot_ of things we have planned! Due to the nature of our development schedule, we can’t give definitive timelines on any one feature or bug fix, although you can look for the #accepted tag on any issue to know whether it’s in our plans.

Votes on any issue will increase the likelihood that we implement something sooner (although it still doesn’t guarantee anything).

You can get a broader picture of what we’re working on in the #roadmap category. As with issues, votes there will increase the priority of a bundle.

---

<div class="post-metadata">

**Author:** ![Daniel](https://community.getmailspring.com/user_avatar/community.getmailspring.com/daniel/32/1243_2.png) [@Daniel](https://community.getmailspring.com/u/Daniel)\
**Post date:** [March 1, 2021, 10:05pm UTC](https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323/6 "2021-03-01T22:05:09Z")

</div>

In terms of development difficulty, do you know how hard this would be to do? Is it simply a change in the notification code to remove a filter that checks that the email is in the inbox, or is some deeper architectural change required? I’m a developer myself so I could give it a go if it’s not too difficult.

---

<div class="post-metadata">

**Author:** ![CodeMouse92](https://community.getmailspring.com/user_avatar/community.getmailspring.com/codemouse92/32/2359_2.png) [@CodeMouse92](https://community.getmailspring.com/u/CodeMouse92)\
**Post date:** [March 1, 2021, 10:36pm UTC](https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323/7 "2021-03-01T22:36:44Z")

</div>

Honestly, I’m not sure! I’ve mainly been the bloke curating the issues over the past month or so. You could probably just dig in and see if you could implement this.

@Phylu has been contributing a lot lately, so he may have come across this code. Any insight, Janosch?

---

<div class="post-metadata">

**Author:** ![Daniel](https://community.getmailspring.com/user_avatar/community.getmailspring.com/daniel/32/1243_2.png) [@Daniel](https://community.getmailspring.com/u/Daniel)\
**Post date:** [March 1, 2021, 10:49pm UTC](https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323/8 "2021-03-01T22:49:28Z")

</div>

Yeah, I just had a look, and there’s a filter that removes messages that aren’t in the inbox:

> <https://github.com/Foundry376/Mailspring/blob/052f6dd5fe51a0ebddc19d3f8afc54237440dff9/app/internal_packages/unread-notifications/lib/main.ts#L216-L219>

I guess this filtering could be made optional, for example either by adding:

- A new “Only show notifications for messages in the inbox” option; or
- A “show notifications for this folder” option per folder (some mobile email clients take this approach)

---

<div class="post-metadata">

**Author:** ![CodeMouse92](https://community.getmailspring.com/user_avatar/community.getmailspring.com/codemouse92/32/2359_2.png) [@CodeMouse92](https://community.getmailspring.com/u/CodeMouse92)\
**Post date:** [March 1, 2021, 10:53pm UTC](https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323/9 "2021-03-01T22:53:18Z")

</div>

> - A “show notifications for this folder” option per folder (some mobile email clients take this approach)

Based on some prior conversations, this would be the better approach. The trick is figuring out how to offer the option.

On that note, we have some other related problems that will need solving soon, so however this option is presented would need to be extensible to fit the other situations:

> [@Per-account / mailbox notification settings](https://community.getmailspring.com/t/per-account-mailbox-notification-settings/133):
>
> I have 5 mailboxes. I’d love the ability to turn off notifications on a per-mailbox basis. I have a couple mailboxes that are used as spam accounts and I don’t want to be notified for those. (Originally posted by [deronsizemore](https://github.com/deronsizemore) on GitHub.) (Original issue had 7 upvotes.)

> [@Per account notification schedules](https://community.getmailspring.com/t/per-account-notification-schedules/735):
>
> The Problem I have both my personal and work emails on Mailspring (separate accounts). The problem is I don’t want to see personal emails when I’m at work, and I don’t want to see work emails at the weekend (unless I specifically look, which is on me). Proposed Solution There could be a notification schedule for each account, so I could select, eg, Mon-Fri 9-6 for work emails Mon-Fri 6-10, Sat-Sun all day for personal Related issue: [Per-account / mailbox notification settings](https://community.getmailspring.com/t/per-account-mailbox-notification-settings/133)

> [@Mute notifications](https://community.getmailspring.com/t/mute-notifications/777):
>
> Quick suggestion: On right clicking the tray icon, there could be an option Mute notifications for → 10 minutes | 15 minutes | 30 minutes | 1 hour | etc… This is super useful when for example trying to focus on something, or sharing your screen with your boss and avoid weird situations when receiving job interview follow up emails (laughing just an example!) (Originally posted by [brunofin](https://github.com/brunofin) on GitHub.) (Original post had 2 upvotes.)

* * *

The ideal solution in my view would be to add a context menu to items on the folder/account view on the left pane, so you could check/uncheck “Notify” on accounts and folders. We could later add a “Mute for…” submenu, and perhaps an overall notification control button.

---

<div class="post-metadata">

**Author:** ![Daniel](https://community.getmailspring.com/user_avatar/community.getmailspring.com/daniel/32/1243_2.png) [@Daniel](https://community.getmailspring.com/u/Daniel)\
**Post date:** [March 1, 2021, 10:55pm UTC](https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323/10 "2021-03-01T22:55:27Z")

</div>

> [@CodeMouse92](#):
>
> The ideal would be to add a context menu to items on the folder/account view on the left pane, so you could check/uncheck “Notify” on accounts and folders.

I was thinking that, but I’d also like to be able to bulk enable it for **all** my folders. One common issue I have with email clients is that folders can usually only be edited individually, so I need to manually edit them one by one to enable notifications for that folder. Maybe something in a context menu in addition to a list of folders in a dialog somewhere, that’s easily bulk editable?

---

<div class="post-metadata">

**Author:** ![CodeMouse92](https://community.getmailspring.com/user_avatar/community.getmailspring.com/codemouse92/32/2359_2.png) [@CodeMouse92](https://community.getmailspring.com/u/CodeMouse92)\
**Post date:** [March 1, 2021, 10:57pm UTC](https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323/11 "2021-03-01T22:57:46Z")

</div>

If it was offered at the account-level too, could you do it that way?

- Notify
  - Inbox Only
  - All Folders
  - By Folder
  - None

---

<div class="post-metadata">

**Author:** ![Daniel](https://community.getmailspring.com/user_avatar/community.getmailspring.com/daniel/32/1243_2.png) [@Daniel](https://community.getmailspring.com/u/Daniel)\
**Post date:** [March 1, 2021, 11:08pm UTC](https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323/12 "2021-03-01T23:08:24Z")

</div>

That’s a good idea! I like it.

---

<div class="post-metadata">

**Author:** ![CodeMouse92](https://community.getmailspring.com/user_avatar/community.getmailspring.com/codemouse92/32/2359_2.png) [@CodeMouse92](https://community.getmailspring.com/u/CodeMouse92)\
**Post date:** [March 1, 2021, 11:10pm UTC](https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323/13 "2021-03-01T23:10:02Z")

</div>

I also wonder if it would be worth indicating with a small icon or symbol when a folder is/isn’t on notify. That would also serve as the visual indicator when it’s on mute, once that feature is implemented later. We could even make clicking _that_ be what brings up the menu, instead of just right-clicking, so it’s more usable on macOS.

Thoughts there?

---

<div class="post-metadata">

**Author:** ![Phylu](https://community.getmailspring.com/user_avatar/community.getmailspring.com/phylu/32/35_2.png) [@Phylu](https://community.getmailspring.com/u/Phylu)\
**Post date:** [March 2, 2021, 4:39pm UTC](https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323/14 "2021-03-02T16:39:36Z")

</div>

I think a notification configuration based on Inbox / All Mails / Account Specific may be quite easy to implement as we can use existing configuration / ui elements on the settings page.

My suggestion would be to start with that instead of trying to create a 100% solution (configuration options per folder) directly.

---

<div class="post-metadata">

**Author:** ![CodeMouse92](https://community.getmailspring.com/user_avatar/community.getmailspring.com/codemouse92/32/2359_2.png) [@CodeMouse92](https://community.getmailspring.com/u/CodeMouse92)\
**Post date:** [March 2, 2021, 5:29pm UTC](https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323/15 "2021-03-02T17:29:03Z")

</div>

Trouble is, Settings is already starting to feel crowded, which Ben wanted to avoid. Adding per-folder notification controls to Settings somehow, especially Settings \> General, would really detract from usability I believe. Thus my proposal: we move it out of Settings, and into the space where you’re most likely to want to control it.

---

<div class="post-metadata">

**Author:** ![Daniel](https://community.getmailspring.com/user_avatar/community.getmailspring.com/daniel/32/1243_2.png) [@Daniel](https://community.getmailspring.com/u/Daniel)\
**Post date:** [March 2, 2021, 9:39pm UTC](https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323/16 "2021-03-02T21:39:01Z")

</div>

What about in the account settings? I’m not sure that folder-specific settings could go there (as it would get quite crowded, as mentioned earlier), but the other options would be fine as as dropdown IMO:  
 ![image](https://community.getmailspring.com/uploads/default/original/2X/c/c194723f2b2114f499ded667b6d5392095c14338.png)

The “Folders” settings tab is pretty empty too - Maybe per-folder notification settings could go in there? Otherwise, maybe an option in the context menu would probably suffice?  
 ![image](https://community.getmailspring.com/uploads/default/original/2X/8/84b9e67bb70780f8ac8cb11a1bee68bd15ab3c9b.png)

That’s annoying when you have dozens of folders though.

---

<div class="post-metadata">

**Author:** ![CodeMouse92](https://community.getmailspring.com/user_avatar/community.getmailspring.com/codemouse92/32/2359_2.png) [@CodeMouse92](https://community.getmailspring.com/u/CodeMouse92)\
**Post date:** [March 2, 2021, 9:45pm UTC](https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323/17 "2021-03-02T21:45:15Z")

</div>

Perhaps, although Account Settings is going to need a complete overhaul soon, as it has a number of things missing.

I’m also looking forward to the request to be able to temporarily mute folders:

> [@Mute notifications](https://community.getmailspring.com/t/mute-notifications/777):
>
> Quick suggestion: On right clicking the tray icon, there could be an option Mute notifications for → 10 minutes | 15 minutes | 30 minutes | 1 hour | etc… This is super useful when for example trying to focus on something, or sharing your screen with your boss and avoid weird situations when receiving job interview follow up emails (laughing just an example!) (Originally posted by [brunofin](https://github.com/brunofin) on GitHub.) (Original post had 2 upvotes.)

The controls for notifications and for mute could go in the same place. That’s why I’m thinking either a context menu or some sort of clickable icon next to the folder.

Looking at Mailspring again, it may even be a good idea for the folder icon _itself_ to be clickable and have an indicator badge, if that’s possible.

---

<div class="post-metadata">

**Author:** ![Phylu](https://community.getmailspring.com/user_avatar/community.getmailspring.com/phylu/32/35_2.png) [@Phylu](https://community.getmailspring.com/u/Phylu)\
**Post date:** [March 3, 2021, 6:03am UTC](https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323/18 "2021-03-03T06:03:16Z")

</div>

Putting the configuration on the account settings page would also be my shot. I think this would be feasible write fast, easy and still good looking. 😉

---

<div class="post-metadata">

**Author:** ![Daniel](https://community.getmailspring.com/user_avatar/community.getmailspring.com/daniel/32/1243_2.png) [@Daniel](https://community.getmailspring.com/u/Daniel)\
**Post date:** [March 19, 2021, 10:31pm UTC](https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323/19 "2021-03-19T22:31:29Z")

</div>

I submitted a pull request to implement this:

> <https://github.com/Foundry376/Mailspring/pull/2308>
>
> Adds a new dropdown in the account settings to allow notifications to be configu…red for the account:
> 
> !\[image\](https://user-images.githubusercontent.com/91933/111847739-afd7f500-88c6-11eb-9ea0-673fdc92b292.png)
> 
> The options are:
> \- \*\*Inbox Only\*\*: Current behaviour of only showing notifications for emails in the inbox. This is the default
> \- \*\*All Folders\*\*: Shows notifications for all folders. Technically this isn't actually "all" as it excludes spam and trash, but it's what users would expect "all" to mean
> \- \*\*None\*\*: Completely disables notifications of new emails for the account
> 
> I'd like to implement per-folder notification settings, but that can come as a followup
> 
> This PR solves the following feature requests:
> - \[Notifications on Non-Inbox Folders\](https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323/)
> - \[Per-account / mailbox notification settings\](https://community.getmailspring.com/t/per-account-mailbox-notification-settings/133)
> 
> This is still a WIP as:
> 1. I'm hitting a bug where new emails in folders don't appear until a long time later, even after I do "Sync New Mail Now". Inbox is fine, but folders aren't. I tried waiting ten minutes and doing a sync, and the new emails still didn't appear. However, they do appear after some period of time (unsure as to how long it takes) or when I restartg Mailspring. This is blocking me from fully testing. Related bug report: https://community.getmailspring.com/t/folders-not-updating-until-much-later/943
> 2. I want to write a unit test for my \`shouldNotifyFor\` function but I can't figure out how to run the tests in this project - \`npm test\` just pops up a white screen and throws this error:
> \`\`\`
> index.js:26 Error: Could not find a file at path '../../static/jasmine'
> at ThemeManager.requireStylesheet (file:///C:/src/Mailspring/app/src/theme-manager.ts:163:13)
> at SpecRunner.\_setupAppEnv (file:///C:/src/Mailspring/app/spec/spec-runner/spec-runner.ts:118:19)
> at SpecRunner.runSpecs (file:///C:/src/Mailspring/app/spec/spec-runner/spec-runner.ts:30:10)
> at Object.\<anonymous\> (file:///C:/src/Mailspring/app/spec/spec-runner/spec-bootstrap.ts:15:34)
> at Object.\<anonymous\> (file:///C:/src/Mailspring/app/spec/spec-runner/spec-bootstrap.ts:15:57)
> at Module.\_compile (internal/modules/cjs/loader.js:968:30)
> at Object.value \[as .ts\] (C:\\src\\Mailspring\\app\\src\\compile-cache.js:145:21)
> at Module.load (internal/modules/cjs/loader.js:816:32)
> at Module.\_load (internal/modules/cjs/loader.js:728:14)
> at Function.Module.\_load (electron/js2c/asar.js:748:26)
> at Module.require (internal/modules/cjs/loader.js:853:19)
> at require (internal/modules/cjs/helpers.js:74:18)
> at setupWindow (file:///C:/src/Mailspring/app/static/index.js:47:3)
> at window.onload (file:///C:/src/Mailspring/app/static/index.js:75:5)
> \`\`\`
> I'm used to Jest tests, but this seems like it uses older Jasmine tests.

However I can’t fully test it as I’m hitting an issue where folders are not properly showing new emails until much later, even if I press “Sync New Mail Now”. Already reported it here:

> [@Folders not updating until much later](https://community.getmailspring.com/t/folders-not-updating-until-much-later/943):
>
> Description I have several server-side filters for sorting my incoming emails into various folders. When I receive new emails to the inbox (not filtered), Mailspring shows them pretty much instantly. However, if I receive new emails into a folder, Mailspring does not show the email as soon as I receive it, even if I’m viewing the folder at that time. I’m sure I got the email as I saw it in another client as well as in a webmail client. I tried clicking “Sync New Mail Now” and I still didn’t se…

---

<div class="post-metadata">

**Author:** ![Phylu](https://community.getmailspring.com/user_avatar/community.getmailspring.com/phylu/32/35_2.png) [@Phylu](https://community.getmailspring.com/u/Phylu)\
**Post date:** [November 14, 2023, 3:26pm UTC](https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323/21 "2023-11-14T15:26:39Z")

</div>

Unfortunatel there was some logic in the Mailsync Engine missing which is necessary for Mailspring to get mails in the background for folders in a way that properly allows notification. So I don’t see this coming soon – unfortunately.

[Next page](https://community.getmailspring.com/t/notifications-on-non-inbox-folders/323.md?page=2)
