get all editors on all sites on server

Samuel Reynolds sam at SpinwardStars.com
Wed Feb 11 14:59:01 PST 2004


At 2004-02-11 11:37 AM -0500, you wrote:
>Is there an easy way to extract the email addresses of all of the editors
>of all sites on a server all at once? Need to notify them all of a
>service change..
>
>thanks.
>
>Bob

Not trivial, but not too bad.
The following script should do it.

- Sam
-----------------------------------------------
on listManagingEditors() {
         local {
                 entryAdr;
                 siteAdr;
                 allMEsList = {}};
         for entryAdr in @config.manila.sites {
                 siteAdr = entryAdr^;
                 if ! defined( siteAdr^ ) {
                         continue};
                 meList = siteAdr^.[ "#newsSite" ].sysopMail;
                 for item in meList {
                         if allMEsList contains item {
                                 continue};
                         allMEsList[0] = item}};
         return allMEsList};
msg( listManagingEditors() )

__________________________________________________________
Spinward Stars, LLC                        Samuel Reynolds
Custom Software and Web Development           303-805-1446
http://SpinwardStars.com/            sam at SpinwardStars.com 





More information about the Frontier-Users mailing list