always build POP support, we do a /mail/ client, right ?
[apps/madmutt.git] / mx.c
diff --git a/mx.c b/mx.c
index 760b1dc..e38f696 100644 (file)
--- a/mx.c
+++ b/mx.c
 #include "imap/mx_imap.h"
 #endif
 
-#ifdef USE_POP
-#include "pop/pop.h"
-#include "pop/mx_pop.h"
-#endif
+#include <pop/pop.h>
+#include <pop/mx_pop.h>
 
 #ifdef USE_NNTP
 #include "nntp/nntp.h"
@@ -1207,14 +1205,12 @@ MESSAGE *mx_open_message (CONTEXT * ctx, int msgno)
     }
 #endif /* USE_IMAP */
 
-#ifdef USE_POP
   case M_POP:
     {
       if (pop_fetch_message (msg, ctx, msgno) != 0)
         p_delete(&msg);
       break;
     }
-#endif /* USE_POP */
 
 #ifdef USE_NNTP
   case M_NNTP:
@@ -1254,9 +1250,7 @@ int mx_close_message (MESSAGE ** msg)
 #ifdef USE_IMAP
       || (*msg)->magic == M_IMAP
 #endif
-#ifdef USE_POP
       || (*msg)->magic == M_POP
-#endif
 #ifdef USE_NNTP
       || (*msg)->magic == M_NNTP
 #endif
@@ -1402,9 +1396,7 @@ void mx_init (void) {
 #ifdef USE_IMAP
   list_push_back (&MailboxFormats, (void*) imap_reg_mx ());
 #endif
-#ifdef USE_POP
   list_push_back (&MailboxFormats, (void*) pop_reg_mx ());
-#endif
 #ifdef USE_NNTP
   list_push_back (&MailboxFormats, (void*) nntp_reg_mx ());
 #endif