$(INSTALL) -m 644 $(srcdir)/dotlock.man \
$(DESTDIR)$(mandir)/man1/mutt_dotlock.1
$(INSTALL) -m 644 muttrc.man $(DESTDIR)$(mandir)/man5/muttrc.5
- $(INSTALL) -m 644 mbox.man $(DESTDIR)$(mandir)/man5/mbox.5
+ $(INSTALL) -m 644 $(srcdir)/mbox.man $(DESTDIR)$(mandir)/man5/mbox.5
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(docdir)
for f in $(srcdir_DOCFILES) ; do \
$(INSTALL) -m 644 $(srcdir)/$$f $(DESTDIR)$(docdir) ; \
endif
if USE_SASL
-AUTHENTICATORS = auth_sasl.c $(GSSSOURCES)
+AUTHENTICATORS = auth_sasl.c
else
-AUTHENTICATORS = auth_anon.c auth_cram.c md5c.c $(GSSSOURCES)
+AUTHENTICATORS = auth_anon.c auth_cram.c md5c.c
endif
if USE_SSL
noinst_HEADERS = auth.h imap_private.h md5.h message.h $(SSLHEADERS)
libimap_a_SOURCES = auth.c auth_login.c browse.c command.c imap.c imap.h \
- message.c utf7.c util.c $(AUTHENTICATORS) $(SSLSOURCES)
+ message.c utf7.c util.c $(AUTHENTICATORS) $(SSLSOURCES) $(GSSSOURCES)
{
int rc;
- rc = conn->close (conn);
+ if (conn->fd < 0)
+ dprint (1, (debugfile, "mutt_socket_close: Attempt to close closed connection.\n"));
+ else
+ rc = conn->close (conn);
+
conn->fd = -1;
return rc;
{
int rc, i;
int purge = 1;
+ int msgcount, deleted;
if (ctx->dontwrite)
{
}
}
+ /* really only for IMAP - imap_sync_mailbox results in a call to
+ * mx_update_tables, so ctx->deleted is 0 when it comes back */
+ msgcount = ctx->msgcount;
+ deleted = ctx->deleted;
+
#ifdef USE_IMAP
if (ctx->magic == M_IMAP)
rc = imap_sync_mailbox (ctx, purge, index_hint);
{
#ifdef USE_IMAP
if (ctx->magic == M_IMAP && !purge)
- mutt_message (_("Mailbox checkpointed."), ctx->msgcount);
+ mutt_message _("Mailbox checkpointed.");
else
#endif
- mutt_message (_("%d kept, %d deleted."), ctx->msgcount - ctx->deleted,
- ctx->deleted);
+ mutt_message (_("%d kept, %d deleted."), msgcount - deleted,
+ deleted);
sleep (1); /* allow the user time to read the message */