Thread View: news.software.readers
3 messages
3 total messages
Started by Sanjay Goel
Thu, 31 Jul 2003 12:41
[Dialog] autocheck email
Author: Sanjay Goel
Date: Thu, 31 Jul 2003 12:41
Date: Thu, 31 Jul 2003 12:41
6 lines
1092 bytes
1092 bytes
Hi, I am new to Dialog. I am using it as an email client for my pop3 acc. Can dialog automatically fetch email after every lets say 20 min? TIA Sanjay
Re: [Dialog] autocheck email
Author: Gandalf il Grigio
Date: Thu, 31 Jul 2003 12:56
Date: Thu, 31 Jul 2003 12:56
11 lines
1624 bytes
1624 bytes
news.software.readers ~ 31/7/2003, 14.41 ~ Sanjay Goel: > Can dialog automatically fetch email after every lets say 20 min? Yes. Check out Wiki at http://www.40tude.com/dialog/wiki/index.php :) -- Farewell! ~~~ ICQ#16553733 ~ 40tude Dialog http://snurl.com/dialog G ~~~ PbEM basato su FATE ~ scrivi a hitman<at>despammed.com Now on air: Brandy - What about us?
Re: [Dialog] autocheck email
Author: foxidrive
Date: Thu, 31 Jul 2003 12:57
Date: Thu, 31 Jul 2003 12:57
67 lines
2895 bytes
2895 bytes
On Thu, 31 Jul 2003 18:11:47 +0530, Sanjay Goel wrote:
> Hi,
> I am new to Dialog. I am using it as an email client for my pop3 acc.
> Can dialog automatically fetch email after every lets say 20 min?
> TIA
> Sanjay
Under settings>scripting>scripting in the Event script tab add these 3
scripts. They handle Newsgroups as well as Email and script 3 is only
necessary if you want to play a .WAV file when your email arrives.
// script 1: under event script: Onstartup
program OnStartup;
procedure OnStartup;
begin
ADo('GetNewHeadersInSubscribedGroups'); //Gets Usenet headers at startup
ADo('GetNewEmailsForAllIdentities'); //checks mail at startup
timer1.interval:=60000*5; //every 5 minutes
timer1.enabled:=true;
end;
begin
end.
// end script 1
// script 2: under event script: OnTimer1
program OnTimer1;
procedure OnTimer1;
begin
ADo('GetNewHeadersInSubscribedGroups'); //Gets Usenet headers
ADo('GetNewEmailsForAllIdentities'); //Gets Email
end;
begin
end.
// end script 2
// script 3: under event script: OnEmailChecked
program OnEmailChecked;
function PlaySound( Filename: PChar; Options: LongWord ): Boolean;
external 'sndPlaySoundA@winmm.dll stdcall';
procedure OnEmailChecked(Identity:string; FetchedCount,
TotalOnServerBefore, TotalOnServerAfter: integer);
begin
//If mail then play wav
if fetchedcount=0 then exit;
PlaySound( 'c:\Progra~1\Internet\40TUDE\mail.wav', 1 ); //Play WAV sound
end;
begin
end.
// end script 3
Change the path and filename for the .WAV file you want to play, above.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads