Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Troubleshooting: Why can't I apply rules?

#1412

I created a Smart Mailbox that I want to use to run rules with. It collects email from two other mailboxes and has a couple of conditions + the rules:

When I right click on the Smart Mailbox, I the "Apply Rules" option is grayed out. Why?

Reported by fnurl · February 13th, 2016 @ 11:33 AM

State: fixreleased
Milestone: none
Assigned to: benny benny

Activity

  1. benny
    benny
    • State changed from new to accepted

    Currently it only works on the currently selected messages. I guess, if nothing is selected, the menu item could change name to “Apply Rules to "Mailbox Name"”.

    February 13th, 2016 @ 07:19 PM

  2. fnurl
    fnurl

    Ah, ok, I thought it was supposed to apply the rules to all messages in the folder. Is that not what the rules do if I do not apply them manually?

    February 13th, 2016 @ 10:20 PM

  3. benny
    benny

    Rules are only applied to “new” messages in the mailbox. In this context “new” does not mean delivery (e.g., to the INBOX). It just means that a message is added to a mailbox which is was not previously part of. This could happen by moving a message or tagging it (if some smart mailbox with rules includes the tagged emails).

    February 14th, 2016 @ 10:28 AM

  4. benny
    benny

    (In some cases more persistent rules would be useful, in particular when based on dates. That's on my todo, but I haven't done any work on it yet.)

    February 14th, 2016 @ 10:29 AM

  5. fnurl
    fnurl

    Thanks for the clarification Benny. I have one more question though. Do I have to visit/view the Smart Mailbox with the rule after a change has been made that would mean it getting "new" messages? Or are smart mailboxes "viewed" in the background at regular intervals?

    February 14th, 2016 @ 12:32 PM

  6. benny
    benny

    Not just at random intervals: Smart mailboxes are always up-to-date. In fact, there is no difference (internally) between a smart mailbox and an IMAP mailbox. The latter is just a smart mailbox only matching emails with a specific IMAP path.

    February 14th, 2016 @ 08:03 PM

  7. Muescha
    Muescha

    but how i can create rules like "empty folder 'Deleted Messages' older than 6 Months"
    i just created a Mailbox and apply condition "older 6 months" and a rule. but i can not click the folder and execute a rule.

    June 7th, 2017 @ 05:13 PM

  8. benny
    benny

    @Muescha: To manually trigger the rule then you also need to select all of the emails in the mailbox.

    To do it automatically, you need to create a separate smart mailbox which only shows messages older than 6 months. This mailbox can then have a rule without any conditions and just the “Delete Permanently” rule action.

    The reason a separate mailbox is (still) needed is because rules are only checked when a message “enters” a mailbox. If it wasn't more then 6 months old at that time then it won't execute the rule action even if the condition is fulfilled later on. The separate smart mailbox works around this.

    June 9th, 2017 @ 09:05 AM

  9. Muescha
    Muescha

    1) To manually trigger the rule then you also need to select all of the emails in the mailbox.

    i expected, when i do the right click at the mailbox then the rules are automatic for ALL emails in this folder (without selecting).

    2) i mean i already have done it as a smart mailbox - that means when when a mail first time fulfill the "older than 6 month" the email "enter" the smart mailbox and rules apply?

    June 9th, 2017 @ 03:38 PM

  10. benny
    benny
    • State changed from accepted to fixcommitted

    The “Apply Rules” menu item has now been changed such that it has two subitems. One for applying to the entire mailbox and one for applying to selected messages only. There is also an “Edit Rules” menu item which opens the smart mailbox editor and switches to the Rules pane.

    September 21st, 2017 @ 06:57 AM

  11. benny
    benny
    • State changed from fixcommitted to fixreleased

    September 22nd, 2017 @ 12:54 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.