projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
small fixes.
[apps/madmutt.git]
/
imap
/
imap.c
diff --git
a/imap/imap.c
b/imap/imap.c
index
cb100ce
..
4b004f1
100644
(file)
--- a/
imap/imap.c
+++ b/
imap/imap.c
@@
-493,8
+493,7
@@
static char *imap_get_flags (LIST ** hflags, char *s)
debug_print (1, ("not a FLAGS response: %s\n", s));
return NULL;
}
debug_print (1, ("not a FLAGS response: %s\n", s));
return NULL;
}
- s += 5;
- SKIPWS (s);
+ s = vskipspaces(s + 5);
if (*s != '(') {
debug_print (1, ("bogus FLAGS response: %s\n", s));
return NULL;
if (*s != '(') {
debug_print (1, ("bogus FLAGS response: %s\n", s));
return NULL;
@@
-505,8
+504,7
@@
static char *imap_get_flags (LIST ** hflags, char *s)
*hflags = flags;
while (*s && *s != ')') {
*hflags = flags;
while (*s && *s != ')') {
- s++;
- SKIPWS (s);
+ s = vskipspaces(s + 1);
flag_word = s;
while (*s && (*s != ')') && !ISSPACE (*s))
s++;
flag_word = s;
while (*s && (*s != ')') && !ISSPACE (*s))
s++;
@@
-1311,9
+1309,8
@@
static int imap_compile_search (const pattern_t* pat, BUFFER* buf)
mutt_buffer_addch (buf, ' ');
/* and field */
mutt_buffer_addch (buf, ' ');
/* and field */
- *delim = ':';
- delim++;
- SKIPWS(delim);
+ *delim++ = ':';
+ delim = vskipspaces(delim);
imap_quote_string (term, sizeof (term), delim);
mutt_buffer_addstr (buf, term);
break;
imap_quote_string (term, sizeof (term), delim);
mutt_buffer_addstr (buf, term);
break;