ooops... ascmonths[] was in use in imap_tools.c ... fixed
authorArt Cancro <ajc@citadel.org>
Mon, 19 Nov 2007 15:52:57 +0000 (15:52 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 19 Nov 2007 15:52:57 +0000 (15:52 +0000)
citadel/modules/imap/imap_tools.c

index 0e62a407c34900af08df5453813cad6d4c96c2ac..f0eeef926fc1d497b307379fa1edf2bbe937c573 100644 (file)
@@ -772,6 +772,10 @@ int imap_datecmp(char *datestr, time_t msgtime) {
        int msgday, msgmonth, msgyear;
        struct tm msgtm;
 
+       char *imap_datecmp_ascmonths[12] = {
+               "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
+       };
+
        if (datestr == NULL) return(0);
 
        /* Expecting a date in the form dd-Mmm-yyyy */
@@ -783,7 +787,7 @@ int imap_datecmp(char *datestr, time_t msgtime) {
        year = atoi(yearstr);
        month = 0;
        for (i=0; i<12; ++i) {
-               if (!strcasecmp(monthstr, ascmonths[i])) {
+               if (!strcasecmp(monthstr, imap_datecmp_ascmonths[i])) {
                        month = i;
                }
        }