rb290169

Q: Mail rules not working...

I have set a mail rule to mark all messages as read.  This rule will only work if I force it to apply (Cmd +A to select all then right click apply rules).  The messages show as read on Mail, but when I view the same account on my ipad they still show as being unread.  Is this a Mavericks problems?

 

I am still having lots of problems getting mail to apply rules.  Someone has suggested that it only works on new mail.  Very confused.  It works sometimes and doesnt at other times.

 

I am using Gmail

MacBook Pro, iOS 7.0.3

Posted on Nov 8, 2013 1:05 PM

Close

Q: Mail rules not working...

  • All replies
  • Helpful answers

Previous Page 2 of 4 last Next
  • by Eric Root,

    Eric Root Eric Root Jan 23, 2014 12:00 PM in response to highab2000
    Level 9 (69,932 points)
    iTunes
    Jan 23, 2014 12:00 PM in response to highab2000

    Try looking at the More Like This box in the top right.

     

    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.

     

    Mail/Provide Mail Feedback

  • by sarob,

    sarob sarob Jan 30, 2014 1:45 AM in response to rb290169
    Level 1 (0 points)
    Jan 30, 2014 1:45 AM in response to rb290169

    Hi.

     

    If you have a look in your rules do you have a rule named "News from Apple"?

     

    If you do, then change the rule that says evaluate no more rules. 

     

    Or one of your rules has this condition set.  Check other rules to make sure that this is not enabled as any rules that appear after this condition will be ignored.

     

    Let me know if I have guessed correctly. 

  • by 2aussies,

    2aussies 2aussies Jan 30, 2014 5:21 AM in response to sarob
    Level 1 (4 points)
    Mac OS X
    Jan 30, 2014 5:21 AM in response to sarob

    this is not it !  when I noticed that Rules were not working in Maverick I deleted all Rules, and then carefully added a couple back in to test.  They are not working, sorry.

  • by bobmermans,

    bobmermans bobmermans Feb 3, 2014 3:36 PM in response to sarob
    Level 1 (0 points)
    Feb 3, 2014 3:36 PM in response to sarob

    Hi Sarob,

     

    I think this did it to me! At least I don't have to manually select as many emails anymore as I had to do until now, after changing the "news from apple" rule!

     

    Many thanks!

     

    Bob

  • by Loose_Canon,

    Loose_Canon Loose_Canon Feb 4, 2014 8:08 AM in response to bobmermans
    Level 1 (8 points)
    Photos for Mac
    Feb 4, 2014 8:08 AM in response to bobmermans

    Hi folks,

    I have encountered this problem also, I use xxxxxx@iCloud.com as my email address. I am sure my rules have worked, but now I have to take manual action to make them work. One 'trick' that makes my rules work is to make a change to one of the rules, it does not matter which one, and the change does not matter either, then click Apply on the Rules dialog that pops up asking if you want to apply the rules. Then magically all rules are executed.

     

    Somebody suggested to give Apple feedback on this case. That is a natural thing to do, but - hm - how do you do that?

     

    Obe

  • by Laurent Seroude,

    Laurent Seroude Laurent Seroude Feb 8, 2014 12:26 PM in response to rb290169
    Level 1 (69 points)
    Publishing
    Feb 8, 2014 12:26 PM in response to rb290169

    The rules "News from Apple" (added by 10.9 install) have a "after performing" rule "Stop evaluating rules" included that should not be there and prevent all other rules from working. Removed this action and all rules work again (Apple needs to update Mail to remove this).

  • by Loose_Canon,

    Loose_Canon Loose_Canon Feb 11, 2014 8:26 AM in response to Laurent Seroude
    Level 1 (8 points)
    Photos for Mac
    Feb 11, 2014 8:26 AM in response to Laurent Seroude

    Thank you for your advice, but unfortunately it did not help in my case...

     

    Obe

  • by highab2000,

    highab2000 highab2000 Feb 11, 2014 8:33 AM in response to rb290169
    Level 1 (0 points)
    Feb 11, 2014 8:33 AM in response to rb290169

    I've compiles a crude applescript workaround to deal with the problem until its solved:

    Copy and paste this into a new Applescript editor document and save as an app.... and let it run all the time... it'll check and apply rules every 2 minutes.... as long as you don't press on a key or click something when its doing its series of keystrokes, and the only way to quit it is to force quit. As I said, its crude, but it works for me.

    tell application "Finder"

       

        tell application "Mail"

            set a to 0

            repeat with theAccount in (every account)

                repeat with theBox in (every mailbox of theAccount)

                    set a to a + (count (messages in theBox where read status is false))

                end repeat

            end repeat

        end tell

       

       

        if a is not 0 then

            tell application "Mail" to try

                tell message viewer 1 to set selected messages to {first message of beginning of (get selected mailboxes) whose read status is false}

                activate

               

            end try

            tell application "Mail"

                activate

            end tell

           

           

           

           

            tell application "System Events"

                key code 120 using control down

                keystroke tab

                keystroke tab

                keystroke tab

                keystroke tab

                keystroke tab

                keystroke tab

                keystroke space

                repeat 12 times

                    delay 0.1

                    key code 125

                end repeat

                delay 1

                keystroke space

            end tell

           

        end if

       

        delay 60 * 2

       

       

       

    end tell

  • by highab2000,

    highab2000 highab2000 Feb 12, 2014 1:32 AM in response to highab2000
    Level 1 (0 points)
    Feb 12, 2014 1:32 AM in response to highab2000
    Line in bold added so it works if mail is minimised to the dock

     

     

    tell application "Finder"

       

        tell application "Mail"

            set a to 0

            repeat with theAccount in (every account)

                repeat with theBox in (every mailbox of theAccount)

                    set a to a + (count (messages in theBox where read status is false))

                end repeat

            end repeat

        end tell

       

       

        if a is not 0 then

    tell application "System Events" to keystroke "1" using {option down, command down}

            tell application "Mail" to try

                tell message viewer 1 to set selected messages to {first message of beginning of (get selected mailboxes) whose read status is false}

                activate

               

            end try

            tell application "Mail"

                activate

            end tell

           

           

           

           

            tell application "System Events"

                key code 120 using control down

                keystroke tab

                keystroke tab

                keystroke tab

                keystroke tab

                keystroke tab

                keystroke tab

                keystroke space

                repeat 12 times

                    delay 0.1

                    key code 125

                end repeat

                delay 1

                keystroke space

            end tell

           

        end if

       

        delay 60 * 2

       

       

       

    end tell


  • by Loose_Canon,

    Loose_Canon Loose_Canon Feb 12, 2014 3:34 AM in response to highab2000
    Level 1 (8 points)
    Photos for Mac
    Feb 12, 2014 3:34 AM in response to highab2000

    Thank you for your replies,

     

    Now - this does not work with me. Maybe it is my fault - I know nothing about Apple scripts.

     

    So - I copied the latest script to a new document in the script editor, saved it as an application, clicked the Run button  in the editor window - nothing happens. What else should I do?

     

    Thank you!

     

    Obe

  • by highab2000,

    highab2000 highab2000 Feb 12, 2014 4:18 AM in response to Loose_Canon
    Level 1 (0 points)
    Feb 12, 2014 4:18 AM in response to Loose_Canon

    I cut the relevant bit out of a script which I created to do other things too, maybe I didn't cut it correctly.

     

     

    tell application "Finder"

                                  

              tell application "Mail"                    

                        set a to 0                    

                        repeat with theAccount in (every account)                              

                                  repeat with theBox in (every mailbox of theAccount)                                        

                                            set a to a + (count (messages in theBox where read status is false))                                        

                                  end repeat                              

                        end repeat                    

              end tell

                                                      

              if a is not 0 then

                        tell application "Mail"

    activate

                                  tell application "System Events" to keystroke "1" using {option down, command down}

                                                                tell application "Mail" to try

                                                                                    tell message viewer 1 to set selected messages to {first message of beginning of (get selected mailboxes) whose read status is false}

                                              activate

                                        end try

                                  

                                  tell application "Mail"

                                              activate

                                                                          end tell

                                  

                                  tell application "System Events"

                                            

      key code 120 using control down                                        

      keystroke tab                                        

      keystroke tab                                        

      keystroke tab                                        

      keystroke tab                                        

      keystroke tab                                        

      keystroke tab                                        

      keystroke space

                                            

                                            repeat 12 times                                                  

                                                      delay 0.1                                                  

                                                      key code 125                                                  

                                            end repeat                                        

                                            delay 1                                        

      keystroke space                                        

                                  end tell                                                                                                                     

                        end tell                   

                        

                        delay 60 * 2

                        

              end if                                                

    end tell

     

     

    It assumes that you want to apply the rules to a message that is marked as unread
  • by Loose_Canon,

    Loose_Canon Loose_Canon Feb 13, 2014 5:26 AM in response to highab2000
    Level 1 (8 points)
    Photos for Mac
    Feb 13, 2014 5:26 AM in response to highab2000

    That works!

     

    Thank you for your help.

     

    Obe

  • by shapdoc,

    shapdoc shapdoc Feb 13, 2014 9:12 AM in response to Laurent Seroude
    Level 1 (0 points)
    Feb 13, 2014 9:12 AM in response to Laurent Seroude

    As someone suggested (I can't find the post) I went to News From Apple and disabled Stop Evaluating Rules and that worked for me.

     

    Message was edited by: shapdoc

  • by darlie brewster,

    darlie brewster darlie brewster Feb 13, 2014 9:24 AM in response to shapdoc
    Level 1 (0 points)
    Feb 13, 2014 9:24 AM in response to shapdoc

    I deleted the |News from Apple Rule  long ago. This happened suddenly today.

  • by shapdoc,

    shapdoc shapdoc Feb 13, 2014 11:04 AM in response to darlie brewster
    Level 1 (0 points)
    Feb 13, 2014 11:04 AM in response to darlie brewster

    My problem began Tuesday when all the messages in my inbox and my main folder disappeared and were replaced with messages from another folder. I retrieved the original emails from Time Machine and I continued to have problems until I disabled the News from Apple rule. It seems to be fixed.

Previous Page 2 of 4 last Next