*This message was transferred with a trial version of CommuniGate(tm) Pro*
I have a couple of filter/script combinations to deal with these.
<applescript>
--multiple attachments
tell application "PowerMail 5.1.1a1"
set theMessages to current messages
repeat with msg in theMessages
if (count of attachments of msg) > 1 then
set filter criterion result to false
else
set filter criterion result to true
end if
-- display dialog filter criterion result as text
end repeat
end tell
</applescript>
<applescript>
--attachment subject same
tell application "PowerMail 5.1.1a1"
set theMessages to current messages
repeat with msg in theMessages
if (name of attachments of msg) = (subject of msg) then
set filter criterion result to true
else
set filter criterion result to false
end if
end repeat
end tell
</applescript>
<applescript>
--signature attachment
property sigs : {"signature.asc", "smime.p7s"}
tell application "PowerMail 5.1.1a1"
set theMessages to current messages
repeat with msg in theMessages
repeat with attach in attachments of msg
repeat with sig in sigs
if ((name of attach) = (sig as string)) then
set filter criterion result to true
return
else
set filter criterion result to false
end if
end repeat
end repeat
end repeat
end tell
</applescript>
There are 3 filters in a row using combinations of these AppleScripts.
Filters are:
Strip Sig 1
Conditions:
Other-Field... 'Content-Type' contains 'multipart/signed'
AppleScript 'Multiple Attachments'
All conditions are met
Actions:
Move attachments to trash
Strip Sig 2
Conditions:
Other-Field... 'Content-Type' contains 'multipart/mixed'
AppleScript 'Multiple Attachments'
AppleScript 'Attachment Subject Same'
All conditions met
Actions:
Move attachments to trash
Strip Sig 3
Conditions:
Other-Field... 'Content-Type' contains 'multipart/mixed'
AppleScript 'Multiple Attachments'
AppleScript 'Signature Attachment'
All conditions met
Actions:
Move attachments to trash
The only inherent limitation is that if an attachment, other than the sig
is present then nothing is trashed and the sig will have to be trashed
manually. If there were the ability to have boolean groupings of the
conditions I could combine the last 2 filters.
So far this method works for me.
--
Andy Fragen
On Wed, Dec 29, 2004, Sean McBride said:
>On a related subject, browsing my attachments folder reveals hundreds of
>files with names like:
> PGP.sig
> signature.asc
> smime.p7s
>
>As I understand it, these are digital signature files. I have been told
>that other mail clients handle these specially somehow and that their
>attachments folder are not cluttered with these things. Anyone know
>anything about that?