Article View: news.software.readers
Article #145824ReplyToAll
From: Barry Jones
Date: Mon, 05 Apr 2004 21:47
Date: Mon, 05 Apr 2004 21:47
59 lines
2994 bytes
2994 bytes
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.
Also, is there a way to put a string in a header field other than a char at
a time using Postkey?
.........................................................................
Program ReplyToAll;
var i:integer;
ToggleCount:integer;
s:string;
ToField:string;
CcField:string;
FoundTo:boolean;
FoundCc:boolean;
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
if (s[0]='T' and s[1]='o' and s[2]=':') then
//should use a substring statement instead
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.
...................................................................
Any help or coding style improvements is much welcomed.
--
Barry
Technical Details
Message-ID:
<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!nntp.giganews.com!in.100proofnews.com!in.100proofnews.com!news.maxwell.syr.edu!newsfeed-west.nntpserver.com!hub1.meganetnews.com!newsfeed-east.nntpserver.com!nntpserver.com!news.teranews.com!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <b70dde1e55024cc003cf7ffed855b414@news.teranews.com>
Subject: ReplyToAll
Date: Mon, 05 Apr 2004 21:47:33 GMT
From: Barry Jones <bjones01@acm.org>
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!nntp.giganews.com!in.100proofnews.com!in.100proofnews.com!news.maxwell.syr.edu!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: 59
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.10.1 (5293c7d4.28.485)
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