Is it possilbe to set up a Mail Rule keying off X-Apparently-To: ?

I've been getting some junk mail in which the To: field is different from the "X-Apparently-To: ". Is there any way I can set up a rule to move such mail to my Junk mail folder?
Is there any way to set up a rule that moves all mail going to a particular X-Apparently-To: address to Junk?
Thanks
MacMini - 1.42   Mac OS X (10.4.7)  

Guess I'll have to learn applescript.
You will probably find it useful to check out the scripts supplied with Mail for examples of how to use Applescript with Mail's rules. A very convenient way to do this is to enable the Script menu, which also gives you access to many other Apple-supplied scripts.
Once enabled, to view a script from in the menu rather than run it, hold down the option key when you select it & it will open in the Script Editor application.
You should also be aware of the AppleScript Discussions forum as a great resource for help with learning AppleScript or solving specific script issues.
iMac G5/2.0 GHz 17" ALS (Rev B)   Mac OS X (10.4.8)   512 MB, Kensington Trackball

Similar Messages

  • Cannot set field in mail rule

    Hi - I have been trying to set the following rule in Mail:-
    For any email older than 30 days then move mail to mailbox XXX.
    I set the parameters correctly and save the rule, but everytime it reverts the value from 30 days to 7 days, i.e. if I rep-open the rule in the preferences then it says 7 days rather than 30 days.
    Any idea what's wrong?

    Keep in mind that most of the code for all the apps was re-written for Snow Leopard, so I am hoping things like that were just overlooked and will be corrected eventually as people point them out. But, that might be getting too close to speculation, so that's as much as I'll comment.

  • Mail rule switches off / stops working repeatedly

    Hi,
    I have a simple rule set to move messages with a certain subject directly to the trash folder. After setting it up, it processes as expected but after a while it un-sets the trash folder back to "Choose folder". So it doesn't send the mails to the trash any more.
    Any ideas how I could solve that?
    Thanks,
    Brian

    Try this:
    http://www.macstories.net/news/configure-an-icloud-email-account-on-snow-leopard /
    I'm kinda in the same boat...my iPhone 4s (that is through my work) and my home iMac, iPad are running the latest OS so not an issue...however my MacBook for work (which also has my iTunes library on it) is still running Snow Leopard.
    The fix about did the trick...and it's still loading them all, but it looks like it's bringing in all my stored emails that i'd been using since I created my .Mac account years and years ago.
    Hope it helps!
    Joshua

  • Setting up mail rules on icloud

    I have just migrated from mobileme to icloud - a scary exercise which seems to require quite a lot of tidying up.  Here are some questions relating to using mail.
    This is what I would like to happen:
    1.  When I read a message for the first time - whether on my Mac, iPad or iPhone, I want it to be moved to a number of mailboxes I have set up (or to trash).
    2.  When I read the same message later on one of the two other devices, I would like to see it mark as read and filed in the appropriate mailbox
    3.  When I send a message or reply (on any of the three devices) I would like my message to be moved to an appropriate mailbox, rather than remain in Sent.
    4.  When I set up a mail rule on iCloud I would like the same versatility as on my current Mac mail rules, with interaction between the rule and the address book, ability to have boolean rules with lots of either/or/and components.  For example, on my Mac I have a rule moving all messages from anyone in my Family group in the Address book to a mailbox called 'family'.  I have a rule which says if the subject contains x and if the sender is y then move the message to mailbox z. I have another invaluable rule which moves any message from a sender not in my Address book to trash.  Once a day I skim through trash to pick up any messages which should not be there and then can empty the remainder with one click.
    So--
    1-3  Am I right in saying these can be done?  (I'm not sure whether the To: rule works - if it does, that is an improvement over the Mac mail rules).
    4.  The mail rules on iCloud seem incredibly limited compared with those on Mac Mail.  Am I missing something?  How for example do I set up the three examples I have given?  (A related question - can Trash be moved to iCloud and how does it get emptied.)
    Sorry for this collection of questions.  What I wanted from iCloud was that I can continue to manage my email in boxes and trash, as at present, and that when I am away from base and my iMac, I see all my past correspondence for the year, and that I dont have to housekeep mail three times on the three devices.  I do hope this will be possible and appreciate anyone pointing me towards tips/answers to my requirements.

    Yeh thats where they make the big bucks.... we have managed up until not to share apps, either a 2nd account or my wife just goes without the cloud
    I'm still confused as to how i can setup my [email protected], can i have both the iPad & iPhone on the same @me.com email address. Dis regarding the 2nd phone at the moment. presume i had [email protected] on both ipad & iphone i should receive emails at both devices

  • Help setting up mail rules

    I have an iMac (main computer for storing emails/set to remove Mail from server when read) and a MacBookAir (set to leave messages on server/used for checking and sending emails out of the office). I was Bcc'ing to myself messages sent from the MacBookAir, so that when I get mail from my iMac, my mail rules sort the message into various project folders etc.
    The problem is I quite often forget to Bcc myself.
    Can anyone tell me if & how to set up a mail rule on the MacBookAir that will automatically resend me any messages in my sent box. Iv'e set up a Rule to 'if Date sent less than 7 days, redirect mail to XYZ'. I tried applying Rules to the Sent folder but nothing happens. If there is a better/automatic way to get rules applied to Sent messages, please also let me know!

    I have an iMac (main computer for storing emails/set to remove Mail from server when read) and a MacBookAir (set to leave messages on server/used for checking and sending emails out of the office). I was Bcc'ing to myself messages sent from the MacBookAir, so that when I get mail from my iMac, my mail rules sort the message into various project folders etc.
    The problem is I quite often forget to Bcc myself.
    Can anyone tell me if & how to set up a mail rule on the MacBookAir that will automatically resend me any messages in my sent box. Iv'e set up a Rule to 'if Date sent less than 7 days, redirect mail to XYZ'. I tried applying Rules to the Sent folder but nothing happens. If there is a better/automatic way to get rules applied to Sent messages, please also let me know!

  • Problem with Mail Rule

    I am trying to set up a mail rule that triggers an Applescript. The Applescript will open all attachments with Preview in this case. I know the rule is being triggered because I have two actions for the rule, run the Applescript and Make a sound, and I hear the sound.
    Here is the script:
    using terms from application "Mail"
    on perform mail action with messages theMessages
    tell application "Finder" to set pathToAttachments to (path to desktop folder as string)
    tell application "Mail"
    repeat with theMessage in theMessages
    set theText to content of theMessage
    if theMessage's mail attachments is not {} then
    repeat with theAttachment in theMessage's mail attachments
    set theFileName to pathToAttachments & (theMessage's id as string) & space & theAttachment's name
    try
    save theAttachment in theFileName
    on error errnum
    end try
    tell application "Preview" to open theFileName
    tell application "Finder" to delete theFileName
    end repeat
    end if
    end repeat
    end tell
    end perform mail action with messages
    end using terms from
    (* tell application "Mail"
    set myMessages to selection
    tell me to perform mail action with messages myMessages
    end tell
    If I comment out the stub at the bottom, and run the script, it runs perfectly all the time.
    If I select the e-mail in question and trigger using *Apply Rules*, the script runs some of the time.
    I have yet to get the script to trigger on newly arriving e-mails.
    The rule is checked and I haven't found a +Apply Rules to Incoming Emails+ check box. I thought that happen automatically. Anyone have any ideas on what is going wrong or further ways I could debug it?

    Testing your script, I found that, in the few cases where it didn't work well, I could have it work properly with the following modification:
    *tell application "Preview" to open theFileName*
    *delay 1*
    *tell application "Finder" to delete theFileName*
    It should also be possible to replace *delay 1* with something better, like *repeat while … end repeat*.
    Hope it can help.

  • Applescript process message body from mail rule help please

    Would someone be kind enough to help me figure out how to do this?  I've been reading for hours on other posts and I can't get this to work.
    Here is an example:
    I would like to set up a mail rule to run an applescript that searches the body of the email for "-Front Door- Open".  I then want to parse the body and sets myDevice= "-Front Door-" and myState="Open".  After I have these variables set, I want to make an call to something like https://foo.me.com/api/token/${state.accessToken}/smartapps/installations/${app.id}/Notify?device=${myDevice}&type=ContactSensor&state=${myState}
    I understand how to do the mail rule, I just can't figure out the applescript part of it.

    The script works just fine - at least, as designed if not as expected.
    When the script runs, Mail and/or AppleScript looks for a perform mail action handler. If that is found, the commands within are executed.
    If there is no perform mail action handler then the script is run as-is (i.e. as if you clicked 'Run' in AppleScript Editor).
    And that's exactly what's happening here. In the first case (that works) the script is running because there's no (visible) perform mail action handler.
    In the second case where it apparently doesn't work, there is a handler, so that handler is being executed. Any code outside that handler is ignored (unless it's called from within the perform mail action handler.
    Since your 'say' command is outside the handler, it is ignored. However, if you move it inside the perform mail action handler you'll hear your speech.

  • Should have said "I need Mail Rule help" .. sorry

    I know this has probably been solved many times and is old hat to a lot of you. I am trying to create an applescript that forwards only the body of an e-mail to my cell phone triggered from a Mail rule. It runs fine in the editor but not as a Mail rule. I may even want to restrict it to the first 200 characters. I've read that maybe I have to set up a sub routine but I don't know how to do that. I've spent way too much time trying to figure out why it won't work. I'm old and don't like wasting my precious time (lol) Any help would be appreciated. Here's the script. It's been put together with some I saw on the net. Thanking in advance.
    using terms from application "Mail"
    on perform mail action with messages theMsges
    tell application "Mail"
    repeat with AMessage in theMsges
    set theSelection to selection
    set theMessage to item 1 of theSelection
    set msgText to content of theMessage
    set newMsg to make new outgoing message with properties {subject:"test", content:msgText}
    tell newMsg
    make new to recipient at end of to recipients with properties {address:"my cell phome email address"}
    end tell
    end repeat
    send newMsg
    end tell
    end perform mail action with messages
    end using terms from
    using terms from application "Mail"
    on run
    tell application "Mail" to set sel to selection
    tell me to perform mail action with messages (sel)
    end run
    end using terms from

    bigredlions wrote:
    It runs fine in the editor but not as a Mail rule.
    I've seen posts on the Web that this ability was 'broken' with Leopard.
    You could just set up a Mail Rule to Forward incoming messages (however, the complete message will bb fwd, no way to limit to 200 characters.

  • RSS + Mail rules

    Hi,
    I subscribe to a RSS feed that links to free MP3s to download. Until recently, I was using Safari to monitor the feed but I found myself downloading just about every file. Inspiration struck the other day when I remembered that I can subscribe to RSS feeds in Mail as well. I thought I'd be able to set up a mail rule that would trigger an AppleScript that would download the linked songs.
    Well, I was half right. I can set up a mail rule that triggers an AppleScript when a new RSS article arrives, but it can't do anything with those articles. It keeps saying something like "Cannot access account "RSS"." That's not exact, btw. I'm not on my Mac right now and I don't remember the specific error.
    Is there any way to use AppleScript to extract information from an RSS article?
    I thought I could work around this limitation by forwarding the RSS articles to an email account and have the AppleScript work on them. Unfortunately, the "read more" link doesn't get forwarded and that's where this feed links to the MP3s. Is that normal?
    I'm about ready to give up and just run a shell script every 30 minutes. That's a lot more work on my part because I have to figure out which articles I've already seen on my own, but at least it would work.
    Are there any plans to update Mail's AppleScript to support RSS? Is there any way to make Mail include an RSS article's Read more link in forwarded RSS messages?

    Same problem here.

  • Mail rules are not applied to IMAP subfolders

    Hi
    I've set up a mail rule to run for 'Every Message' which runs an applescript of mine.
    The issue I have is that the script is only called for mail in the root of IMAP accounts and not mail in subfolders.
    I've searched google and the forums but cannot find any explanation. Can anybody here help?
    Thanks,
    Jason

    I should point out that the new mails in the sub folders were put there by a sieve script on the server.

  • I can't set up voice mail on my iphone 5s. And can't merge calls either

    I can't set up voice mail box on my iphone 5s .
    And I can't merge calls .

    Both of those functions are carrier dependent so you may want to contact your cellular carrier.

  • E72 - Unable to set up e-mail mailbox after firmwa...

    Hi all,
    I have a newly acquired E72-1 which has been updated to the latest firmware version 051.018.
    I'm trying to set up the e-mail function on my E72 but getting nowhere.
    I keep getting to the enter e-mail details/password etc page then…nothing. The mail box has not been set up, each and every time.
    From the home screen, I hit setup e-mail>start e-mail setup>start
    Then it asks ‘connection needed’ connect to: and I click yes and it shows ‘Preparing setup’…
    Then it shows a screen with all the e-mail services, from the top: Ovi Mail, Yahoo Mail, Google Mail, Windows Live, BT Internet, Mail for Exchange, Lotus Notes, Other
    From here, if you click on the various choices such as Gmail or windows live for Hotmail, you get the enter user name + password boxes…once these are filled in
    You get the detecting e-mail settings tab for a few seconds…then it reverts to the screen showing the e-mail services.
    I have tried this dozens & dozens of times without success…no mail boxes have been set up. It just cycles through the setup process each time.
    I have even done a Hard reset on the E72 and tried to set up e-mail after…with no luck.
    Any suggestions?? I have to say I’m getting very cheesed off as e-mail was the main reason to get the E72!!
    Has the Nokia Messaging service been switched off??
    Solved!
    Go to Solution.

    I came to this discussion because google indicated it when I searched 'nokia E72 unable to create mailbox'.
    'Unable to create mailbox' used to be a huge headache for me to use E72 for over one year and half. I tried to soft and hard reset the device, brought it to Nokia Care Point to spend 15 pounds to re-install the whole system, or call the customer service line again and again for a continuous one year, but the problem still existed. To be honest, I was not satisfied with Nokia customer services at all. The staff at the Nokia Care Point only cared about charging money. After the first re-instalation when the problem still existed, they said I had to pay more to process other checks. In terms of technicians from the customer service line, they were helpless. I called them again and again. Each time when I called, there was a different technicain, and I had to repeat the situation again and again. They only knew to suggest me do the basic reset, including to try *#7370# or to reset factory factory settings, which I had tried over hundreds times. They even used remote control application to install some remote app on my E72 and did some checks from their ends, but still it didn't help. When the technician realised he/she didn't have another method, they promised to call me back later, but they never did. I was so disappointed with their service. It took around an hour or longer each time I called. When the problem couldn't be fixed, I had to call again and repeat the problem from the beginning again to a new line advisor. It was so time and money consuming!!!! And what was the most annoying was that they were not helpful! After such torturing experience, the problem still existed! It was a frustrating and exhausting experience from 05.2011 to this year 06.2012... I gave up Nokia in the end, though it used to be my favourate phone.
    Sorry to make such a long complaint. I just want to provide a feedback to Nokia, so as to let them know that their poor service and products are losing former loyalty clients. 
    ===============================================
    Right, back to the problem, 'unable to create mailbox'. Finally, I figured out what the problem was. It was a conflict between the device E72 and network provider, O2, for my case.
    I am in the uk and use monthly contract of O2 sim card. The O2 network provides three kinds of data package: O2 Active, O2 Mobile network, and O2 Pay&Go. When I create mailbox or use Maps GPS, it access to the internet via O2 Par&Go by default, no matter how I set the priority of the connection destination. But when I changed the access point to O2 Active or O2 Mobile Network, the mailbox was able to be created and Maps app was able to recevie GPS data.
    So here is my solution.
    1) Hardset the device. Remember to backup all the data beforehand.
    The method is to press Shift+Space+Backspace together with the power button when the device is powered off. Press until the device is restarted and the main screen, normally it should be Nokia's two hands joined together image, is seen.
    2) Go to menu --> Ctrl. panel --> Settings --> Connection --> Destinations
    There, you will find all the access points.
    3) Go to Internet
    Hopefully you will have the same options as I do, O2 Active, O2 Mobile Web, and O2 Pay&Go
    Scroll to O2 Pay&go, click options, choose 'delete' to delete the O2 Pay&go option. (Don't worry to delete it, as the internet can be access to via the other two options without any problem.)
    4) Go back to Destinations, do the same to Multimedia msg, WAP services, and Intranet.
    Delete any O2 Pay&go options for these category.
    ===========================================================
    Then, your phone should be ready to set up mailbox and to use gps without any problem. That was what happened to my Nokia E72.
    Good luck!
    Now, I feel my E72 is so powerful after the push mail and GPS function is recovered. But still, I am not satisfied with Nokia's service and will definitely not try any other of its products. Nokia has lost my loyalty and I believe I am not the only one.

  • How to set up a mail server with a private DNS and relay over a public mail

    How to set up the mail server that we can send and pick up emails inside and outside?
    Our private network has the DNS name dnsname1.private.
    We have our privat DNS Server and he can forward requests to outside over our router.
    Our public emails are hosted by an internet provider. This dns name is dnsname2.com and dnsname2.org.
    How we have to set up our mail server that we can pick up our emails from our public dnsname2.com?
    And when we write an email how we have to set up it that the dnsname is dansname2.com and not dnsname1.private?

    If you want to move your mailservice to your own (internal) server, start by making sure you can recieve traffic on port TCP 25 (SMTP). Some ISPs blocks this port, especially on "non business" connections.
    Can you send mail from your LAN directly to where your mail is hosted using port 25 TCP or do you have to relay via your ISP?
    You have a static public IP?

  • I want to use Mac Mail for my work email address, which containts multiple outbound options (i.e. hr@, me@ etc). Is there a way to set up Mac Mail to have an account with multiple outbound addresses rather than adding in multiple accounts?

    I want to use Mac Mail for my work email address, which containts multiple outbound options (i.e. hr@, me@ etc). Is there a way to set up Mac Mail to have an account with multiple outbound addresses rather than adding in multiple accounts?

    This sounds like the age old problem with keychain & Safari. I don't know of a way to solve it without using something like 1Password.
    The iOS app has it's own built in browser, so it has more control over what gets autofilled. Safari on OS X has an 1Password extension that handles account selection & autofill etc.
    Keychain is great in principle, but it quickly falls down when you need tight integration with many ID's & different use cases (work, home etc).
    I'd suggest you submit feedback to Apple about your thoughts. I did so years ago about this issue & this is how far we have come (back to the point where me.com synced passwords) :^)
    http://apple.com/feedback/macosx.html
    Other tools like lastpass or keypassx may also help if you want to truly segregate password storage, but that doesn't fix autofill, the way around that issue is to dedicate one browser for work.

  • How can I set an e-mail address in business catalyst?

    I would like to know how I can set an e-mail address in business catalyst?

    So with the webBasics plan (5 included in creative cloud) I don't have any account.
    I have to upgrade my hosting plan in webBasics+
    Thank you Dave

Maybe you are looking for