commit 39446bbef90f57934eb1c5e3f48c6427cc87fad0
parent 095e3ec92c5974a18f3d3f735a2bf47bb79fdf8c
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date: Sat, 28 Dec 2002 04:00:23 +0000
- workaround imap server bug: lock files are no mailboxes
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/imap.c b/src/imap.c
@@ -505,6 +505,8 @@ imap_exec (imap_t * imap, const char *fmt, ...)
if (memcmp (arg, global.folder, l))
goto next;
arg += l;
+ if (!memcmp (arg + strlen (arg) - 5, ".lock", 5))
+ goto next;
for (box = boxes; box; box = box->next)
if (!strcmp (box->box, arg))
goto next;