Article View: news.software.readers
Article #145889Re: ReplyToAll
From: Barry Jones
Date: Wed, 07 Apr 2004 03:10
Date: Wed, 07 Apr 2004 03:10
66 lines
3317 bytes
3317 bytes
On Mon, 05 Apr 2004 21:47:33 GMT, Barry Jones wrote:
> I'm working on a ReplyToAll script, and could use some help. I'm not a
> Delphi person. I borrowed code (incorrectly) from Marcus' and Ingo's
> ScriptChangeHeader. I used Message.count, which is not recognized. Can
> someone help out up to this point? I'll continue when this much works.
>
I reworked the code a bit. It compiles, but needs work. I've introduced a
variable Message:TStringlist, but I don't know how to initialize it. Any
ideas? Thanks.
........................................................................
Program ReplyToAll;
var i:integer;
ToggleCount:integer;
s:string;
ToField:string;
CcField:string;
FoundTo:boolean;
FoundCc:boolean;
Message: TStringlist;
Begin
//Initialize
ToField:='';
CcField:='';
FoundTo:=False;
FoundCc:=False;
i:=0;
ToggleCount:=0;
while ((ToggleCount<2) and (FoundTo=false) and (FoundCc=false)) do
Begin
ADo('ShowHeaders'); //Since this is a toggle, and I don't know what
//the state is, I do this a maximum of twice.
while (i<(Message.count-1)) do
Begin
s:=Message.strings[i];
if s='' then break; //only scan through headers
//(not sure why this works)
if ((s[0]='T') and (s[1]='o') and (s[2]=':')) then
//should use a substring statement
Begin
ToField:=s;
FoundTo:=True;
End
if ((s[0]='C') and (s[1]='c') and (s[2]=':')) then
Begin
CcField:=s;
FoundCc:=True;
End
End
End
ADo('ReplyByEmail');
//Just trying to see if the data can be put in the message first.
//If this works, I'll put them in the appropriate header fields
writeln(ToField);
writeln(CcField);
End.
....................................................................
Thanks for any help. If this is the wrong forum, please direct me
elsewhere.
--
Barry
Technical Details
Message-ID:
<362c3a50106104ef94159161df790163@news.teranews.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.20140922.mbox.gz!number1.nntp.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!66.150.105.61.MISMATCH!newsfeed-west.nntpserver.com!hub1.meganetnews.com!newsfeed-east.nntpserver.com!nntpserver.com!news.teranews.com!not-for-mailReferences:
<b70dde1e55024cc003cf7ffed855b414@news.teranews.com>Show Full Headers
Complete Article Headers
Message-ID: <362c3a50106104ef94159161df790163@news.teranews.com>
Subject: Re: ReplyToAll
Date: Wed, 07 Apr 2004 03:10:28 GMT
From: Barry Jones <bjones01@acm.org>
References: <b70dde1e55024cc003cf7ffed855b414@news.teranews.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.20140922.mbox.gz!number1.nntp.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!66.150.105.61.MISMATCH!newsfeed-west.nntpserver.com!hub1.meganetnews.com!newsfeed-east.nntpserver.com!nntpserver.com!news.teranews.com!not-for-mail
X-Abuse-Report: abuse@teranews.com
Lines: 66
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.10.1 (0f608ac8.239.278)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-face: e2NTUmwcx%.Md4?`$1jU@-!vtxbi{zN[q/+?#"<w*A8,NY71x\r^GqcZZwXuVFu.oU/YWTK
Mt0N?81V\}A,3,D^A-0+@PwfIy4KK07gxIu=&)mj$*<O8`%&FQ`2oy>6:s8w&sb**YH*);
D%K{h4+I B?2ro{%\t*%O