/* Mailman Folder/icon script */
/* Originally by sehh@altered.com */
/* Altered by ted@os2ports.com */

call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
dir=directory()

rc=SysCreateObject('WPFolder',,
'Mailman 2.0.13',,
'<WP_DESKTOP>',,
'OBJECTID=<MMFLDR>;'||,
'ALWAYSSORT=YES;',,
'Update' )

rc=SysCreateObject('WPProgram',,
'Site Password',,
'<MMFLDR>',,
'EXENAME=CMD.EXE;'||,
'PARAMETERS=/c bash -c "./mmsitepass";'||,
'STARTUPDIR='||dir||'\bin;'||,
'ICONFILE='||dir||'\icons\mm.ico;'||,
'OBJECTID=<PASSMM>',,
'Update' )

rc=SysCreateObject('WPProgram',,
'Edit New Members List',,
'<MMFLDR>',,
'EXENAME=E.EXE;'||,
'PARAMETERS=add;'||,
'STARTUPDIR=\unixos2\home\mailman\data;'||,
'NOAUTOCLOSE=yes;'||,
'OBJECTID=<EDITMM>',,
'Update' )

rc=SysCreateObject('WPProgram',,
'Add New Members List',,
'<MMFLDR>',,
'EXENAME=CMD.EXE;'||,
'PARAMETERS=/c bash -c "./add_members -n /unixos2/home/mailman/data/add [Listname]";'||,
'STARTUPDIR='||dir||'\bin;'||,
'NOAUTOCLOSE=yes;'||,
'ICONFILE='||dir||'\icons\mm.ico;'||,
'OBJECTID=<ADDMM>',,
'Update' )

rc=SysCreateObject('WPProgram',,
'Check DB',,
'<MMFLDR>',,
'EXENAME=CMD.EXE;'||,
'PARAMETERS=/c bash -c "./check_db [Listname]";'||,
'STARTUPDIR='||dir||'\bin;'||,
'NOAUTOCLOSE=yes;'||,
'OBJECTID=<CHECKDBMM>',,
'Update' )

rc=SysCreateObject('WPProgram',,
'List Lists',,
'<MMFLDR>',,
'EXENAME=CMD.EXE;'||,
'PARAMETERS=/c bash -c "./list_lists";'||,
'STARTUPDIR='||dir||'\bin;'||,
'NOAUTOCLOSE=yes;'||,
'ICONFILE='||dir||'\icons\mm.ico;'||,
'OBJECTID=<LISTLISTSMM>',,
'Update' )

rc=SysCreateObject('WPProgram',,
'Add MailList',,
'<MMFLDR>',,
'EXENAME=CMD.EXE;'||,
'PARAMETERS=/c bash -c "./newlist";'||,
'STARTUPDIR='||dir||'\bin;'||,
'ICONFILE='||dir||'\icons\mm.ico;'||,
'NOAUTOCLOSE=yes;'||,
'OBJECTID=<NEWLISTMM>',,
'Update' )

rc=SysCreateObject('WPProgram',,
'Remove MailList',,
'<MMFLDR>',,
'EXENAME=CMD.EXE;'||,
'PARAMETERS=/c bash -c "./rmlist [Listname]";'||,
'STARTUPDIR='||dir||'\bin;'||,
'NOAUTOCLOSE=yes;'||,
'ICONFILE='||dir||'\icons\mm.ico;'||,
'OBJECTID=<REMLISTMM>',,
'Update' )

rc=SysCreateObject('WPProgram',,
'Edit Remove Members List',,
'<MMFLDR>',,
'EXENAME=E.EXE;'||,
'PARAMETERS=remove;'||,
'STARTUPDIR=\unixos2\home\mailman\data;'||,
'OBJECTID=<EDITREMMM>',,
'Update' )

rc=SysCreateObject('WPProgram',,
'Remove Members List',,
'<MMFLDR>',,
'EXENAME=CMD.EXE;'||,
'PARAMETERS=/c bash -c "./remove_members -f /unixos2/home/mailman/data/remove [Listname]";'||,
'STARTUPDIR='||dir||'\bin;'||,
'NOAUTOCLOSE=yes;'||,
'ICONFILE='||dir||'\icons\mm.ico;'||,
'OBJECTID=<REMMM>',,
'Update' )

rc=SysCreateObject('WPProgram',,
'List Regular Members',,
'<MMFLDR>',,
'EXENAME=CMD.EXE;'||,
'PARAMETERS=/c bash -c "./list_members -r [Listname]";'||,
'STARTUPDIR='||dir||'\bin;'||,
'NOAUTOCLOSE=yes;'||,
'ICONFILE='||dir||'\icons\mm.ico;'||,
'OBJECTID=<LISTREGMM>',,
'Update' )

rc=SysCreateObject('WPProgram',,
'List Digested Members',,
'<MMFLDR>',,
'EXENAME=CMD.EXE;'||,
'PARAMETERS=/c bash -c "./list_members -d [Listname]";'||,
'STARTUPDIR='||dir||'\bin;'||,
'NOAUTOCLOSE=yes;'||,
'ICONFILE='||dir||'\icons\mm.ico;'||,
'OBJECTID=<LISTDIGMM>',,
'Update' )

rc=SysCreateObject('WPProgram',,
'Dump DB',,
'<MMFLDR>',,
'EXENAME=CMD.EXE;'||,
'PARAMETERS=/c bash -c "./dumpdb [Filename]";'||,
'STARTUPDIR='||dir||'\bin;'||,
'NOAUTOCLOSE=yes;'||,
'OBJECTID=<DUMPDBMM>',,
'Update' )

rc=SysCreateObject('WPProgram',,
'README.os2emx',,
'<MMFLDR>',,
'EXENAME=E.EXE;'||,
'PARAMETERS='||dir||'\README.os2emx;'||,
'ICONFILE='||dir||'\icons\text.ico;'||,
'OBJECTID=<OS2EMXMM>',,
'Update' )

rc=SysCreateObject('WPProgram',,
'README',,
'<MMFLDR>',,
'EXENAME=E.EXE;'||,
'PARAMETERS='||dir||'\README;'||,
'ICONFILE='||dir||'\icons\text.ico;'||,
'OBJECTID=<READMEMM>',,
'Update' )

rc=SysCreateObject('WPProgram',,
'Configuring Apache',,
'<MMFLDR>',,
'EXENAME=E.EXE;'||,
'PARAMETERS='||dir||'\Apache-Mods.txt;'||,
'ICONFILE='||dir||'\icons\book.ico;'||,
'OBJECTID=<APACHEMM>',,
'Update' )

rc=SysCreateObject('WPProgram',,
'FAQ',,
'<MMFLDR>',,
'EXENAME=E.EXE;'||,
'PARAMETERS='||dir||'\FAQ;'||,
'ICONFILE='||dir||'\icons\text.ico;'||,
'OBJECTID=<FAQMM>',,
'Update' )

rc=SysCreateObject('WPProgram',,
'gnu-COPYING-GPL',,
'<MMFLDR>',,
'EXENAME=E.EXE;'||,
'PARAMETERS='||dir||'\gnu-COPYING-GPL;'||,
'ICONFILE='||dir||'\icons\text.ico;'||,
'OBJECTID=<GPLMM>',,
'Update' )

rc=SysCreateObject('WPProgram',,
'Mailman Website',,
'<MMFLDR>',,
'EXENAME=netscape.exe;'||,
'PARAMETERS=http://www.gnu.org/software/mailman/index.html;'||,
'ICONFILE='||dir||'\icons\net.ico;'||,
'OBJECTID=<WEBSITEMM>',,
'Update' )

