LSTSRV-L Archives

LISTSERV Site Administrators' Forum

LSTSRV-L

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
David Rosenthal <[log in to unmask]>
Wed, 21 Apr 2010 06:01:57 -0400
text/plain (36 lines)
Have other sites that upgraded to 16.0 had questions from their list owners about the new format of the WELCOME file. 

 The web docs for templates say:
Note: As of LISTSERV 16.0, the old *WELCOME* and *FAREWELL*
  templates are obsolete. You can continue using any existing
  *WELCOME* and *FAREWELL* templates, but if you want to take
  advantage of the new HTML mail templates, you should copy
  the existing content to the new WELCOME and FAREWELL templates.

In fact, the old $listname.welcome file shows up as "Obsolete" in the web interface, which is confusing my list owners.

Has anyone written a script to migrate the old $listname.welcome file to a ">>> WELCOME" template in $listname.mailtpl

What problems would you anticipate if this happened:
if the $listname.welcome exists
       a) make sure that the old $listname.welcome file does not have any lines beginning with ">>>" or "." as those can mess up the keywords in the mailtpl file.  If that is the case, either log an error, or better yet from my perspective, change those charachters to something else like a "-"
       b) if the $listname.mailtpl file does not exist, then create a blank file.
       c) confirm that there is not already a ">>> WELCOME" template in the $listname.mailtpl file.
       d) Append the following to the end of the $listname.mailtpl file
 
>>> WELCOME 
.* Your old welcome file has been imported into this new format.  If you would like to add HTML
.* remove the .FO OFF and .FO ON sections, and add any HTML that you would like to the file.
.CS iso-8859-1
.SE SECTION TOP
.IM TEMPLATESTYLE
.* Remove formatting to preserve the old welcome file spacing and appearance
.FO OFF
$listname.welcome file goes here
.* Turn back on formatting
.FO ON
.SE SECTION BOTTOM
.IM TEMPLATESTYLE
 
The script could ask you what charset you wanted to use and replace iso-8859-1 with that charset.

ATOM RSS1 RSS2