Hello Stefano,

On Wednesday, February 27, 2002 at 6:07:01 PM you wrote in
msgid:[EMAIL PROTECTED] (at least in part):

SZ> Is possible to STOP to download a message IF it contains a
SZ> special filename ?

No.

The only checks that can be done _before_ downloading a message are
these done on 'header' of message as a MUA can request the POP3-server
via 'TOP <MSG#> 0' command to send only headers of message <MSG#>.
In headers it is not known if there's an attachment named 'XYZ.exe' or
whatever pattern you'll search for.

IF the MUA tells the server to send the message there's no possibility
in POP3-protocol specifications to interrupt the transfer.

Even 'TOP <MSG#> 100' will not be a real solution, albeit it would
send not only headers but first 100 lines of body too, because you
can't be sure the attachment-filename you want to match on can be in
line 101 ...

So the only work-around is to set The Bat! up for not fetching mails
bigger than e.g. 20k and leave messages on server for let's say ...
3-5 days. This way you'll get a message "there's a bigger mail on
server", it wont be deleted before it's 3..5 days old and you can
fetch it or delete it from server with help of mail dispatcher.
Of course the mail dispatcher also can't tell if there's a special
named attachment in that bigger message, but maybe the sender
information help you to decide if you're awaiting an attachment or
not.

Ciao Pit
-- 
Regards
Peter Palmreuther                            mailto:[EMAIL PROTECTED]
(The Bat! v1.54 Beta/44 on Windows 2000 5.0 Build 2195 Service Pack 2)

Early to bed and early to rise, 
and you'll never find out where the action is.


-- 
______________________________________________________
Archives   : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to