2013-10-22 11:53:24 +02:00
|
|
|
---
|
|
|
|
alpine/folder.c | 2 +-
|
|
|
|
imap/src/c-client/mail.c | 10 ++++++++--
|
|
|
|
2 files changed, 9 insertions(+), 3 deletions(-)
|
|
|
|
|
|
|
|
Index: alpine-2.11/alpine/folder.c
|
|
|
|
===================================================================
|
|
|
|
--- alpine-2.11.orig/alpine/folder.c
|
|
|
|
+++ alpine-2.11/alpine/folder.c
|
|
|
|
@@ -6132,7 +6132,7 @@ folder_select_count(long int *count, int
|
2011-10-11 17:34:22 +02:00
|
|
|
continue;
|
|
|
|
|
|
|
|
case 14 : /* toggle comparison */
|
|
|
|
- *cmp = ++(*cmp) % 3;
|
|
|
|
+ *cmp = ((*cmp) + 1) % 3;
|
|
|
|
continue;
|
|
|
|
|
|
|
|
case -1 : /* cancel */
|
2013-10-22 11:53:24 +02:00
|
|
|
Index: alpine-2.11/imap/src/c-client/mail.c
|
|
|
|
===================================================================
|
|
|
|
--- alpine-2.11.orig/imap/src/c-client/mail.c
|
|
|
|
+++ alpine-2.11/imap/src/c-client/mail.c
|
|
|
|
@@ -2940,8 +2940,14 @@ long mail_parse_date (MESSAGECACHE *elt,
|
2007-10-01 04:26:09 +02:00
|
|
|
/* parse time */
|
|
|
|
d = strtoul (s+1,(char **) &s,10);
|
|
|
|
if (*s != ':') return NIL;
|
|
|
|
- m = strtoul (++s,(char **) &s,10);
|
|
|
|
- y = (*s == ':') ? strtoul (++s,(char **) &s,10) : 0;
|
|
|
|
+ s++;
|
|
|
|
+ m = strtoul (s,(char **) &s,10);
|
2011-10-11 17:34:22 +02:00
|
|
|
+ if (*s == ':') {
|
|
|
|
+ s++;
|
|
|
|
+ y = strtoul(s, (char **)&s, 10);
|
|
|
|
+ } else {
|
|
|
|
+ y = 0;
|
|
|
|
+ }
|
2007-10-01 04:26:09 +02:00
|
|
|
/* validity check time */
|
|
|
|
if ((d > 23) || (m > 59) || (y > 60)) return NIL;
|
|
|
|
/* set values in elt */
|