For filters that involve a number of email addresses I use groups in
the Apple Address Book rather than individual email addresses within
filters.
For example selecting: Sender’s Group Membership -> Is Equal to -> Friends
Where Friends is a group I created in Address book and added everyone
who I wish to be subject to this filter.
Much less tedious!
Not exactly an answer to your question, but I hope it helps.
Cheers Ollie
--
@ollicle
>Thanks, I appreciate that. But it doesn't address what I'm trying to
>do... I suppose I'm trying to see if there's a way to export the
>contents of my filter - i.e., the email addresses contained inside my
>individual filters - so I can more easily copy and paste them into new
>filters / mailboxes.
Looking over Mailsmith's AppleScript dictionary, I don't see any
way to access information about individual filters. In
particular, there is no 'filter' element, nor are there any
properties for filter criteria. AppleScript wouldn't necessarily
be the only way to approach this, but given that there's nothing
relevant in the AS dictionary, it looks like there probably is
not a way to programmatically get at the data you want.
>On Jan 2, 1:46 pm, Oliver Boermans <boerm...@gmail.com> wrote:
>>On 2 January 2012 20:12, jprint714 <jesp...@gmail.com> wrote:
>>
>>>Is there an easy way in which I can copy and past all of the email
>>>addresses assigned to my individual mailbox filters? I'm wondering if
>>>there's an easier solution to copying an pasting each selected address
>>>in the filters (which would be incredibly time-consuming and tedious
>>>work!). Even just exporting the email address associated w/ the
>>>filters would be an enormous help! Thanks very much...
>>
>>For filters that involve a number of email addresses I use groups in
>>the Apple Address Book rather than individual email addresses within
>>filters.
>>For example selecting: Sender’s Group Membership -> Is Equal to -> Friends
>>Where Friends is a group I created in Address book and added everyone
>>who I wish to be subject to this filter.
>>Much less tedious!
>>
>>Not exactly an answer to your question, but I hope it helps.
>>Cheers Ollie
>>--
>>@ollicle
--
Christopher Bort
<top...@thehundredacre.net>
> Looking over Mailsmith's AppleScript dictionary, I don't see any way to access information about individual filters. In particular, there is no 'filter' element, nor are there any properties for filter criteria. AppleScript wouldn't necessarily be the only way to approach this, but given that there's nothing relevant in the AS dictionary, it looks like there probably is not a way to programmatically get at the data you want.
It's been years since I looked at Mailsmith code, but I have vague recollection that filters are stored both as impenetrable blobs, _and_ a property list.
Take a peek at
~/Mail/Mailsmith User Data/Mail Filters.mailfilters
and see if it has what you need.
> Ok, thanks... So is the only recourse then to simply copy all
> individual email addresses contained in one filter, and then paste
> them into another...? Man, I really, REALY hope there's another
> way... This will take a ton of (tedious) time an energy.
You asked if there was a way to get a list of addresses out of a filter.
What is it you really want to do?
Depending on how you are using your filters, you could try retrieving
a list of email addresses from the contents of your mailboxes.
Presuming they reflect the filters associated with them. Might provide
a means to at least get the addresses out. Recreating the filters
using them would remain a task.
>Is there an easy way in which I can copy and past all of the email
>addresses assigned to my individual mailbox filters? I'm wondering if
>there's an easier solution to copying an pasting each selected address
>in the filters...
Drag "~/Mail/Mailsmith User Data/Mail Filters.mailfilters" to BBEdit
in the dock, copy the whole contents and paste it into a new
document. Save this on the Desktop as "mailfilters" using UTF-8
encoding and Unix(LF) line breaks.
In a new BBEdit window paste the following script:
#!/usr/bin/perl
use strict;
my $filters = "$ENV{HOME}/desktop/mailfilters";
open my $fh, $filters or die $!;
while (<$fh>){
m~(<string>)(.+\@.+?)(</string>)~ and print "$2\n";
}
This should give you a list of all the email addresses.
JD