source: trunk/ReleaseTool.tmp@ 1600

Last change on this file since 1600 was 1600, checked in by John Small, 14 years ago

Ticket 462: Major rework of SMTP, NNTP and configuration code.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 8.6 KB
RevLine 
[1600]1
2; $Id: ReleaseTool.tmp 1600 2011-07-23 11:56:16Z jbs $
3
4; This file is a sample of a file used by ReleaseTool to provide
5; various configuration data to ReleaseTool.cmd (RT).
6
7; The actual file used by RT is named ReleaseTool.cfg. This file
8; can be editted and saved with that file name.
9
10; This file contains extensive comments explaining the possible
11; configurations that can be made.
12
13; SYNTAX: ReleaseTool expects each line to be one of four types:
14; 1) Blank/empty lines (which are ignored)
15
16; 2) Comment lines. All text following a semicolon, ";", will be ignored.
17; Any line whose first non-blank is a semicolon, like this line, is
18; a comment line and will be ignored by ReleaseTool.
19
20; Section and data lines (below) can have end-of-line comments like
21; C++'s // comments EXCEPT that only the LAST semicolon on a data line
22; is considered the start of a comment. Any other semicolons on a data
23; line are considered part of the key_value.
24
25; 3) Section lines. Section lines are of the form:
26; [section-name]
27; Section lines mark the start of a new set of data. The section
28; name (within the brackets) defines which type of data follows.
29
30; Details for each section recognized by RT follow.
31
32; 4) Data lines. These lines provide the actual data to ReleaseTool.
33; The format of these lines is:
34; key-name = key-value
35
36; Leading and trailing whitespace are ignored.
37
38; Key-name's are case-insensitive. Key-values are case sensitive.
39
40; Within a section, data lines can be in any order except that DIRECTORY lines,
41; if any, must precede the FILE lines to which they apply.
42
43; Details for each data line recognized by RT follow.
44
45
46; SECTIONS : RT currently supports section names: FTP, NNTP and SMTP.
47; FTP
48; FTP sections are used to define data for uploading one or more files.
49; NNTP
50; NNTP sections are used to define data for uploading messages to one
51; or more newsgroups on a single newsgroup server.
52; SMTP
53; SMTP sections are used to define data for sending email messages
54; through a single email server.
55
56; DATA LINES
57
58; The following table lists the key-names recognized by ReleaseTool, the
59; sections to which they apply, a code (explained below) and a short description:
60
61; Key-name Sections Codes Description
62
63; DESCRIPTION FTP,NNTP,SMTP N N Text used by ReleaseTool to identify to the user the
64; section currently "in use" while RT runs.
65; COMMAND FTP,NNTP,SMTP N N An external command to run to perform the task.
66; (See COMMAND notes below!)
67; HOST FTP,NNTP,SMTP Y N The host name of the FTP/NNTP/SMTP server
68; PORT FTP,NNTP,SMTP N N Port number. If not set, standard defaults are used.
69; USERID FTP,NNTP,SMTP Y N The userid used to log in
70; PASSWORD FTP,NNTP,SMTP Y N The password used to log in.
71; TO NNTP,SMTP Y N NNTP: Comma-separated list of newsgroups
72; SMTP: Comma-separated list of addressees (email address(es))
73; FROM NNTP,SMTP Y N "From" email address
74; SIGNATURE NNTP,SMTP N Y Zero or more lines of "signature"
75; UTCOFFSET SMTP N N Offset from UTC/GMT (e.g. for EST, UTCOFFSET is -0500
76; (05 hours, 00 minutes before UTC)
77; DIRECTORY FTP N Y If a change directory command is needed before uploading
78; a file, then this key-value should be provided. If more
79; than one file is to be uploaded and they are to be uploaded
80; into different directories, precede each set of FILE lines
81; by an appropriate Directory line.
82; FILE FTP N Y The local name of a file to be uploaded. This should include
83; path info if the file is not in the same directory as RT.
84
85; Codes:
86; First code : This data can be set in the CFG file and optionally reset while RT runs.
87; Second code : Multiple lines of this data can be set within each section.
88
89; "Special" key-values:
90; PASSWORD
91; [Hobbes-email] : RT automatically replaces this with the email address from the Hobbes text file.
92; FILE
93; [Release-Zip] : RT automatically replaces this with FM/2 release zip filename.
94; [Hobbes-text] : RT automatically replaces this with Hobbes text filename.
95; [Release-Zip] and [Hobbes-text] can also be used as part of a COMMAND key_value
96
97; COMMAND notes:
98; - If no COMMAND is provided, RT will use internal code to perform the task.
99; - If a COMMAND is provided, all other keys for that section are optional.
100; - If multiple external commands are needed to perform a task, then either
101; - roll them into a CMD file and use COMMAND = call <cmdfile> <parameters>
102; - use "&&" to separate multiple commands run from a single command line. For example:
103; COMMAND = copy a b && copy c d
104; - COMMAND key values may include certain "macros". The syntax for these
105; macros is: ##macroname##. The macros recognized by RT are:
106; HOST, PORT, USERID, PASSWORD, TO, FROM, SUBJECT, UTCOFFSET and MESSAGE_BODY_FILE
107; With the exception of MESSAGE_BODY_FILE, the value for the macro comes from
108; the correspondingly-named key. MESSAGE_BODY_FILE, on the other hand, is replaced
109; with the name of a temporary file which is built by RT and holds all the text
110; of the message to be sent.
111; - NOTE: Not all keys currently have corresponding macros!
112; - NOTE: RT recognizes these macros only when they are relevant. For example,
113; TO is not relevant to FTP transfers so ##TO## would be ignored in an FTP COMMAND.
114; - NOTE: If macros are used, make sure the corresponding keys have values, via the CFG file
115; or during execution of RT. RT does not check that each macro has a setting.
116; - NOTE: If macros are used, keep in mind that their values will become part of a
117; commandline command. So certain characters may cause problems: " > < / - ^ & |
118
119; PASSWORD note: Instead of recording passwords in this file, you may prefer to provide them as RT runs.
120
121; TO/FROM note: Accepted email address formats:
122; "Full name" <user@domain.net>
123; <user@domain.net>
124; user@domain.net
125; If you plan to use the ##TO## or ##FROM## macros, then probably the third form would be the wisest choice
126; because the other two forms have characters which can cause problems when used on a command line.
127
128; FROM note: For newsgroups you may want to use a disguised/false email address to avoid spam.
129
130
131[FTP]
132Description = Netlabs
133Host = ftp.netlabs.org
134Userid =
135Password =
136Directory = /incoming/fm2
137File = [Release-zip]
138
139[FTP]
140Description = Hobbes
141Host = hobbes.nmsu.edu
142Userid = anonymous
143Password = [Hobbes-email]
144Directory = /pub/incoming
145File = [Hobbes-text]
146File = [Release-zip]
147
148[NNTP]
149Description = Newsgroup announcement(s) via eComstation news server
150Host = news.ecomstation.nl
151;Userid =
152;Password =
153To = ecomstation.apps
154From = zjsmallz@osworld.net
155Signature = John Small
156Signature = FM/2 Development Team
157Signature = (Remove z's for address)
158
159[NNTP]
160Description = Newsgroup announcement(s) via non-eComstation (i.e. "other") news server
161Host = ; ISP's or free news server
162Userid =
163Password =
164To = comp.os.os2.apps,comp.os.os2.utilities ; "alt.test" can be used for testing
165From = zjsmallz@osworld.net
166Signature = John Small
167Signature = FM/2 Development Team
168Signature = (Remove z's for address)
169
170[SMTP]
171;Command = G:\pmmail\bin\pmmsend -a G:\PMMail\Accounts\ygk_us0.act -t "##USERTD##" -s "##SUBJECT##" -m ##MESSAGE_BODY_FILE##
172;Command = call d:\utils\internet\rexxmail\rexxmail /NewMessageSend "##USERTD## ?subject=##SUBJECT## &body=##MESSAGE_BODY_FILE##" /Address=##FROM## /SMTPServer=##SERVER## /SMTPUSER=##USERID## /SMTPPASSWORD=##PASSWORD## /TimeZone=##UTCOFFSET##
173Host = smtp.toast.net
174;Port = 587
175Userid =
176Password =
177To = "FM/2 Developers" <fm2-dev@netlabs.org>,"FM/2 Users" <fm2-user@netlabs.org> ; <== Add other users/lists (separated by commas) as appropriate
178From =
179Signature = FM/2 Development Team
180UTCOffset = -0500
Note: See TracBrowser for help on using the repository browser.