- ctxpath = getcpy (m_maildir (cp));
-
- if ((ib = lkfopen (ctxpath, "r"))) {
- readconfig ((struct node **) 0, ib, cp, 1);
- lkfclose (ib, ctxpath);
+ /* context is NULL if context_foil() was called to disable use of context
+ * We also support users setting explicitly setting MHCONTEXT to /dev/null.
+ * (if this wasn't special-cased then the locking would be liable to fail)
+ */
+ if (!cp || (strcmp(cp,"/dev/null") == 0)) {
+ ctxpath = NULL;
+ return;