Changeset 1608


Ignore:
Timestamp:
Aug 8, 2011, 1:29:58 AM (14 years ago)
Author:
John Small
Message:

Ticket 462: Additional NNTP-related fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ReleaseTool.cmd

    r1605 r1608  
    11621162   cfg.SMTP.0     = 0
    11631163   cfg.FTP.keys   = 'DESCRIPTION COMMAND HOST USERID PASSWORD DIRECTORY FILE'
    1164    cfg.NNTP.keys  = 'DESCRIPTION COMMAND HOST USERID PASSWORD TO FROM SIGNATURE NEWSGROUPS'
     1164   cfg.NNTP.keys  = 'DESCRIPTION COMMAND HOST USERID PASSWORD TO FROM SIGNATURE'
    11651165   cfg.SMTP.keys  = 'DESCRIPTION COMMAND HOST USERID PASSWORD PORT TO FROM SIGNATURE UTCOFFSET'
    11661166
     
    18661866         when option = 'T' then
    18671867            do
    1868                b4_timestamp = SysGetFileDateTime(tempfile)
     1868               b4_timestamp = SysGetFileDateTime(body_file)
    18691869               say 'The current body of the newsgroup message will now be loaded into an editor.'
    18701870               say 'Make desired changes, if any, and save the file.'
     
    18731873               call SysGetKey
    18741874               say
    1875                call ExecCmd cmd.editor tempfile
    1876                if b4_timestamp \= SysGetFileDateTime(tempfile) then
     1875               call ExecCmd cmd.editor body_file
     1876               if b4_timestamp \= SysGetFileDateTime(body_file) then
    18771877                  _text = '<Modified>'
    18781878            end
     
    18931893            say
    18941894            say 'Host     :' cfg.NNTP.s.host
    1895             say 'To       :' cfg.NNTP.s.newsgroups
     1895            say 'To       :' cfg.NNTP.s.to
    18961896            say 'From     :' cfg.NNTP.s.from
    18971897            say 'UserID   :' cfg.NNTP.s.userid
     
    19201920                  do
    19211921                     say 'Enter a comma=separated list of newagroup(s) (followed by the ENTER key).'
    1922                      cfg.NNTP.s.newsgroups = linein()
     1922                     cfg.NNTP.s.to = linein()
    19231923                  end
    19241924               when option = 'F' then
     
    19791979                     _command = part1 || cfg.NNTP.s.from || part2
    19801980                  end
    1981                   do while pos('##NEWSGROUPS##', _command) > 0
    1982                      parse var _command part1 '##NEWSGROUPS##' part2
    1983                      _command = part1 || cfg.NNTP.s.newsgroups || part2
     1981                  do while pos('##TO##', _command) > 0
     1982                     parse var _command part1 '##TO##' part2
     1983                     _command = part1 || cfg.NNTP.s.to || part2
    19841984                  end
    19851985                  rcx = ExecCmd(_command)
     
    20952095                     end
    20962096                     rc = SockSend(socket, 'From:' cfg.NNTP.s.from || cfg.crlf || ,
    2097                                            'Newsgroups:' cfg.NNTP.s.newsgroups || cfg.crlf || ,
     2097                                           'Newsgroups:' cfg.NNTP.s.to || cfg.crlf || ,
    20982098                                           'Subject:' cfg.NNTP.subject || cfg.crlf || ,
    20992099                                           'User-Agent:' cfg.user_agent || cfg.crlf || ,
     
    23682368      say '   Requesting that Netlabs move the uploaded file.'
    23692369      say '   Email notifications of the release (to lists and/or individuals).'
    2370       say '   Newsgroup notifications of the release (to vraious newsgroups).'
     2370      say '   Newsgroup notifications of the release (to various newsgroups).'
    23712371      say
    23722372      say "Enter the first letter of the activity to configure or..."
Note: See TracChangeset for help on using the changeset viewer.