Filter to extract and delete message with no attachments.

Post Reply
pdxsam
Posts: 1
Joined: Tue Mar 25, 2003 10:52 pm

Filter to extract and delete message with no attachments.

Post by pdxsam »

Alex,

I'm trying to create a filter that would select all headers without attachments and get rid of them. In th filter editor the message
choices all predicate on "are". There's no way that I can see to
specify that messages have no attachments to them.

It would be valuable to have that since I usually go by hand in
binary groups and delete all the headers without attachments for
a better view of what's there.

Possible to add this?

Sam
alex
Posts: 4549
Joined: Thu Feb 27, 2003 5:57 pm

Post by alex »

You cannot tell whether a message has attachment or not but it is possible to make a good approximation.

For example to include:

1. all partial messages (the last part can be of any size, so at least for kill filters it is needed)

2. all non-partial messages with the number of lines less than a certain number

3. include all subjects containing .nfo,.sfv,.zip etc.

the filter would be like that:

messages are partial, apply to all, select

lines > 100, apply to unselected, select

subject contains ".nfo|.sfv|.zip|.m3u|\(1/1\)", apply to unselected, boolean wildmat, extract

if I missed something you can add more conditions.
you can also apply the filter as initial filter or through edit menu->message filter - without deleting non-matching headers.
Post Reply