blob: 9a9753e242978a9af4c718ead957e76dccdf1229 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--- buffy.c.orig 2010-04-09 08:47:36.000000000 +0200
+++ buffy.c 2010-04-09 08:51:38.000000000 +0200
@@ -223,10 +223,18 @@
if(!*buf) continue;
/* avoid duplicates */
- p = realpath (buf, f1);
+#ifdef USE_IMAP
+ p = q = NULL;
+ if (!mx_is_imap (buf))
+#endif
+ p = realpath (buf, f1);
+
for (tmp = &Incoming; *tmp; tmp = &((*tmp)->next))
{
- q = realpath ((*tmp)->path, f2);
+#ifdef USE_IMAP
+ if (!mx_is_imap ((*tmp)->path))
+#endif
+ q = realpath ((*tmp)->path, f2);
if (mutt_strcmp (p ? p : buf, q ? q : (*tmp)->path) == 0)
{
dprint(3,(debugfile,"mailbox '%s' already registered as '%s'\n", buf, (*tmp)->path));
|