X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=compose.c;h=e8598db6b882370068bc7e67697fe06ff753efd2;hp=a511eb4639a736499f04f9d40e9f13ae5298d1c5;hb=cdd5dd2b406b2af4359f7b1e7360d0c9aba13777;hpb=0f44dc85fc1280372ffab911d701e703d803fb4b diff --git a/compose.c b/compose.c index a511eb4..e8598db 100644 --- a/compose.c +++ b/compose.c @@ -23,7 +23,6 @@ #include "mime.h" #include "attach.h" #include "mapping.h" -#include "mailbox.h" #include "sort.h" #include "charset.h" #include "mx.h" @@ -863,13 +862,13 @@ int mutt_compose_menu (HEADER * msg, /* structure for new message */ #endif mutt_expand_path (fname, sizeof (fname)); #ifdef USE_IMAP - if (!mx_is_imap (fname)) + if (mx_get_magic (fname) != M_IMAP) #endif #ifdef USE_POP - if (!mx_is_pop (fname)) + if (mx_get_magic (fname) != M_POP) #endif #ifdef USE_NNTP - if (!mx_is_nntp (fname) && !option (OPTNEWS)) + if (mx_get_magic (fname) != M_NNTP && !option (OPTNEWS)) #endif /* check to make sure the file exists and is readable */ if (access (fname, R_OK) == -1) {