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
Mon, 9 Oct 2017 18:42:57 -0400
text/plain (62 lines)
Stop the LISTSERV process. This step is CRITICAL. The LISTSERV process
MUST remain STOPPED for the duration.

Make sure you have a really really good backup of all your list files.

Use the LISTVIEW command line utility to create a plain-text copy of
each list file. Be sure to get the entire file. Be sure the LISTVIEW
output does NOT replace the list file.

Make sure the LISTSERV process is still stopped.

Run your script to make updates to each plain-text copy.

Make sure the LISTSERV process is still stopped.

Make another really really good backup of all your list files.

Delete all the list files. Rename all the plain-text copies to the
original list file name.

Start the LISTSERV process. It will notice that the list files are in
plain-text format and convert them back to internal binary format.

The conversion activity may take a while, depending on how many lists
you did this to, be patient.

If it all blows up, remember you made at least two really really good
backups of all your list files. And of course you tested your script
several times before starting this on a live server.


ALTERNATE method, safer but more complex to implement:

Script an email to GET a list header, make updates as needed, then
generate and send an email with the PUT command and the updated header.


On 10/9/2017 5:42 PM, Lawrence Finch wrote:
> I’m thinking about it. My first idea was a Linux SED script, but that won’t work as the list headers are not text files. Plan B is to export the list headers to text, run that SED script, and then load them back. But I haven’t figured out how to do that yet. Anyone have a bright idea?
>
> Larry
>
>> On Oct 9, 2017, at 4:49 PM, Mills, Douglas <[log in to unmask]> wrote:
>>
>> Hey all,
>>
>> So, we’ve recently discovered an issue and have gotten the fix from L-SOFT that needs to be applied to the headers of all of our Lists.
>>
>> The problem is that we have over 10,000 lists … is there an easy way to mass-add this value to headers that doesn’t include going through each of them manually?
>>
>> Thank You In Advance!
>>
>> Douglas E. Mills
>>

############################

To unsubscribe from the LSTSRV-L list:
write to: mailto:[log in to unmask]
or click the following link:
http://peach.ease.lsoft.com/scripts/wa-PEACH.exe?SUBED1=LSTSRV-L&A=1

ATOM RSS1 RSS2