projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
oopsie
[apps/madmutt.git]
/
from.c
diff --git
a/from.c
b/from.c
index
37ae147
..
07b9013
100644
(file)
--- a/
from.c
+++ b/
from.c
@@
-60,6
+60,7
@@
int is_from (const char *s, char *path, ssize_t pathlen, time_t * tp)
return 0;
s = m_strnextsp(s); /* skip over the From part. */
return 0;
s = m_strnextsp(s); /* skip over the From part. */
+ s = skipspaces(s);
if (!*s)
return 0;
if (!*s)
return 0;
@@
-99,6
+100,7
@@
int is_from (const char *s, char *path, ssize_t pathlen, time_t * tp)
}
s = m_strnextsp(s);
}
s = m_strnextsp(s);
+ s = skipspaces(s);
if (!*s)
return 0;
if (!*s)
return 0;
@@
-108,6
+110,7
@@
int is_from (const char *s, char *path, ssize_t pathlen, time_t * tp)
*/
if (is_day_name (s)) {
s = m_strnextsp(s);
*/
if (is_day_name (s)) {
s = m_strnextsp(s);
+ s = skipspaces(s);
if (!*s)
return 0;
}
if (!*s)
return 0;
}
@@
-118,6
+121,7
@@
int is_from (const char *s, char *path, ssize_t pathlen, time_t * tp)
/* day */
s = m_strnextsp(s);
/* day */
s = m_strnextsp(s);
+ s = skipspaces(s);
if (!*s)
return 0;
if (sscanf (s, "%d", &tm.tm_mday) != 1)
if (!*s)
return 0;
if (sscanf (s, "%d", &tm.tm_mday) != 1)
@@
-125,6
+129,7
@@
int is_from (const char *s, char *path, ssize_t pathlen, time_t * tp)
/* time */
s = m_strnextsp(s);
/* time */
s = m_strnextsp(s);
+ s = skipspaces(s);
if (!*s)
return 0;
if (!*s)
return 0;
@@
-136,12
+141,14
@@
int is_from (const char *s, char *path, ssize_t pathlen, time_t * tp)
return 0;
s = m_strnextsp(s);
return 0;
s = m_strnextsp(s);
+ s = skipspaces(s);
if (!*s)
return 0;
/* timezone? */
if (isalpha ((unsigned char) *s) || *s == '+' || *s == '-') {
s = m_strnextsp(s);
if (!*s)
return 0;
/* timezone? */
if (isalpha ((unsigned char) *s) || *s == '+' || *s == '-') {
s = m_strnextsp(s);
+ s = skipspaces(s);
if (!*s)
return 0;
if (!*s)
return 0;
@@
-151,6
+158,7
@@
int is_from (const char *s, char *path, ssize_t pathlen, time_t * tp)
*/
if (isalpha ((unsigned char) *s)) {
s = m_strnextsp(s);
*/
if (isalpha ((unsigned char) *s)) {
s = m_strnextsp(s);
+ s = skipspaces(s);
if (!*s)
return 0;
}
if (!*s)
return 0;
}