aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail.c15
-rw-r--r--mail2.c14
-rw-r--r--socket.c7
3 files changed, 27 insertions, 9 deletions
diff --git a/mail.c b/mail.c
index 3e90e3c..7f1f2c6 100644
--- a/mail.c
+++ b/mail.c
@@ -1,4 +1,4 @@
-/* $Id: mail.c,v 1.10 2001/09/12 05:37:22 reinelt Exp $
+/* $Id: mail.c,v 1.11 2001/09/12 05:58:16 reinelt Exp $
*
* email specific functions
*
@@ -20,6 +20,9 @@
*
*
* $Log: mail.c,v $
+ * Revision 1.11 2001/09/12 05:58:16 reinelt
+ * fixed bug in mail2.c
+ *
* Revision 1.10 2001/09/12 05:37:22 reinelt
*
* fixed a bug in seti.c (file was never closed, lcd4linux run out of fd's
@@ -92,11 +95,11 @@ int Mail (int index, int *num, int *unseen)
{
FILE *fstr;
char buffer[32];
- static int cfgmbx[MAILBOXES+1]={[0 ... MAILBOXES]=TRUE,}; // Mailbox #index configured?
- static time_t mbxlt[MAILBOXES+1]={[0 ... MAILBOXES]=0,}; // mtime of Mailbox #index
- static int mbxnum[MAILBOXES+1]={[0 ... MAILBOXES]=0,}; // Last calculated # of mails
- static time_t now[MAILBOXES+1]={[0 ... MAILBOXES]=0,}; // Last call to procedure at
- // for Mailbox #index
+ static int cfgmbx[MAILBOXES+1]={[0 ... MAILBOXES]=TRUE,}; // Mailbox #index configured?
+ static time_t mbxlt[MAILBOXES+1]={[0 ... MAILBOXES]=0,}; // mtime of Mailbox #index
+ static int mbxnum[MAILBOXES+1]={[0 ... MAILBOXES]=0,}; // Last calculated # of mails
+ static time_t now[MAILBOXES+1]={[0 ... MAILBOXES]=0,}; // Last call to procedure at
+ // for Mailbox #index
char *fnp1;
int v1=0;
int last_line_blank1; // Was the last line blank?
diff --git a/mail2.c b/mail2.c
index c26830f..4692a2c 100644
--- a/mail2.c
+++ b/mail2.c
@@ -1,4 +1,4 @@
-/* $Id: mail2.c,v 1.4 2001/03/16 09:28:08 ltoetsch Exp $
+/* $Id: mail2.c,v 1.5 2001/09/12 05:58:16 reinelt Exp $
*
* mail: pop3, imap, news functions
*
@@ -20,6 +20,9 @@
*
*
* $Log: mail2.c,v $
+ * Revision 1.5 2001/09/12 05:58:16 reinelt
+ * fixed bug in mail2.c
+ *
* Revision 1.4 2001/03/16 09:28:08 ltoetsch
* bugfixes
*
@@ -189,6 +192,9 @@ static int check_nntp(char *user, char *pass, char *machine,
int totg, unsg;
int first;
+ *total = 0;
+ *unseen = 0;
+
strcpy(buf, cfg_get("Newsrc") ?: ".newsrc");
if (*buf == 0 || ((fp = fopen(buf, "r")) == NULL)) {
error("Couldn't open .newsrc-file '%s'", buf);
@@ -293,6 +299,9 @@ static int check_imap4(char *user, char *pass, char *machine,
char buf[BUFLEN];
char *p;
+ *total=0;
+ *unseen = 0;
+
if (fd < 0)
{
error("Couldn't connect to %s:%d (%s)", machine, port, strerror(errno));
@@ -337,6 +346,9 @@ static int check_pop3(char *user, char *pass, char *machine,
int n;
char buf[BUFLEN];
+ *total=0;
+ *unseen=0;
+
if (fd < 0)
{
error("Couldn't connect to %s:%d (%s)", machine, port, strerror(errno));
diff --git a/socket.c b/socket.c
index ca57f95..1e70342 100644
--- a/socket.c
+++ b/socket.c
@@ -1,4 +1,4 @@
-/* $Id: socket.c,v 1.3 2001/09/12 05:37:22 reinelt Exp $
+/* $Id: socket.c,v 1.4 2001/09/12 05:58:16 reinelt Exp $
*
* simple socket functions
*
@@ -20,6 +20,9 @@
*
*
* $Log: socket.c,v $
+ * Revision 1.4 2001/09/12 05:58:16 reinelt
+ * fixed bug in mail2.c
+ *
* Revision 1.3 2001/09/12 05:37:22 reinelt
*
* fixed a bug in seti.c (file was never closed, lcd4linux run out of fd's
@@ -84,7 +87,7 @@
static char *quotemeta (char *string)
{
- char buffer[256];
+ static char buffer[256];
char *s, *p;
p=buffer;
scan-tables.git/commit/debian/changelog?h=debian/0%2bgit20171226.07b18ec-1&id=e4de63418439eb0b60a19db542c6e7e60fc9ebd6&follow=1'>Release 0+git20151202.3864e0a-1debian/0+git20151202.3864e0a-1Jonathan McCrohan1-2/+3 2016-01-18Imported Upstream version 0+git20151202.3864e0aJonathan McCrohan840-4057/+18230 2016-01-18Update get-vcs-snapshot.sh to reflect gbp changesJonathan McCrohan2-1/+2 2016-01-18Imported Upstream version 0+git20151202.3864e0aupstream/0+git20151202.3864e0aJonathan McCrohan840-4057/+18230 2015-05-05d/control: various fixes found by libconfig-model-dpkg-perlJonathan McCrohan2-5/+13 2015-04-01Release 0+git20150208.f2053b3-1Jonathan McCrohan1-2/+2 2015-04-01Describe changes made in snapshotJonathan McCrohan1-0/+3 2015-04-01New Upstream Snapshot (commit f2053b3)Jonathan McCrohan1-0/+6 2015-04-01Imported Upstream version 0+git20150208.f2053b3upstream/0+git20150208.f2053b3Jonathan McCrohan32-333/+483 2014-12-28Release 0+git20141218.b46a22c-1debian/0+git20141218.b46a22c-1Jonathan McCrohan1-2/+2 2014-12-28Updated AU DVB-T files; Thanks Brian Burch! (Closes LP: #1393280)Jonathan McCrohan1-0/+1 2014-12-28New Upstream Snapshot (commit b46a22c)Jonathan McCrohan1-0/+6 2014-12-28Imported Upstream version 0+git20141218.b46a22cupstream/0+git20141218.b46a22cJonathan McCrohan535-639/+317 2014-10-20Release 0+git20141009.d26b627-1debian/0+git20141009.d26b627-1Jonathan McCrohan1-2/+2 2014-10-20Fix up packaging to account for move to DVBv5Jonathan McCrohan2-2/+6 2014-10-20delete d/dtv-scan-files.install; Upstream now supplies a MakefileJonathan McCrohan2-4/+1 2014-10-15d/control: update Standards Version to 3.9.6Jonathan McCrohan2-1/+3 2014-10-15d/control: add Build-Depends on dvb-toolsJonathan McCrohan2-1/+2 2014-10-15New Upstream Snapshot (commit d26b627)Jonathan McCrohan1-0/+10 2014-10-15Imported Upstream version 0+git20141009.d26b627upstream/0+git20141009.d26b627Jonathan McCrohan2010-11120/+159271 2014-07-23Release 0+git20140611.14bd6c7-1debian/0+git20140611.14bd6c7-1Jonathan McCrohan1-2/+2 2014-07-23New Upstream Snapshot (commit 14bd6c7)Jonathan McCrohan1-2/+3 2014-07-23Imported Upstream version 0+git20140611.14bd6c7upstream/0+git20140611.14bd6c7Jonathan McCrohan7-11/+60 2014-05-13New Upstream Snapshot (commit 1246b27)Jonathan McCrohan1-0/+6 2014-05-13Imported Upstream version 0+git20140512.1246b27upstream/0+git20140512.1246b27Jonathan McCrohan391-301/+3983 2014-04-05Release 0+git20140326.cfc2975-1debian/0+git20140326.cfc2975-1Jonathan McCrohan1-2/+2 2014-04-05d/control: update Homepage (upstream has moved from Gitweb to cgit)Jonathan McCrohan2-1/+2 2014-04-05New Upstream Snapshot (commit cfc2975)Jonathan McCrohan1-0/+6 2014-04-05Imported Upstream version 0+git20140326.cfc2975upstream/0+git20140326.cfc2975Jonathan McCrohan118-656/+877 2014-01-16Release 0+git20140107.1850cf8-1debian/0+git20140107.1850cf8-1Jonathan McCrohan1-2/+2 2014-01-16Update Standards Version to 3.9.5Jonathan McCrohan2-1/+9 No changes required