🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #126461

[Dialog] Playing a sound on arrival of new email

#126461
From: foxidrive
Date: Mon, 16 Jun 2003 11:52
46 lines
2623 bytes
My question was:

>>1) Can Dialog play a sound on arrival of new email?

And I was given this good advice:
 
>      not directly, but it's possible with scripting. marcus has
>      posted a solution on news.software.readers, so you might want
>      to google it up. look for "dialog" and "sound".

I found the thread at:
http://groups.google.com.au/groups?hl=en&lr=&ie=UTF-8&threadm=1kl6t78iexk8.
18aietz27qbn.dlg%4040tude.net&rnum=2&prev=/groups%3Fq%3Dnews.software.reade
rs%2Bdialog%2B%2522play%2Bsound%2522%26hl%3Den%26lr%3D%26ie%3DUTF-8%26selm%
3D1kl6t78iexk8.18aietz27qbn.dlg%254040tude.net%26rnum%3D2

but I cannot get sound to play on arrival of email.

I successfully compiled the playsound function and a command to play a wav
file into a message script, so that's working.

The instruction from Marcus that I didn't quite follow was this:

"Make sure you generate MsgIDs with Dialog that are based on your domain"
(...and then use this OnXover event script)

Can someone please shed some light on this for me?

My script follows:

===[start]===
program OnXover;
function PlaySound( Filename: PChar; Options: LongWord ): Boolean;
         external 'sndPlaySoundA@winmm.dll stdcall';
procedure OnXover(Var XoverData:TXoverData);
begin
 if pos('what goes here?',xoverdata.references)>0 then 
 PlaySound( 'c:\Progra~1\Internet\40TUDE\mail.wav', 1 );
end;
begin
end.
===[end]===

Thanks.
Technical Details
Message-ID: <q5f3iedat56r$.dlg@abc.def>
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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news1.optus.net.au!optus!news.optus.net.au!53ab2750!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <q5f3iedat56r$.dlg@abc.def>
Subject: [Dialog] Playing a sound on arrival of new email
Date: Mon, 16 Jun 2003 11:52:25 GMT
From: foxidrive <foxidrive@Shotmail.com>
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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!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.100
X-Original-Trace: 16 Jun 2003 21:52:24 +1000, 203.221.130.100
Lines: 45
NNTP-Posting-Host: 203.194.27.1
X-Complaints-To: abuse@comindico.com.au
X-Trace: news.optus.net.au 1055764345 203.194.27.1 (Mon, 16 Jun 2003 21:52:25 EST)
NNTP-Posting-Date: Mon, 16 Jun 2003 21:52:25 EST
Organization: Comindico Australia - reports relating to abuse should be sent to abuse@comindico.com.au