Re: The Bat! help needed (tweaking way how to get e-mails)

2004-07-11 Thread Marck D Pearlstone
Dear Heldon,

@11-Jul-2004, 14:03 +0300 (11-Jul 12:03 UK time) HELDON said:

... snip

 When first mail is received i need that mail to be deleted from
 mailserver immediately, and when its done, only then to start
 downloading second mail. When second mail is received i need
 delete it from mailserver immediately too, and only then start
 download mail Nr.3, and so on..

 So, is there any way to do it in The Bat! ?

Only manually, using the message dispatcher.

-- 
Cheers -- //.arck D Pearlstone --List moderator and fellow end user
TB! v2.12 RC/3 on Windows XP 5.1.2600 Service Pack 1
'

pgpWwVGmgrUE6.pgp
Description: PGP signature

Current version is 2.11.02 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Re: The Bat! help needed (tweaking way how to get e-mails)

2004-07-11 Thread Plan9
Sunday, July 11, 2004, 7:03:01 AM, HELDON wrote:

H Problem is that i need The Bat! working in following order:
H When first mail is received i need that mail to be deleted from
H mailserver immediately, and when its done, only then to start downloading second
H mail. When second mail is received i need delete it from mailserver
H immediately too, and only then start download mail Nr.3, and so on..

I did a quick experiment and this seems to be the order that TheBat
retrieves and deletes messages for me on a POP account.
C: RETR 1
S: +OK  octets
   Message
C: RETR 2
S: +OK  octets
   Message
C: DELE 1
S: +OK
C: RETR 3
S: +OK  octets
   Message
C: DELE 2
S: +OK
C: RETR 4
S: +OK  octets
   Message
C: DELE 3
S: +OK
C: RETR 5
S: +OK  octets
   Message   
C: DELE 4
S: +OK
C: RETR 6
S: +OK  octets
   Message
etc
C: DELE N-1
S: +OK
C: DELE N
S: +OK
C: QUIT

So it sort of does what you want, but one message behind.  Don't know
if this is by design or accident.
   
-- 
Regards,
 Plan9
I honestly think it is better to be a failure at something you love
 than to be a success at something you hate. - George Burns



Current version is 2.11.02 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re: The Bat! help needed (tweaking way how to get e-mails)

2004-07-11 Thread Thomas Fernandez
Hello Plan9,

On Sun, 11 Jul 2004 10:18:37 -0400 GMT (11/07/2004, 21:18 +0700 GMT),
Plan9 wrote:

H Problem is that i need The Bat! working in following order:
H When first mail is received i need that mail to be deleted from
H mailserver immediately, and when its done, only then to start downloading second
H mail. When second mail is received i need delete it from mailserver
H immediately too, and only then start download mail Nr.3, and so on..

P I did a quick experiment and this seems to be the order that TheBat
P retrieves and deletes messages for me on a POP account.
[...]
P C: DELE N-1
P S: +OK
P C: DELE N
P S: +OK
P C: QUIT

P So it sort of does what you want, but one message behind.  Don't know
P if this is by design or accident.

I think the one message behind is by design.

But the DELE command doesn't delete the message, it only flags it for
deletion. The deletion will be executed on the server when the QUIT
command is received. TB only sends commands to the server, it cannot
change the server's standard behaviour.

What is the purpose of having the mails deleted before quiting? Just
curious.

-- 

Cheers,
Thomas.

Moderator der deutschen The Bat! Beginner Liste.

Wer fuer alles offen ist, kann nicht ganz dicht sein.

Message reply created with The Bat! 2.12 RC/3
under Chinese Windows 98 4.10 Build  A 
using a Pentium P4 1.7 GHz, 256MB RAM





Current version is 2.11.02 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re: The Bat! help needed (tweaking way how to get e-mails)

2004-07-11 Thread Plan9
Sunday, July 11, 2004, 10:36:48 AM, Thomas wrote:

TF But the DELE command doesn't delete the message, it only flags it for
TF deletion. The deletion will be executed on the server when the QUIT
TF command is received.

You are correct.  This heightened my curiosity about POP3 protocol.  A
quick Google search found:  http://www.networksorcery.com/enp/protocol/pop.htm
with pointers to several pertinent RFCs for the curious.

TF TB only sends commands to the server, it cannot change the
TF server's standard behaviour.

Thank goodness.  :-)

-- 
Regards,
 Plan9  :plan9:
It is all right to decorate construction
but never construct decoration  --Pugin



Current version is 2.11.02 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html