How to get better rules (filters) in Mail.app

I love Mail.app, but it's rules criteria implementation doesn't quite do what I want.
I want to be able to match emails on a more complex basis than just "Any" or "All".
For example, I wish to capture all emails that match "X-Mailer: Trac" AND whose body matches EITHER "Changes (by chris):" OR "Comments (by chris):" OR "Changes (by cburgess)" OR "Changes (by cburgess)".
This combines an AND and ANY rule, and I can't see how to do it using Mail's Rule GUI. I also had a look at ~/Library/Mail/MessageRules.plist but it's not obvious whether I'm permitted to add nested Criteria dicts.
Anyone know of a mail rules plugin which offers this? I'm using Leopard.
Anyone have pointers to an example AppleScript or external script (Bash, PHP, Python, Perl, ...) which does something like this for IMAP mailboxes?
Thanks in advance!

There is an article on Mac OS X Hints on how to make complex booleans for Smart mailboxes - you might be able to apply it to ~/Library/Mail/MessageRules.plist.
Edit: usual caveats apply - I haven't tried it so have no idea if it will work; back up the plist before starting; quit Mail before starting.
AK
Message was edited by: Austin Kinsella1

Similar Messages

  • How to get greater log detail from Mail.app in Lion (slow attachment caching)

    I have an IMAP account, hosted by FuseMail, that is taking an extraordinary amount of time to catch attachments. I would say it is taking upwards of 10 minutes to cache one attachment. This is causing a side-effect in mail that it keeps spawning new threads for "Fetching new mail" which eventually makes Mail.app thread-bound and it stops responding (see image below of an example of what happened over night when I wasn't there to kill the treads).
    I would like to see a more detailed trascript of the connection with this IMAP server to see if the delay is with the server or with my client. However, I have been unable to capture what I'd like to see:
    If I use the Connection Doctor, turn off all other accounts and look at "Show Detail", I can see some log entries for READS and WRITES (FETCH and PEEK) but it's still difficult to see what's happening between those steps:
    WROTE Sep 17 12:47:39.874 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.socialogue.com -- port:993 -- socket:0x7f8d32e16d30 -- thread:0x7f8d345d7870
    84.46 UID FETCH 7330 BODY.PEEK[2]<4110304.16384>
    WROTE Sep 17 12:47:46.098 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:mail.me.com -- port:993 -- socket:0x7f8d348b91a0 -- thread:0x7f8d34b57490
    DONE
    READ Sep 17 12:47:46.101 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.socialogue.com -- port:993 -- socket:0x7f8d32e16d30 -- thread:0x7f8d345d7870
    * 6869 FETCH (UID 7330 BODY[2]<4110304> {16384}
    READ Sep 17 12:47:46.150 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.socialogue.com -- port:993 -- socket:0x7f8d32e16d30 -- thread:0x7f8d345d7870
    Lvrf+t3/AIKHf8EyPgF/wUD/AGDPFX7BusaZ4f8Ag94JTT9Pj8Cahofh6ydf
    hzfaeFGnzWFqyCOGKONTavFAYGeynubdJYRLvX8gf2Nv2Iv+DgX9hD/gmj4O/YC/Z81n/glBpPjb
    <----8X----snip----8X----->
    7aHwA/4Kf/sXfEv4P/Cn9tD4d6h4b1ZvD3jfQpP+EV+IV9o+rW91Y3Oo3enBb6GWOBZIJJNly08N
    tYW6G0WIzHoP2kP+CZP/AAU1/wCCruj6P8Ef+Cm/7TPwA/Zq/Y40/wDs2+1jwJ+zTLql3qnx
    READ Sep 17 12:47:46.158 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:mail.me.com -- port:993 -- socket:0x7f8d348b91a0 -- thread:0x7f8d34b57490
    47.47 OK Completed
    READ Sep 17 12:47:46.195 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.socialogue.com -- port:993 -- socket:0x7f8d32e16d30 -- thread:0x7f8d345d7870
    O1RL
    ACWTUtU1y3RLO0t9SiS8tbNLS6QpN5c7ST2ltfD9n/gp+yZ8G/2Q/gFqHwJ/Yi+GHwf/AGa9Jh09
    <----8X----snip----8X----->
    hG4+MHwt1nxKNc0bwh5Uaahc2mlTaVFFJ4guZTc3Umoi9thJJcylI7W4Zb6L9Hv+CZ//AARa/YM/
    4JR6drd5+zD8P/EGqfFbV9POk678
    WROTE Sep 17 12:47:46.206 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:mail.me.com -- port:993 -- socket:0x7f8d348b91a0 -- thread:0x7f8d377d87f0
    48.47 NOOP
    READ Sep 17 12:47:46.216 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.socialogue.com -- port:993 -- socket:0x7f8d32e16d30 -- thread:0x7f8d345d7870
    QfFuojUvEWr2P2qS5W2LokdtaxBmiVo7OC3WYWlq04mkiSQf
    gD/wXk/4N6f+Ckn/AAVl/bzu/wBoz4a/E39iDwX8HNF8H6R4K8H2uua1r1nrMljAZryeS/SHTbmA
    <----8X----snip----8X----->
    9qTxB8ULbwP8UNP+KPgD4UfDnxfqa+AoPEVna+XB4g1GK5t7eS51BJDEIxDHCESyVJZbuK4e2iPj
    X/wb0/toftvf8FvLD9v/APbt+Jv7MHj/APYv0zxglzpPgTSda1a+vl8K6WkjaL
    READ Sep 17 12:47:46.285 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.socialogue.com -- port:993 -- socket:0x7f8d32e16d30 -- thread:0x7f8d345d7870
    pEmn6pps1j5VzP
    Hby6nbJMIZWvdUaLY0y1+/3/AAVz/Yh8Vf8ABRz/AIJ1ftMfsa+BfHHh/wCHXjfxfp+nSaPqurW8
    <----8X----snip----8X----->
    BYbWKS5uWhgh86QN+UH/AAXp/wCDfXUf+Cwfir4afGb4f/tIeH/gj8VvBng/VNBsNK1bwXa3lj4m
    maQ3FnFcanb+XqNrEJ
    READ Sep 17 12:47:46.301 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.socialogue.com -- port:993 -- socket:0x7f8d32e16d30 -- thread:0x7f8d345d7870
    mkVzJ9viiWUyW9rFI119s6DwD/AMG3PwJ8afAnxr8Ov+Cjf7W37X//AAUy
    +LWs+H7zQNO8bfEHxbeP/wAK2868W4N74ZtLme6/sq7f7Npomllmu/O+weWQttcXNpL4B/wSW/4N
    <----8X----snip----8X----->
    UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
    UUUUUUUUUUUUUUUUUUUU)
    84.46 OK FETCH completed.
    WROTE Sep 17 12:47:46.322 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.socialogue.com -- port:993 -- socket:0x7f8d32e16d30 -- thread:0x7f8d333741d0
    85.46 UID FETCH 7330 BODY.PEEK[2]<4126688.16384>
    READ Sep 17 12:47:46.412 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:mail.me.com -- port:993 -- socket:0x7f8d348b91a0 -- thread:0x7f8d377d87f0
    48.47 OK Completed
    WROTE Sep 17 12:47:46.434 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:mail.me.com -- port:993 -- socket:0x7f8d348b91a0 -- thread:0x7f8d345d7870
    49.47 IDLE
    READ Sep 17 12:47:46.579 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:mail.me.com -- port:993 -- socket:0x7f8d348b91a0 -- thread:0x7f8d345d7870
    + idling
    I just can't see enough to figure out if the problem is on my end or the FuseMail end. I have been looking around trying to figure out how to increase the debug level without much luck.
    I found this about the sqlite3 db but the Envelope file is not in the same place anymore:
    http://www.macworld.com/article/56673/2007/03/mailfix.html
    I also played around with the defaults but could not find anything specific to the connection/transfer/caching protocols:
    http://hints.macworld.com/article.php?story=2004101603285984
    I also tried the "Turn on Logging" Mail script:
    http://macs.about.com/od/usingyourmac/ss/Troubleshooting-Apple-Mail-Using-Apple- Mails-Troubleshooting-Tools_3.htm
    but if it is turning anything on in the Console, I can't see it.
    Any suggestons?

    I have the same problem, some photos are not loaded completely and partly grey. This occurs only in Mail.app but not in the web interface of the email provider. Did you find a solution, Florian? Does somebody else have a suggestion?
    Greetings from Finland

  • How to get spool along with e-mail or FAX

    Hi,
    I have a requirement where i have to produce a spool even i go for e-mail or FAX option when the script is triggered.
    I am using a standard program where it is coded to have either of the option. i.e. either we have to go for a printer or e-mail or FAX.
    Could any one suggest me how to get spool along with e-mail or FAX option.
    Thanks in advance.

    Hi,
    check this:-[http://help.sap.com/saphelp_nw04/helpdata/en/a5/28d3b9d26211d4b646006094192fe3/frameset.htm]
    hope u'll get some idea.
    Regards,
    Sneha.

  • How to get Spam folder in Apple Mail?

    I received some important emails in my spam folders when I checked them with Safari, but Apple mail does not have them in Inbox or Junk folder. How to get Spam folder in Apple Mail?

    In the mailbox list, below the word "MAILBOXES" and the standard mailboxes (Inbox, Drafts, Sent, Trash, & Junk), you should have some lines like "SMART MAILBOXES", "REMINDERS", "RSS", "ON MY MAC", and a line with the name of each of your mail accounts. Each of those lines may have subordinate lines indented below it, or they may be hidden. Before Lion, the top-level lines would have standard disclosure triangles to their left like folders, but Lion Mail removed that visual clue in favor of a word "Show" or "Hide" to the right that appears only when you mouse over it.
    The Gmail Spam folder you seek is two folders deep inside your Gmail account.
    Here's my Gmail account listing:
    It has 41 unread messages. If I hover my cursor over the oval with "41" in it, the oval shifts left and "Show" appears. If I click on "Show", I get this:
    If I click on the disclosure triangle left of the "[Gmail]" folder, voila!
    By the way, this intermediate "[Gmail]" folder is specific to Gmail, Google Apps mail sites, and other mail sites using Google's Gmail code, as is the All Mail folder. Other servers will have their own folder structure.

  • How to get better resolution on graphical borders in Pages?

    When using the «line effect» on a picture frame and choose a «image border», these borders a very pixelated and low resoltion when i.e. printing on a quality printer. Seems to be only screen resolution (100-150 dpi)? Is this a bug in Pages – how to get better resolution for these borders when exporting for example to PDF?

    Here you see the issue. The Document's size is A6 landscape, means 14.8x10.5 cm, and it prints and shows really pixelated

  • How to get SSO userid to URL-based app?

    I'm developing a web-app using Struts that will be accessed by Portal (I guess as a URL-based app). The web-app will not require login. The web-app will not be Portal "aware", except that it requires the SSO userid for auditing/logging purposes.
    I know little about Portal and SSO. How can Portal be configured to send the Portal userid of the logged-in Portal user? Can it send it as a parameter in a GET or POST?
    The version of Portal will be 9.0.2 (or greater).

    This topic is answered in the PDK forum here:
    How to get SSO userid to URL-based app?

  • Hi, just need to know how to get my music, video, pictures and apps form my iPhone to my new laptop as the old computer, which I used before was stolen. I only have my phone left and if I try to conect it to my new laptop it's trying to delete everything.

    Hi, just need to know how to get my music, video, pictures and apps form my iPhone to my new laptop as the old computer, which I used before was stolen. I only have my phone left and if I try to conect it to my new laptop it's trying to delete everything.

    I have also noticed all my settings won't stay set, example....I removed the check mark from "third party cookies", the when I close Firefox and reopen the check mark is back, also my tool bar has screwed up....can't reset, been having trouble the up grade.

  • How do I set up hotmail in mail app to not mark every message it syncs to be new?

    Hello,
    Using Mail App Version 5.2 on OSX Lion.
    How do I set up hotmail in mail app to not mark every message it syncs to be new? (as in if if I check my mail on the browser and I have a new message.. and I read it.. but then open my mail app it syncs that email but says its new and unread)Here are my setting... what do I change?

    irodalgo wrote:
    but how come it does on my iphone?
    What do you mean it does on your iPhone?
    If you download a new email to your computer and read that mail and then download it to the iPhone it sees it as already read? Then maybe the iPhone is using the Hotmail IMAP system? Not sure.

  • How to get Client IP address in oracle apps. Are there any API's.

    hi,
    I have one query
    ->How to get Client IP address in oracle apps. Are there any API's.
    regards,
    krishna

    Hi,
    this is very usefull
    however are this data stored on the db or is only a temporary view?
    I would like to have to keep track of all client connected.
    Thanx a lot

  • HT4009 Does anyone know how to get a refund for an iPad app purchase?

    Does anyone know how to get a refund for an iPad app purchase?

    FOR ASSISTANCE WITH ORDERS - iTUNES STORE CUSTOMER SERVICE
    For assistance with billing questions or other order inquiries, please refer to our online support page by clicking here: http://www.apple.com/support/itunes/store/. If you cannot find the answers you are seeking in our robust knowledge base, you can contact us by visiting the following URL http://www.apple.com/support/itunes/store/, clicking on the appropriate Customer Service topic, then using the contact button or email form at the bottom of the page. Responses to emails will be provided as soon as possible.
    Phone: 800-275-2273 How to reach a live person: Press 0 four times
    Hours of Operation: Mon-Fri: 9am-5pm ET
    Email: [email protected]
    How to report an issue with Your iTunes Store purchase
    http://support.apple.com/kb/HT1933
    How to Get a Refund from the App Store
    http://gizmodo.com/5886683/how-to-get-a-refund-from-the-app-store
    Canceling a Digital Subscription
    http://gadgetwise.blogs.nytimes.com/2011/10/14/qa-canceling-a-digital-subscripti on/
     Cheers, Tom

  • Mavericks 10.9.3.  Can I write a Rule in the Mail app and tell the rule to return an email to the sender?  I have already trsuggestions?

    Mavericks 10.9.3.   MacBook. Can I write a Rule in the Mail app to return an email to Sender?  I have tried many, many times but no luck so far.  Is it even possible, or am I wasting my time?

    There is no specific option to do that, although you can redirect a message if it meets certain criteria. I believe if you wanted to bounce it back to the sender, then you would need an AppleScript to run. If you do some Google or MacUpdate searching you may find an existing script for this purpose.

  • Using Office 365 - how to close sub folders in iPhone-mail app.

    using Office 365 - how to close sub folders in iPhone-mail app.

    Isn't HotMail still POP3 mail only (i.e. no IMAP support)?  If that is still the case, then your device is working correctly.  The folders you made are a feature of the web tool for hotmail, and are not part of the POP3 supported email protocol.  Only IMAP mail supports on-server mail subfolders, and those can be accessed from the iPhone mail client.  But POP3 is limited to the inbox solely, as that is literally the only folder that sits on the mail server (your others are on Microsofts web server and supported via the web mail tool).

  • How to get rid of automatically created Mail and iCal accounts on client?

    I have recently setup an OS X 10.6 Server for our small office. I got the domain name wrong in the initial install and fixed this by doing a complete clean reinstall of OS X 10.6 server (now upgraded to 10.6.4).
    The problem is that one of the OS X 10.6.4 clients had been setup to talk to the server prior to the rebuild. Now on this client, I cannot work out how to get rid of or change the automatically created server accounts in iCal and Mail - everytime you login, these are recreated using the old domain name (and of course don't work).
    In Mail if you remove the server account (from Accounts in Preferences), it just pops back again. I even removed every trace of the old domain name from the apple.com.mail.plist file but when I re-open Mail that darned server account (with the old domain name) just pops up again.
    In iCal its slightly different in that you can remove the account and it stays away while you have iCal open. But as soon as you close and re-open it, that server account just pops up again!
    I thought it might be something to do with Kerberos and found a Kerberos file on the client which had the old domain name throughout it - I changed all these references to the new domain name, but still the same behaviour in Mail and iCal.
    This is doing my head in. Any ideas?

    I have the same problem. Every time that I open iCal on the client a new account is created and an error message shown that I cannot login. I can delete the wrong account in the iCal preferences. However, as soon as I restart, the account and the error message are back.
    How do I "unbind" and "rebind" a client? I searched the "Mac OS X Server
    Open Directory Administration Version 10.6 Snow Leopard" but the only reference to "binding" seems to be in the context of Active Directory which I don't have.
    Any help is greatly appreciated.

  • How to get emails on iphone and mail on my computer?

    Hi there,
    I use mail on my Mac to get my emails and since getting my iphone i also use this. the problem is when i have mail on my computer open i only get emails sent to it. when i dont have it open i only get them sent to my iphone.
    how do i set it up so i will receive all emails on both my phone and computer?
    thanks.

    It sounds like you are using a POP3 mail server. POP3 was designed to have only one client, so when a message is downloaded to the client by default it is deleted from the server. This dates from the time when it was considered inconceivable that anyone would have more than one computer to read mail. There is a solution and a workaround. The Solution is to switch to an IMAP mail server. IMAP was designed to support multiple clients; the master copy of each message remains on the server, and the clients sync to it.
    The workaround is to change the settings of the mail clients (mail.app and the iPhone) to leave messages on the server. This is not as convenient, because you have to delete them manually, but if you don't have an IMAP server it is the best you can do.

  • How to get better perform here

    hi there,
    bellow code is using with in the loop. how can i modify to get better performance.
    SELECT knumv kposn kwert FROM konv
                                    INTO CORRESPONDING FIELDS OF lt_konv
                                     WHERE knumv EQ lt_output-knumv
                                     AND kposn EQ lt_output-posnr
                                     AND kschl EQ 'VPRS'.
            COLLECT lt_konv.
          ENDSELECT.
    thx in adv.

    the better solution for the select statement whould be to use the aggreagte function sum for the field kwert:
    SELECT knumv kposn sum(kwert)
                 FROM konv
                 INTO CORRESPONDING FIELDS OF table lt_konv
                 WHERE knumv EQ lt_output-knumv
                       AND kposn EQ lt_output-posnr
                       AND kschl EQ 'VPRS'.
    The select is inside the loop an lt_output.
    Aggregate functions and FOR ALL ENTRIES can not be combined, the
    FOR ALL ENTRIES is a select distinct !!!
    So you must leave the loop around the select and you can't use the FOR ALL ENTRIES, but this is o.k.,
    Siegfried

Maybe you are looking for

  • I have had itunes library to go away and itunes create a new one. how do I get my old one back?

    I have had itunes library to go away and itunes create a new one. how do I get my old one back?

  • Stuck at 3.3ghz`

    hey my cpu is running at 3.3ghz but i want it to run at 3.0ghz (cos me sound doesnt work wen its at 3.3). i tried to change it using core center, and nothing happened, i tried to change it with my bios, nothing happened. ive tried everything i can th

  • Combining .txt files

    Hello, I have an ODS that has (instead of R/3), PC Files as the infosource.  Everything is working fine in BW.  However, I have 200+ of these .txt files to load.  Rather than loading them one at time, is there a way (some PC tool or something) to com

  • Patch 111685 breaks string concatenation!!!

    Patch 111685 for WS6U2 fixes a lot of problems but introduces a massive memory leak in operator+= for std::string. Sun has already acknowledged that it's a serious bug (bug id 4520126) although they are taking forever to fix it: This is the test case

  • Firmware update 1.2.3 still leaves iPod unable to play some songs

    I tried the 1.2.2 update and found that a number of songs would trigger a reset of the iPod. This happened most reliably with songs downloaded from the iTunes Plus version of George Harrison's "All Things Must Pass" album. The song would display brie