diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-01-09 04:16:06 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-01-09 04:16:06 +0000 |
commit | 9dc6ff97fe8e9c911dfee409114fc5428adf858a (patch) | |
tree | 97337d07d0693302ca3031d256bff023a4d18f82 /mail.c | |
parent | 1cf54b00c151235704b41d192650a8e75c4ac905 (diff) | |
download | lcd4linux-9dc6ff97fe8e9c911dfee409114fc5428adf858a.tar.gz |
[lcd4linux @ 2004-01-09 04:16:06 by reinelt]
added 'section' argument to cfg_get(), but NULLed it on all calls by now.
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@298 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rw-r--r-- | mail.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: mail.c,v 1.13 2003/10/05 17:58:50 reinelt Exp $ +/* $Id: mail.c,v 1.14 2004/01/09 04:16:06 reinelt Exp $ * * email specific functions * @@ -22,6 +22,9 @@ * * * $Log: mail.c,v $ + * Revision 1.14 2004/01/09 04:16:06 reinelt + * added 'section' argument to cfg_get(), but NULLed it on all calls by now. + * * Revision 1.13 2003/10/05 17:58:50 reinelt * libtool junk; copyright messages cleaned up * @@ -129,7 +132,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(NULL, txt1, "5"))) return 0; // no more then 5/Delay_eX seconds after last check? } time(&now[index]); // for Mailbox #index @@ -137,7 +140,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,NULL); + fnp1=cfg_get(NULL, buffer, NULL); if (fnp1==NULL || *fnp1=='\0') { cfgmbx[index]=FALSE; // There is now entry for Mailbox #index } |