Article View: news.software.readers
Article #153060Re: [Dialog] Action Item - notify application?
From: MLC
Date: Thu, 05 Aug 2004 14:33
Date: Thu, 05 Aug 2004 14:33
49 lines
2573 bytes
2573 bytes
mercoledì 04/ago/2004 _Copelandia Cyanescens_ in
<news:1qp56uceq0qwd$.dlg@x02x67invalid.net>:
[...]
> A "pseudo script" outline with the proper function names to scan
> incoming email Subject: headers would be great, but I could deal with
> just some pointers to what functions I need to be looking at too.
Hi,
if I understand well you might consider to use the OnBeforeSavingMessage
event, checking isEmail and the Subject.
Something of this kind:
program OnBeforeSavingMessage;
function GetMessageSubject(Message: TStringList): string;
var
i: integer;
begin
i:=0;
result:='';
while i < Message.count-1 do
begin
if pos('Subject:', Message.strings[i])>0 then break;
i:=i+1;
end; //while
result:=Message.strings[i];
end;
procedure OnBeforeSavingMessage(var Message: TStringlist;
Servername: string; IsEmail: boolean);
var
s: string;
begin
if IsEmail then
begin
s:=GetMessageSubject(Message);
if s:='***' then //change the *** with your Subject
FileExecute(0,'***','open','','',1,5);//change the *** with your program
end;
end;
begin
end.
HTH
--
Maria Luisa C - 05/08/2004 16.16.06
Technical Details
Message-ID:
<jjljgcrejrpz.dlg@ID-187316.user.uni-berlin.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!not-for-mailReferences:
<1qp56uceq0qwd$.dlg@x02x67invalid.net>Show Full Headers
Complete Article Headers
Message-ID: <jjljgcrejrpz.dlg@ID-187316.user.uni-berlin.de>
Subject: Re: [Dialog] Action Item - notify application?
Date: Thu, 5 Aug 2004 16:33:44 +0200
From: MLC <maluc52@yahoo.it>
References: <1qp56uceq0qwd$.dlg@x02x67invalid.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!not-for-mail
Newsgroups: news.software.readers
Organization: none
Lines: 49
Reply-To: mlcald@msn.com
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de j8iOuRX96emVfBa4gakwwgB2mFNWmGXSkRYB+oih/F8bb1KPhd
User-Agent: 40tude_Dialog/2.0.12.1it (9b558423.171.371)
X-Coord: Lat 44.317 N, Long 11.417 E
X-face: $5565tO5I&Ml1yV962Ei2n}3A4OrkQ!`#3w<#g]"0IW{:nT7"Q\Ps7Qr;
gUZMn]]aebqb^3 &WTZoh^D=0!Pb&Sr/S+(=2K; !; ^UWs1c'vPC`i;
=fk2<>yv@pbNe@23yQ<"iCZMhLD[syJ@+6IR'O~ _6)a\PizKXvLcAS)BVtL*q8T^OS;
iZ#2olr3j%l|0,zB|<r0Sh<l-.6f[[01(=?j/S2}rSIiHLi/su JRgk>t-WfOv/f,fhNz\K
X-URL: http://fido.altervista.org/index.php