The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus 1 for Mac (http://forums.omnigroup.com/forumdisplay.php?f=38)
-   -   Email Rules Work, but are not automatically triggered (http://forums.omnigroup.com/showthread.php?t=20679)

krunk 2011-04-12 05:36 PM

Email Rules Work, but are not automatically triggered
 
I have two mail rules built around the MailAction.applescript. The first is generated by OmniFocus itself in preferences, the second I created based on that one.

They are both placed at the very top of my rules list and should be run first on every incoming email.

However, they are _never_ triggered automatically. No matter what, the emails are not added to omnifocus.

I can select the emails, right click, and choose "Apply Rules" and everything works as expected.

whpalmer4 2011-04-12 07:33 PM

How do you know the rules are being run at all? What you describe is consistent with them not being run, and it is difficult to imagine a scenario where OmniFocus would act differently upon the emails depending on whether the rule was invoked automatically or manually.

First step is to establish that the rule is being run. Insert an action at the top of the rule to play a sound or bounce the icon in the dock. Send an email. If the email shows up in your mailbox, but you don't get your sound or bouncing icon, make sure that nothing is marking that email as read before Mail gets it. Mail only runs the rules against what it thinks are new, unread messages.

krunk 2011-04-13 11:38 AM

Well, the issue was I knew they were _not_ being triggered at all. Not that I thought the rules were not working _when_ they were triggered.

I found the problem, I do filtering in gmail and mails are sorted into subfolders server side.

I found out Mail.app does not run rules on anything but mail in the Inbox. Haven't found a solution to that yet.

whpalmer4 2011-04-13 11:48 AM

How about filtering messages destined for OmniFocus into a separate folder, then having an Applescript run from iCal every (insert your desired interval) that takes the contents of that folder and does perform mail action with messages with the rule to process them? Or can you simply not filter the OmniFocus messages?

krunk 2011-04-13 09:36 PM

Those are some good ideas, didn't think of the ical option at all. I was going to write a launchd.plist that ran periodically, but ical seems easier.

One of the issues is I was going to monitor emails from some of the regular stores I buy from online such as amazon and bill notifications. So, not sorting isn't really an option but an ical event that ran a script would work super!


All times are GMT -8. The time now is 01:08 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.