Article View: news.software.readers
Article #129818Re: [Dialog] autocheck email
From: 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.
Technical Details
Message-ID:
<uziucxsmje4s.jujig4mqqmzj.dlg@40tude.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!priapus.visi.com!news-out.visi.com!petbe.visi.com!news1.optus.net.au!optus!news.optus.net.au!53ab2750!not-for-mailReferences:
<1otmr82u413kb.1v2r7k05577ey.dlg@40tude.net>Show Full Headers
Complete Article Headers
Message-ID: <uziucxsmje4s.jujig4mqqmzj.dlg@40tude.net> Subject: Re: [Dialog] autocheck email Date: Thu, 31 Jul 2003 12:57:44 GMT From: foxidrive <foxidrive@Shotmail.com> References: <1otmr82u413kb.1v2r7k05577ey.dlg@40tude.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!priapus.visi.com!news-out.visi.com!petbe.visi.com!news1.optus.net.au!optus!news.optus.net.au!53ab2750!not-for-mail Newsgroups: news.software.readers MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit User-Agent: 40tude_Dialog/2.0.5.1 X-Original-NNTP-Posting-Host: 203.221.130.235 X-Original-Trace: 31 Jul 2003 22:57:43 +1000, 203.221.130.235 Lines: 66 NNTP-Posting-Host: 203.194.27.1 X-Complaints-To: abuse@comindico.com.au X-Trace: news.optus.net.au 1059656264 203.194.27.1 (Thu, 31 Jul 2003 22:57:44 EST) NNTP-Posting-Date: Thu, 31 Jul 2003 22:57:44 EST Organization: Comindico Australia - reports relating to abuse should be sent to abuse@comindico.com.au