home *** CD-ROM | disk | FTP | other *** search
- exit
-
- /* this requires logfunctions.avm */
-
- loadMailbox: procedure expose mailbox.
- if arg() ~= 1 then do
- rc = "loadMailbox: bad args"
- signal error
- end
-
- mailbox. = ''
- parse arg mailbox
-
- handle = 'mailboxconfig'
- opened = open(handle, mailboxDir(mailbox) || 'mailbox.cfg', 'r')
- if opened then do
- do while ~eof(handle)
- line = readln(handle)
- parse upper var line variable '=' value
- mailbox.variable = value
- end
- call close(handle)
- end
- return
-
- /* pass a handle here */
- saveMailbox: procedure expose mailbox.
- if arg() ~= 1 then do
- rc = "saveMailbox: bad args"
- signal error
- end
- parse arg mailbox
-
- handle = 'mailboxconfig'
- opened = open(handle, mailboxDir(mailbox) || 'mailbox.cfg', 'w')
-
- if opened then do
- call writeln(handle, 'PASSWORD=' || mailbox.password)
-
- call writeln(handle, 'AUTOFAXFORWARDB=' || mailbox.autofaxforwardb)
- call writeln(handle, 'AUTOFAXFORWARD=' || mailbox.autofaxforward)
- call writeln(handle, 'AUTOFAXFORWARDSCRIPT=' || mailbox.autofaxforwardscript)
-
- call writeln(handle, 'AUTOFORWARDB=' || mailbox.autoforwardb)
- call writeln(handle, 'AUTOFORWARDONDEMAND=' || mailbox.autoforwardondemand)
- call writeln(handle, 'AUTOFORWARD=' || mailbox.autoforward)
- call writeln(handle, 'AUTOFORWARDSCRIPT=' || mailbox.autoforwardscript)
-
- call writeln(handle, 'AUTOPAGEB=' || mailbox.autopageb)
- call writeln(handle, 'AUTOPAGEONDEMAND=' || mailbox.autopageondemand)
- call writeln(handle, 'AUTOPAGE=' || mailbox.autopage)
- call writeln(handle, 'AUTOPAGESCRIPT=' || mailbox.autopagescript)
-
- call writeln(handle, 'AUTOALERTB=' || mailbox.autoalertb)
- call writeln(handle, 'AUTOALERTONDEMAND=' || mailbox.autoalertondemand)
- call writeln(handle, 'AUTOALERTSCRIPT=' || mailbox.autoalertscript)
-
- call close(handle)
- end
-
- return
-