Re: Idea for better handling of mailinglists
Re: Idea for better handling of mailinglists
- Subject: Re: Idea for better handling of mailinglists
- From: Florian Lindner <email@hidden>
- Date: Sat, 1 Dec 2007 18:25:18 +0100
Am 01.12.2007 um 17:27 schrieb Michelle Steiner:
On Dec 1, 2007, at 4:16 AM, Florian Lindner wrote:
So far perfectly correct. What I want to omit is the creation of a
rule for each mailinglist.
Why? That's what rules are for. Apple has given you a perfectly
good tool for the task, but it appears that you want to use a
screwdriver where a hammer would be more appropriate?
Well, I want the tool which makes me finish the task as fast as
possible.
To create a rule I need to:
- Show all the headers in order to extract the value of the List-Id
header
- Create a new folder for the list
- Go to Mail's settings, create a rule that matches List-Id is equal
to the previously extracted content and moves the message to
appropiate folder.
I need to repeat this for each mailing list I am subscribed to.
If I want to remove the list from Mail completely I need to remove the
folder and then remove the rule.
With the script I have in mind it would be:
- Create a folder with the same name as the list.
and the removal would just involve removal of the folder.
For me that sounds a lot easier, regardless whether it's a hammer or a
screwdriver.
The on-the-fly creation of folders based on the List-Id header
would be also an idea to consider.
Did you try the script I posted? As I said, it would require a bit
of tweaking to get it to work on the fly instead of from a selection.
I've looked into it and with the help of your script and some other
ressources I have created a script which sould work but not does:
using terms from application "Mail"
on perform mail action with messages
tell application "Mail"
repeat with messageIter in messages
set listID to content of (header "List-Id") of messageIter
repeat with mailboxIter in mailboxes
if listID contains name of mailboxIter then
set mailbox of messageIter to mailboxIter
end if
end repeat
end repeat
end tell
end perform mail action with messages
end using terms from
So far it just does nothing at all and I don't know why. What is the
best way to debug such a script? Is there a command which pops up an
inline debugger when the script is executed by Mail? Anyway... I'm
open to any suggestions!
Regards,
Florian
-- Michelle
--
"I'll see that when I believe it"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden