Pref->Type = PrefType;
Pref->eFlatPrefType = Pref->Type->eType;
- syslog(1, "Loading [%s]with type [%d] [\"%s\"]\n",
+ syslog(LOG_DEBUG, "Loading [%s]with type [%d] [\"%s\"]\n",
ChrPtr(Pref->Key),
Pref->Type->eType,
ChrPtr(Pref->Val));
if (PrefType->OnLoad != NULL){
- syslog(1, "Loading with: -> %s(\"%s\", %ld)\n",
+ syslog(LOG_DEBUG, "Loading with: -> %s(\"%s\", %ld)\n",
ChrPtr(PrefType->OnLoadName),
ChrPtr(Pref->Val),
Pref->lval);
else
{
StrBufTrim(ReadBuf);
- syslog(1, "ignoring spurious preference line: [%s]\n",
+ syslog(LOG_INFO, "ignoring spurious preference line: [%s]\n",
ChrPtr(ReadBuf));
DestroyPreference(Data);
LastData = NULL;
Pref->Type = PrefType;
Pref->eFlatPrefType = PrefType->eType;
if (Pref->Type->eType != lPrefType)
- syslog(1, "warning: saving preference with wrong type [%s] %d != %ld \n",
+ syslog(LOG_WARNING, "warning: saving preference with wrong type [%s] %d != %ld \n",
key, Pref->Type->eType, lPrefType);
switch (Pref->Type->eType)
{
i = snprintf(N, sizeof(N), "%d", n);
StrBufTrim(Rcp);
VEA->Address = Rcp;
- if (EnvelopeTo != NULL)
+ if (StrLength(EnvelopeTo) > 0)
VEA->IsDefault = strstr(ChrPtr(EnvelopeTo), ChrPtr(Rcp)) != NULL;
- else if (DefaultFrom != NULL)
+ else if (StrLength(DefaultFrom) > 0)
VEA->IsDefault = !strcmp(ChrPtr(Rcp), ChrPtr(DefaultFrom));
else
VEA->IsDefault = 0;