On Mon, Apr 30, 20074:26 PM, the following words from Rick Lecoat [EMAIL PROTECTED], emerged from a plethora of SPAM ...
>It's a puzzler, no doubt about it. >I've tried both my earlier script and the one you kindly supplied, >putting each at the top of the filter list with the settings that you >specified. I also tried each one with the following: > >Act on: Incoming mail >Condition = attachment size > 0k >Action = execute Applescript >[DO pass this message to subsequent filters]. > >Act on: Incoming mail >Condition = Always >Action = execute Applescript >[DO pass this message to subsequent filters]. > >(Actually I had never noticed the Applescript option as a filter >*condition* before. How does that work? I mean, how is 'Applescript' a >true or false condition?) > >In each case, I got the same result: if I *deactivated* the filters >further down the list that move the attachment into a folder other than >the default attachment folder, then both the scripts would run fine. But >if any filters further down the list *did* move the attachment then the >scripts would fail (silently). > >CheshireKat, did any of your subsequent filters *move* the attachments >that the script was acting upon? If they did and the script still runs >okay then there may be something specific to my setup. > >I think that some clarification from CTM would be useful here, because >it would appear that we (the users) are misunderstanding the way >Applescript and PM interact in this instance. > >Rick >-- >G5 2GHz x2 :: 2GB RAM :: 10.4.7 :: PM 5.5.2 :: 3 pane mode > >-- >Original message: >Received from cheshirekat on 27/4/07 at 05:07 > >>I don't know what else to suggest to you. I have been testing the script >>I sent for several days. I haven't had any problems and the few files I >>have received have the appropriate text in the comments. The other >>filters continue to work on messages that have attachments. >> >>I placed the filter at the very top of my filter lists - before all >>other filters with the below criteria. >> Condition - AppleScript/Mark Attachment Comments >> Filter incoming messages - checked >> Actions - no action >> Don't apply subsequent filters to this message - UNchecked >> >>I'm using PowerMail version 5.5.3 build 4480 English (intel) > Well, are you really using PM version 5.5.2 instead of 5.5.3? (I don't know that would cause problems for scripts in filters, but you never know.) Is there a reason you haven't upgraded? Do your filters that move attachments, move the attachments to a different volume, drive or external drive? My scripts that act on attachments always move the attached files. If it's spam, it is moved to the trash. If it's attached from a mailing list, it goes in the trash, if it's from certain people who like to continually forward garbage, it goes in the trash. But the ones that get moved to another folder, same volume/drive instead of the trash aren't bothered by the script either. I haven't tried to move them to another volume/drive because I can see a potential for a problem with slower drives. I would not attempt it on my slow PowerBook with USB 1.1 and 4500 rpm nearly full drives, unless I wanted email retrievals to be nearly an all day event. Your G5 should process the scripts quickly so I wouldn't imagine there would be a bottleneck in timing conflicts with the filters. It isn't a very lengthy script after all. PowerMail is so fast retrieving email that it almost seems that it couldn't possibly be filtering the messages (I have many many filters!) but I'd have major troubles with my email if filters weren't working. At least on my new Mac Pro - the old PowerBook was a different story. But I did check each time that my attachment script worked and that attachments were moved by other filters. I even sent attachments to myself from other email accounts when testing. Both scripts, as far as I can tell, tested for the existence of attachments for each message, so there would be no need for a filter that calls the AppleScript to test for the existence of attachments as well. At least, that makes sense to me, but I don't know anything absolute when it comes to scripts in PM's filters. Actually, I only skimmed the other script because I knew I had one similar. How often do you check your email? Are you having to filter a ton of messages at once, or frequent checks, so there are only a few messages retrieved with each check? Do you have any other scripts running in filters? Are you using SpamSieve? What about permissions? Did you check permissions on the folders your attachments get moved to? No. that couldn't be the problem, else the attachments wouldn't get moved whether or not the script was used. Where in the hierarchy did you place the script in the script folder? I put mine in a subfolder within the "Apply To Selected Messages" folder. We have a home network. I can try the script on my PowerBook, assuming I don't have to shut down my Mac Pro because of licensing with two copies of PowerMail. I've had problems with other apps that don't like the same serial number on more than one computer on the network, so I avoid using my PB for anything internet related. (I try to abide by license agreements, but it takes a while to make sure everything transfers okay moving to a new computer.) But, I'm curious, so I might shut things down later and see what happens with the script on the PB. Well, my husband just brought me a beer, so I probably won't make sense shortly and I can't think of anything else to suggest or ponder. We've been fighting a nasty flu for several weeks so I'm in the mood for a beer, even though I don't normally drink beer. (Tastes horrible if it isn't a hearty stout.) It's not yet noon here, but hopefully the beer will last long enough for me to play one of the games I bought to enjoy the fast new Mac with. Well, it wasn't yet noon when I started drinking. ;-) -- Music, like religion, unconditionally brings in its train all the moral virtues to the heart it enters, even though that heart is not in the least worthy. - Jean Baptiste Montegut * MAC PRO 2 GHz Quad Xeon * OS X 10.4.9 * 3 GB RAM *