Great, thanks Justin! I tested this on a few messages and for the most part it seems to work great. Here are a couple more caveats I noticed:
- if a message contains any deleted attachments, any other still- existing attachments will not be touched. - if an attachment has been already moved somewhere else on the filesystem (out of the default PM attachments folder), it will be nonetheless dutifully relocated back into the attachments folder. This is counter to what behaviour I would want. Probably a simple check for the attachment's current folder would alleviate this. - it might be cool if the names of the created subfolders were appended with e.g. the sender's e-mail address, and/or message date, to aid in quick management/cleanup from the finder. - if a future revision of PM would facilitate the proper behaviour when used as an incoming filter, that would be right fantastic. Unfortunately I am not adept enough with AS nor do I have the time right at the moment to try and implement these fixes myself, but I thought I would mention them in case anyone else is inclined. Great starting point though; I can see myself eventually using this regularly (particularly if it eventually works as an incoming filter)! -ben Justin Beek wrote at 1:55 PM (-0600) on 11/27/07: >Here it is. It does have some issues: > >On older versions of PowerMail, having it set as an outgoing rule might >crash PowerMail. > >And if you set it as a rule for all incoming, all the attachments will go >into a folder named "-1" (issue w/ Finder & Powermail). > >I just run it every few weeks to *fix* the folders from the "-1" to the >"correct" folder. > >Please be careful and test it before implementing. :) -- Ben Kennedy (chief magician) zygoat creative technical services http://www.zygoat.ca

