This is an old revision of the document!
The following lists commands that aid in administrating iMail, yet are not used extensively enough to warrant a menu item.
ADDJOBSCDE JOB(CLRIMAIL) CMD(STRQSH CMD('find /iMail/* -atime +1 -print | xargs rm')) FRQ(*WEEKLY) SCDDATE(*NONE) SCDDAY(*SUN) SCDTIME('04:00:00')
This command will clear all files in the /iMail directory that were last accessed 1 day or more ago. Please note that the /iMail directory specified above should match the iMail directory you are using, configured here . You will also need to specify a jobqueue for this scheduled job that works for your setup.
To upgrade to iMail 5.0, which is in library FMG and is integrated with the iDocs Suite, perform these steps:
CPYF FROMFILE(FMG/EMCFGDB) TOFILE(QGPL/EMCFGDB) FROMMBR(*FIRST) TOMBR(*FIRST) MBROPT(*REPLACE) CRTFILE(*YES)
This command migrates all the iMail settings, but also migrates the license keys.
CPYF FROMFILE(QGPL/EMCFGDB) TOFILE(FMG/EMCFGDB) FROMMBR(*FIRST) TOMBR(*FIRST) MBROPT(*UPDADD) CRTFILE(*NO) FROMRCD(*START) TORCD(*END) INCCHAR(ECDTAID 1 '@KEY')
Use the command REGISTER to delete any duplicates or unneeded keys.
If it does not read FMG then change it:
CHGDTAARA DTAARA(FMG/DSIMAILLIB *ALL) VALUE('FMG')