#2333 new
Mark Chapman

Move to Mailbox doesn’t work sometimes

Reported by Mark Chapman | May 30th, 2019 @ 01:15 PM

After the last update the move to rule sometimes fails. Rules are working generally but I am getting messages in my inbox that should have been moved elsewhere (and prior to the most recent update would have been). I can't figure out what the pattern is of which messages still get moved and which don't.

Comments and changes to this ticket

  • Faizel Dakri

    Faizel Dakri January 20th, 2020 @ 09:20 PM

    Just want to add that I'm also seeing this behavior. I have many rules in my configuration and they rely on the fact that rules are processed in sequence. I have an initial set of rules that tag messages, and then further down in the list of rules, I have ones that move messages to "buckets" based on the tags applied. When I launch MailMate, messages are properly tagged and moved. However, after some time, messages stop moving to the correct mailboxes. Interestingly, they are still tagged properly. So I end up with a bunch of tagged messages in my Inbox that are waiting to be moved.

    If I reapply the rules to the tagged messages in the Inbox, they do move to the correct mailbox, however that is not indicated in the GUI immediately. I have to switch out of the Inbox, and then switch back to it to see that the messages have indeed moved to the proper mailbox. Once I've reapplied the rules and "forced" MailMate to move the messages, things start working again for a while, but invariably, messages stop moving again.

    If there's anything I can do to assist in tracking this down, please do let me know. If there's a way to turn on rule tracing, debugging, etc., I'd be happy to help.

  • Faizel Dakri

    Faizel Dakri January 21st, 2020 @ 05:31 AM

    So I turned on rule tracing with

    defaults write com.freron.MailMate MmDebugRules -bool YES
    
    And all was humming along nicely for a few hours until the message moving stopped working. Here's a trace that shows that the rule to tag the email is firing correctly, but the rule to move the messages is not firing, so nothing is moved:
    2020-01-20 21:12:11.484 MailMate[33310:1431774] Checking rule “list-fsisac” of mailbox “Inbox” with 1 messages
    ...
    2020-01-20 21:12:11.499 MailMate[33310:1431774] Checking rule “tag-alert-veeam” of mailbox “Inbox” with 1 messages
    2020-01-20 21:12:11.499 MailMate[33310:1431774]  Filter “from ~ 'VEAMM01@somedomain.com'”
    2020-01-20 21:12:11.500 MailMate[33310:1431774]  Number of messages after filtering: 1
    2020-01-20 21:12:11.500 MailMate[33310:1431774]  Action: “changeFlags” ({     enable =     (         veeam     );     type = changeFlags; })
    2020-01-20 21:12:11.500 MailMate[33310:1431774]  Action: “changeFlags” ({     enable =     (         alert     );     type = changeFlags; })
    2020-01-20 21:12:11.500 MailMate[33310:1431774] Checking rule “tag-alert-sharefile” of mailbox “Inbox” with 1 messages
    ...
    2020-01-20 21:12:11.504 MailMate[33310:1431774] Checking rule “move-alerts” of mailbox “Inbox” with 1 messages
    2020-01-20 21:12:11.504 MailMate[33310:1431774]  Filter “(#flags.flag = 'alert' and #flags.flag !=[x] 'ignore')”
    2020-01-20 21:12:11.504 MailMate[33310:1431774]  Number of messages after filtering: 0
    2020-01-20 21:12:11.504 MailMate[33310:1431774] Checking rule “move-voicemails” of mailbox “Inbox” with 1 messages
    

    I then reapplied the rules to the message that failed to move, and got the following trace, which shows the message moving (I had to switch folders to show the move):

    2020-01-20 23:22:15.071 MailMate[33310:1431774] Checking rule “list-fsisac” of mailbox “Inbox” with 1 messages
    ...
    2020-01-20 23:22:15.078 MailMate[33310:1431774] Checking rule “tag-alert-veeam” of mailbox “Inbox” with 1 messages
    2020-01-20 23:22:15.078 MailMate[33310:1431774]  Filter “from ~ 'VEAMM01@somedomain.com'”
    2020-01-20 23:22:15.079 MailMate[33310:1431774]  Number of messages after filtering: 1
    2020-01-20 23:22:15.079 MailMate[33310:1431774]  Action: “changeFlags” ({     enable =     (         veeam     );     type = changeFlags; })
    2020-01-20 23:22:15.079 MailMate[33310:1431774]  Action: “changeFlags” ({     enable =     (         alert     );     type = changeFlags; })
    2020-01-20 23:22:15.079 MailMate[33310:1431774] Checking rule “tag-alert-sharefile” of mailbox “Inbox” with 1 messages
    ...
    2020-01-20 23:22:15.082 MailMate[33310:1431774] Checking rule “move-alerts” of mailbox “Inbox” with 1 messages
    2020-01-20 23:22:15.082 MailMate[33310:1431774]  Filter “(#flags.flag = 'alert' and #flags.flag !=[x] 'ignore')”
    **2020-01-20 23:22:15.082 MailMate[33310:1431774]  Number of messages after filtering: 1**
    2020-01-20 23:22:15.082 MailMate[33310:1431774]  Action: “moveMessage” ({     mailbox = "imap://myuser%40mydomain.com@outlook.office365.com/alerts";     type = moveMessage; })
    2020-01-20 23:22:15.090 MailMate[33310:1431774] Checking rule “move-voicemails” of mailbox “Inbox” with 0 messages
    ...
    

    Note that I've skipped a bunch of rules where you see the elipsis. Not sure if the rule count matters or not, but there are around a 100 or so rules that get evaluated. Anyway, once I reapplied the rules to my Inbox messages, things start working again and emails are properly tagged AND moved for a while.

  • benny

    benny January 22nd, 2020 @ 01:54 PM

    @Faizel: Thanks for the details. That does look very strange, but it's good if it happens somewhat often such that we can debug it. First, I'd like to confirm that it also happens with the latest test release: Hold down option when clicking “Check Now” in the Software Update preferences pane.

    The randomness of the issue is the strangest part. It is possible that an action in one rule does not necessarily trigger a later rule (I haven't checked), but in that case I would expect it to always be the case. (Note that rules are actually hierarchical, you can make a rule a child of another rule to only trigger it when the parent rule was triggered.)

  • Faizel Dakri

    Faizel Dakri February 3rd, 2020 @ 06:26 AM

    @benny: I tried with the latest test build and I am still seeing the issue. One thing that I noticed, when I manually apply the rules, the mailbox count in the sidebar is updated correctly, but the message list is not. I still have to switch mailboxes and switch back to see the updated message list.

    I haven’t been able to narrow the circumstances down that cause the issue for me. I’ve also found that my original statement about reapplying rules causing them to work again, may not have been accurate, as I’m finding that once rules have stopped moving messages, I have to manually apply rules to the Inbox to get them to move (until restarting MailMate).

    I will continue to play around with it and let you know if anything pops up. Thanks for the reply.

  • Mark Chapman

    Mark Chapman February 4th, 2020 @ 12:18 PM

    A quick note to say I am seeing something similar to Faizel. I have not had any time to track down exactly what is happening but it manifests as messages that are not moved even though there are rules that apply to them.

  • benny

    benny February 4th, 2020 @ 12:57 PM

    There's also a newer release of MailMate which is not available as a test download. It includes 1 fix which I could possibly see as related to this issue, but it's a long shot. If you want to try it out then it can be downloaded directly here: https://updates.mailmate-app.com/archives/MailMate_r5677.tbz

    Let me know if you spot any patterns and/or find a way to reliably reproduce the issue.

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Mac OS X email client.

Shared Ticket Bins

People watching this ticket

Pages