Go Back   MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 9, 2012, 05:43 PM   #1
st.len
macrumors newbie
 
Join Date: Nov 2012
Mac Mail Rule: Matching sender to a text file list

The short: I'm looking for a solution that will allow me to flag mail messages based on the from: field by matching them with addresses in a text file (NOT address book)

The long: I'm a college coach. I'm inundated with hundreds of emails a week from potential recruits. The vast majority of these aren't legit, but those that are are very important that I reply to asap. I'm trying to find a solution where I can whitelist a certain set of email addresses so that they are highlighted in my mailbox so that I can respond to them quickly. While this can be accomplished easily enough using mail rules and whether they are located in my address book, I would need to add hundreds of contacts to my address book - contacts that serve no purpose other than being "whitelisted".

An alternate solution would be to add them individually under a rule in mac mail (and this may be the route I go). While this would save me from having too many cards in address book, it still is a bit time consuming to add them - and I would prefer to have them stored in a text or some other easily accessed file (I have experience building FileMaker databases, so part of the process that I haven't detailed here would be to create this whitelist text file through FM as part of a larger process).

I've wasted today looking through spam filters, mail add-ons, AppleScripts and Automator task, to no avail. I'm thinking an AppleScript would be the most likely answer, but I've had no luck in my searches (everything returns how to trigger an AppleScript in rules, not how to make an AppleScript rule). Any help pointing me in the right direction or thinking outside the box would be greatly appreciated.
st.len is offline   0 Reply With Quote
Old Nov 9, 2012, 08:43 PM   #2
kryten2
macrumors 6502a
 
Join Date: Mar 2012
Location: Belgium
You can take a look at the example Mail scripts. In Snow Leopard you can find them in the Library-->Scripts-->Mail Scripts folder. Perhaps the Remove Messages From Sender or Thread script can point you in the right direction.
Attached Thumbnails
Click image for larger version

Name:	Screen shot 2012-11-10 at 02.41.58.png
Views:	17
Size:	143.7 KB
ID:	376206  
__________________
Space Corps Directive 34124
kryten2 is offline   0 Reply With Quote
Old Nov 9, 2012, 09:38 PM   #3
BrianBaughn
macrumors 68020
 
Join Date: Feb 2011
Location: Baltimore, Maryland
Who's your email provider? In Gmail you can write and import filters to sort mail.
__________________
Brian Baughn
Baughn Consulting
Baltimore, MD
BrianBaughn is offline   0 Reply With Quote
Old Nov 10, 2012, 10:49 AM   #4
Weaselboy
macrumors P6
 
Weaselboy's Avatar
 
Join Date: Jan 2005
I have an idea using the built in Address Book that will do what you want and not clutter up your Address Book.

Create a new Address Book group On my Mac and call it "recruiting"... then import all the address there. In the mail sidebar set it up to only show your main Address Book and not the new recruit one. Have the mail rule look for messages that are a member of the "recruiting" group and move to a folder or whatever you want.
Weaselboy is offline   0 Reply With Quote
Old Nov 14, 2012, 01:55 PM   #5
st.len
Thread Starter
macrumors newbie
 
Join Date: Nov 2012
Thanks all.

@kryten I've taken a look at your scripts. You're right - they do offer some of the functionality I'm looking for. I just don't know if I'm equipped now to handle modifying something of that complexity. Any threads you know of that detail comparing text strings in AppleScript?

@BrianBaugn It's through our work, so no gmail.

@WeasleyBoy I'm not following how I would go about not displaying a group in my Address Book. My biggest concern with address book is syncing to my phone.
st.len is offline   0 Reply With Quote
Old Nov 14, 2012, 02:03 PM   #6
Weaselboy
macrumors P6
 
Weaselboy's Avatar
 
Join Date: Jan 2005
Quote:
Originally Posted by st.len View Post
@WeasleyBoy I'm not following how I would go about not displaying a group in my Address Book. My biggest concern with address book is syncing to my phone.
Keep your personal addresses in the normal iCloud section of the Address Book, then add the new ones to the On my Mac area. The On my Mac ones will not sync over iCloud and will not show on iOS devices. You can just select the main iCloud group in the OS X address book and your will only see those.
Weaselboy is offline   0 Reply With Quote
Old Nov 14, 2012, 09:36 PM   #7
kryten2
macrumors 6502a
 
Join Date: Mar 2012
Location: Belgium
Quote:
@kryten I've taken a look at your scripts. You're right - they do offer some of the functionality I'm looking for. I just don't know if I'm equipped now to handle modifying something of that complexity. Any threads you know of that detail comparing text strings in AppleScript?
Take a look at the Operators paragraph in the text Class Reference on this page : https://developer.apple.com/library/...-CH1g-BBCIAHJF
__________________
Space Corps Directive 34124
kryten2 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
mail.app: sender's name but no address JBsea Mac Applications and Mac App Store 2 Jul 22, 2013 10:29 AM
iPhone: Mail app [no sender] e-mails MathijsDelva iOS 6 0 Feb 19, 2013 03:44 PM
Mail app with sort by sender / subject option? jrbdmb iPhone and iPod touch Apps 0 Jan 1, 2013 12:32 PM
Why Do My Text Messages Say the Name of the Sender Now? opeepingtomo iOS 6 8 Dec 3, 2012 01:39 PM
tweak to hide sender name for text in lock screen heov Jailbreaks and iOS Hacks 9 Aug 10, 2012 09:08 PM

Forum Jump

All times are GMT -5. The time now is 04:56 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC