aboutsummaryrefslogtreecommitdiffstats
path: root/mail.c
diff options
context:
space:
mode:
authorreinelt <>2003-02-22 07:53:10 +0000
committerreinelt <>2003-02-22 07:53:10 +0000
commit90be5ac59fddad620f66ebc9dc813802cd45a7e3 (patch)
tree9a0596fed56b4985e15b7d677c43c0bda80fbabb /mail.c
parentdb2a64cd4d6e46a6563181f38da2a0a01f56a559 (diff)
downloadlcd4linux-90be5ac59fddad620f66ebc9dc813802cd45a7e3.tar.gz
[lcd4linux @ 2003-02-22 07:53:09 by reinelt]
cfg_get(key,defval)
Diffstat (limited to 'mail.c')
-rw-r--r--mail.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/mail.c b/mail.c
index 7f1f2c6..fe0686e 100644
--- a/mail.c
+++ b/mail.c
@@ -1,4 +1,4 @@
-/* $Id: mail.c,v 1.11 2001/09/12 05:58:16 reinelt Exp $
+/* $Id: mail.c,v 1.12 2003/02/22 07:53:10 reinelt Exp $
*
* email specific functions
*
@@ -20,6 +20,9 @@
*
*
* $Log: mail.c,v $
+ * Revision 1.12 2003/02/22 07:53:10 reinelt
+ * cfg_get(key,defval)
+ *
* Revision 1.11 2001/09/12 05:58:16 reinelt
* fixed bug in mail2.c
*
@@ -121,7 +124,7 @@ int Mail (int index, int *num, int *unseen)
}
if (now[index] > 0) { /* not first time, delay */
sprintf(txt1, "Delay_e%d", index);
- if (time(NULL)<=now[index]+atoi(cfg_get(txt1)?:"5"))
+ if (time(NULL)<=now[index]+atoi(cfg_get(txt1,"5")))
return 0; // no more then 5/Delay_eX seconds after last check?
}
time(&now[index]); // for Mailbox #index
@@ -129,7 +132,7 @@ int Mail (int index, int *num, int *unseen)
Build the filename from the config
*/
snprintf(buffer, sizeof(buffer), "Mailbox%d", index);
- fnp1=cfg_get(buffer);
+ fnp1=cfg_get(buffer,NULL);
if (fnp1==NULL || *fnp1=='\0') {
cfgmbx[index]=FALSE; // There is now entry for Mailbox #index
}