#include "mutt.h"
-static const char *next_word(const char *s)
-{
- while (*s && !ISSPACE(*s))
- s++;
- s = skipspaces(s);
- return s;
-}
-
int mutt_check_month (const char *s)
{
int i;
if (m_strncmp("From ", s, 5) != 0)
return 0;
- s = next_word (s); /* skip over the From part. */
+ s = m_strnextsp(s); /* skip over the From part. */
if (!*s)
return 0;
}
}
- s = next_word (s);
+ s = m_strnextsp(s);
if (!*s)
return 0;
* is the same as a three-letter abbreviation of the day of the week.
*/
if (is_day_name (s)) {
- s = next_word (s);
+ s = m_strnextsp(s);
if (!*s)
return 0;
}
return 0;
/* day */
- s = next_word (s);
+ s = m_strnextsp(s);
if (!*s)
return 0;
if (sscanf (s, "%d", &tm.tm_mday) != 1)
return 0;
/* time */
- s = next_word (s);
+ s = m_strnextsp(s);
if (!*s)
return 0;
else
return 0;
- s = next_word (s);
+ s = m_strnextsp(s);
if (!*s)
return 0;
/* timezone? */
if (isalpha ((unsigned char) *s) || *s == '+' || *s == '-') {
- s = next_word (s);
+ s = m_strnextsp(s);
if (!*s)
return 0;
* From xxxx@yyyyyyy.fr Wed Aug 2 00:39:12 MET DST 1995
*/
if (isalpha ((unsigned char) *s)) {
- s = next_word (s);
+ s = m_strnextsp(s);
if (!*s)
return 0;
}