X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=muttlib.c;h=e3a7cad5c5d392ea3af636c51778bd31f210d00b;hb=3a63661c35d4b5f93501efab7e5478386ad02565;hp=7592681805f4038bd274dff16593dd0adaa25ce5;hpb=0ac011f8eb41bab7808881ebf9802b4eb252fe3b;p=apps%2Fmadmutt.git diff --git a/muttlib.c b/muttlib.c index 7592681..e3a7cad 100644 --- a/muttlib.c +++ b/muttlib.c @@ -30,12 +30,10 @@ #include "version.h" -#ifdef USE_IMAP -#include "imap.h" -#include "imap/mx_imap.h" -#endif +#include +#include -#include "mutt_crypt.h" +#include #include "lib/debug.h" @@ -337,13 +335,11 @@ char *_mutt_expand_path (char *s, size_t slen, int rx) case '=': case '+': { -#ifdef USE_IMAP /* if folder = imap[s]://host/: don't append slash */ if (imap_is_magic (NONULL (Maildir), NULL) == M_IMAP && Maildir[m_strlen(Maildir) - 1] == '/') m_strcpy(p, sizeof(p), NONULL(Maildir)); else -#endif snprintf (p, sizeof (p), "%s/", NONULL (Maildir)); tail = s + 1; @@ -689,12 +685,10 @@ void mutt_pretty_mailbox (char *s) scheme = url_check_scheme (s); -#ifdef USE_IMAP if (scheme == U_IMAP || scheme == U_IMAPS) { imap_pretty_mailbox (s); return; } -#endif /* if s is an url, only collapse path component */ if (scheme != U_UNKNOWN) { @@ -1209,9 +1203,7 @@ int mutt_save_confirm (const char *s, struct stat *st) } } else { -#ifdef USE_IMAP if (magic != M_IMAP) -#endif /* execute the block unconditionally if we don't use imap */ { st->st_mtime = 0; st->st_atime = 0;