projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00fe27a
)
ooops... ascmonths[] was in use in imap_tools.c ... fixed
author
Art Cancro
<ajc@citadel.org>
Mon, 19 Nov 2007 15:52:57 +0000
(15:52 +0000)
committer
Art Cancro
<ajc@citadel.org>
Mon, 19 Nov 2007 15:52:57 +0000
(15:52 +0000)
citadel/modules/imap/imap_tools.c
patch
|
blob
|
history
diff --git
a/citadel/modules/imap/imap_tools.c
b/citadel/modules/imap/imap_tools.c
index 0e62a407c34900af08df5453813cad6d4c96c2ac..f0eeef926fc1d497b307379fa1edf2bbe937c573 100644
(file)
--- a/
citadel/modules/imap/imap_tools.c
+++ b/
citadel/modules/imap/imap_tools.c
@@
-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;
}
}