source: trunk/ReleaseTool.tmp@ 1823

Last change on this file since 1823 was 1823, checked in by John Small, 10 years ago

Tecket #539: Updated comments to encourage use of the "Full name" <user@…> format for FROM addresses

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