if (val == NULL ||*val == '"' || *val == 0) logfile = NULL;
if (val == NULL ||*val == '"' || *val == 0) { setLogFile (NULL); }
MapiGPGMEImpl::readOptions (void){    char *val=NULL;    load_extension_value ("autoSignAttachments", &val);    autoSignAtt = val == NULL || *val != '1' ? 0 : 1;    xfree (val); val =NULL;    load_extension_value ("saveDecryptedAttachments", &val);    saveDecryptedAtt = val == NULL || *val != '1'? 0 : 1;    xfree (val); val =NULL;    load_extension_value ("encryptDefault", &val);    doEncrypt = val == NULL || *val != '1'? 0 : 1;    xfree (val); val=NULL;    load_extension_value ("signDefault", &val);    doSign = val == NULL || *val != '1'? 0 : 1;    xfree (val); val = NULL;    load_extension_value ("addDefaultKey", &val);    encryptDefault = val == NULL || *val != '1' ? 0 : 1;    xfree (val); val = NULL;    load_extension_value ("storePasswdTime", &val);    nstorePasswd = val == NULL || *val == '0'? 0 : atol (val);    xfree (val); val = NULL;    load_extension_value ("encodingFormat", &val);    encFormat = val == NULL? GPG_FMT_CLASSIC  : atol (val);    xfree (val); val = NULL;    load_extension_value ("logFile", &val);    if (val == NULL ||*val == '"' || *val == 0)	logfile = NULL;    else {	setLogFile (val);	setEnableLogging (true);    }    xfree (val); val=NULL;    load_extension_value ("defaultKey", &val);    if (val == NULL || *val == '"') {	encryptDefault = 0;	defaultKey = NULL;    }    else {	setDefaultKey (val);	encryptDefault = 1;    }    xfree (val); val=NULL;    return 0;}