aboutsummaryrefslogtreecommitdiff
path: root/mail/wmmaiload/files/patch-wmmaiload_checkthread.c
blob: eee126b8dcf86915a446c8cd22d721db66b2a91b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--- wmmaiload/checkthread.c.orig	2009-02-23 02:59:20 UTC
+++ wmmaiload/checkthread.c
@@ -85,7 +85,7 @@ static Bool check_imap(MailBox *box, time_t now);
 #endif /* HAVE_IMAP */
 #ifdef HAVE_MH
 static Bool check_mh(MailBox *box, time_t now);
-static Bool isnumber(const char*);
+static Bool isnum(const char*);
 static Bool isdir(const char*);
 static Bool isfile(const char *);
 static char *absname(const char*, int);
@@ -304,7 +304,7 @@ static Bool check_imap(MailBox *box, time_t now)
 
 
 #ifdef HAVE_MH
-static Bool isnumber(const char *s)
+static Bool isnum(const char *s)
 {
         while (*s != '\0')
         {
@@ -420,7 +420,7 @@ static char *mh_get_profile(void)
 
         if ((cp = getenv("MH")))
         {
-                if (*cp |= '/')
+                if (*cp != '/')
                         profile = absname(cp, CWD);
                 else
                         profile = xstrdup(cp);
@@ -488,7 +488,7 @@ static int mh_getseqcnt(const char *word)
 {
         int retval = 0;
 
-        if (isnumber(word))
+        if (isnum(word))
                 retval = 1;
         else
         {
@@ -607,7 +607,7 @@ static int mh_getmails(const char *mh_box)
 
         while ((d_entry = readdir(dir)))
         {
-                if (isnumber(d_entry->d_name))
+                if (isnum(d_entry->d_name))
                 {
                         char * tmp = NULL;