Changeset 1588
- Timestamp:
- Jun 28, 2011, 1:49:33 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ReleaseTool.cfg
r1575 r1588 20 20 ; Section lines mark the start of a new set of data. The section 21 21 ; name (within the brackets) defines which type of data follows. 22 ; Initially ReleaseTool supports only two section names: FTP and NNTP.22 ; ReleaseTool currently supports section names: FTP, NNTP and SMTP. 23 23 24 24 ; FTP sections are used to define data for uploading one or more files … … 27 27 ; NNTP sections are used to define data for uploading messages to one 28 28 ; or more newsgroups on a single newsgroup server. 29 30 ; SMTP sections are used to define data for sending email messages 31 ; through a single email server. SMTP sections can be set up to use 32 ; an external program, like PMMail/2 or REXXMAIL, by defining an 33 ; appropriate command. If no command is defined then email is sent 34 ; using Releasetool's internal REXX code for opeing a socket to an 35 ; SMTP server, loggin in and sending the message. 29 36 30 37 ; 4) Data lines. These lines provide the actual data to ReleaseTool. … … 66 73 ; in the same directory as ReleaseTool. 67 74 ; NEWSGROUPS NNTP 1 A comma-separated list of newsgroups for this host. 75 ; PORT SMTP 5 Port number. Default: port 25 68 76 69 77 ; Codes: … … 72 80 ; 3: Required, one or more per section 73 81 ; 4: Optional, one or more per section 82 ; 5: Optional, one per section 74 83 75 84 ; "Special" key-values: … … 87 96 88 97 ; "From" notes: 89 ; - For newsgroups you may want to use a disgui ed email address to avoid spam.98 ; - For newsgroups you may want to use a disguised email address to avoid spam. 90 99 ; - Accepted formats: 91 100 ; "Full name" <user@domain.net> … … 121 130 122 131 [NNTP] ; ReleaseTool user's news server/groups definition 123 Newsgroups = comp.os.os2.apps,comp.os.os2.utilities124 ;Newsgroups = alt.test132 ;Newsgroups = comp.os.os2.apps,comp.os.os2.utilities 133 Newsgroups = alt.test 125 134 Host = 126 135 Userid = … … 134 143 ;Command = call d:\utils\internet\rexxmail\rexxmail /NewMessageSend "%%TO%% ?subject=%%SUBJECT%% &body=%%MESSAGE_BODY_FILE%%" /Address=%%FROM%% /SMTPServer=%%SERVER%% /SMTPUSER=%%USERID%% /SMTPPASSWORD=%%PASSWORD%% /TimeZone=%%UTCOFFSET%% 135 144 Host = smtp.toast.net 145 Port = 587 136 146 Userid = jsmall@toast.net 137 147 From = "John Small" <jsmall@os2world.net> -
trunk/ReleaseTool.cmd
r1586 r1588 744 744 do 745 745 say 746 call charout , 'Please enter the version (x.yy.z z) for the pending release: '746 call charout , 'Please enter the version (x.yy.z) for the pending release: ' 747 747 ver.in = linein() 748 748 end … … 766 766 ver.full = ver.major || '.' || ver.minor || '.' || ver.CSDlevel 767 767 ver.list = ver.major || '.' || right(ver.minor, 2, '0') || '.' || right(ver.CSDlevel, 2, '0') 768 ver.wpi = translate(ver. list, '-', '.')769 ver.tag = translate(ver. list, '_', '.')768 ver.wpi = translate(ver.full, '-', '.') 769 ver.tag = translate(ver.full, '_', '.') 770 770 return 771 771 … … 782 782 cfg.FTP.keys = 'HOST USERID PASSWORD DIRECTORY FILE DESCRIPTIVE_HOSTNAME' 783 783 cfg.NNTP.keys = 'HOST USERID PASSWORD FROM SIGNATURE NEWSGROUPS' 784 /* 784 785 cfg.SMTP.keys = 'HOST USERID PASSWORD FROM SIGNATURE COMMAND UTCOFFSET' 786 */ 787 cfg.SMTP.keys = 'HOST PORT USERID PASSWORD FROM SIGNATURE COMMAND UTCOFFSET' 785 788 786 789 cfg.NNTP.signature_preface = cfg.crlf || '-- ' || cfg.crlf … … 835 838 key_name = translate(strip(key_name)) 836 839 key_value = strip(key_value) 837 if left(key_value, 1) = '"' then840 if left(key_value, 1) = '"' & key_name \= 'FROM' then 838 841 parse var key_value '"' key_value '"' 839 842 select … … 1476 1479 call lineout tempfile, ver.full 'Changes:' 1477 1480 history_file = 'history' 1478 call stream history_file, 'c', 'close'1479 1481 do until left(history_line || 'xxx', 3) = ' o ' 1480 1482 history_line = linein(history_file) … … 1935 1937 end 1936 1938 1937 socket = ConnectToMailServer(cfg.SMTP.currentSMTP.host )1939 socket = ConnectToMailServer(cfg.SMTP.currentSMTP.host, cfg.SMTP.currentSMTP.port) 1938 1940 if socket < 0 then 1939 1941 do … … 2131 2133 2132 2134 ConnectToMailServer: procedure expose (globals) 2135 parse arg email_server_name, email_server_port 2136 if strip(email_server_port) = '' then 2137 email_server_port = 25 2138 2133 2139 myIPaddr = SockGetHostid() 2134 2140 rc = SockGetHostByAddr(myIPaddr, 'hoststem.') … … 2139 2145 end 2140 2146 cfg.myName = hoststem.name 2147 /* 2141 2148 rc = SockGetHostByName(cfg.SMTP.currentSMTP.host, 'hoststem.') 2149 */ 2150 rc = SockGetHostByName(email_server_name, 'hoststem.') 2142 2151 if rc = 0 then 2143 2152 do … … 2154 2163 inetaddr.family = 'AF_INET' 2155 2164 inetaddr.addr = serverIPaddr 2156 inetaddr.port = 252165 inetaddr.port = email_server_port 2157 2166 exit_rc = SockConnect(socket, 'inetaddr.') 2158 2167 end
Note:
See TracChangeset
for help on using the changeset viewer.