X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=compose.c;h=960f1241f993bc134aa35d7c5c3ba5c58abc10d4;hp=d4d3403ac96c7eee7591d917fd19944b79599ea5;hb=9f114b20bdc57bc1258cd378b44d898ec0dc4dfd;hpb=ee1d4d931ca3ebec494694b74a1868a7a2e631e3 diff --git a/compose.c b/compose.c index d4d3403..960f124 100644 --- a/compose.c +++ b/compose.c @@ -26,6 +26,7 @@ #include "sort.h" #include "charset.h" #include "mx.h" +#include "buffy.h" #include "compose.h" #ifdef MIXMASTER @@ -562,7 +563,7 @@ int mutt_compose_menu (HEADER * msg, /* structure for new message */ ComposeHelp); if (option (OPTMBOXPANE)) - mutt_buffy_check (1); + buffy_check (1); while (loop) { #ifdef USE_NNTP unset_option (OPTNEWS); /* for any case */ @@ -862,13 +863,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) {