projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more coding rules, simplifications.
[apps/madmutt.git]
/
mx.c
diff --git
a/mx.c
b/mx.c
index
370bb9f
..
6f6f779
100644
(file)
--- a/
mx.c
+++ b/
mx.c
@@
-18,12
+18,13
@@
#include <lib-lib/macros.h>
#include <lib-lib/file.h>
#include <lib-lib/macros.h>
#include <lib-lib/file.h>
+#include <lib-mime/mime.h>
+
#include "mutt.h"
#include "buffy.h"
#include "mx.h"
#include "mbox.h"
#include "mh.h"
#include "mutt.h"
#include "buffy.h"
#include "mx.h"
#include "mbox.h"
#include "mh.h"
-#include "rfc2047.h"
#include "sort.h"
#include "thread.h"
#include "copy.h"
#include "sort.h"
#include "thread.h"
#include "copy.h"
@@
-745,10
+746,10
@@
static int _mx_close_mailbox (CONTEXT * ctx, int *index_hint)
if ((p = mutt_find_hook (M_MBOXHOOK, ctx->path))) {
isSpool = 1;
if ((p = mutt_find_hook (M_MBOXHOOK, ctx->path))) {
isSpool = 1;
-
strfcpy (mbox, p, sizeof (mbox)
);
+
m_strcpy(mbox, sizeof(mbox), p
);
}
else {
}
else {
-
strfcpy (mbox, NONULL (Inbox), sizeof (m
box));
+
m_strcpy(mbox, sizeof(mbox), NONULL(In
box));
isSpool = mutt_is_spool (ctx->path) && !mutt_is_spool (mbox);
}
mutt_expand_path (mbox, sizeof (mbox));
isSpool = mutt_is_spool (ctx->path) && !mutt_is_spool (mbox);
}
mutt_expand_path (mbox, sizeof (mbox));
@@
-1009,8
+1010,7
@@
static int _mx_sync_mailbox (CONTEXT * ctx, int *index_hint)
km_find_func (MENU_MAIN, OP_TOGGLE_WRITE)))
snprintf (tmp, sizeof (tmp), _(" Press '%s' to toggle write"), buf);
else
km_find_func (MENU_MAIN, OP_TOGGLE_WRITE)))
snprintf (tmp, sizeof (tmp), _(" Press '%s' to toggle write"), buf);
else
- strfcpy (tmp, _("Use 'toggle-write' to re-enable write!"),
- sizeof (tmp));
+ m_strcpy(tmp, sizeof(tmp), _("Use 'toggle-write' to re-enable write!"));
mutt_error (_("Mailbox is marked unwritable. %s"), tmp);
return -1;
mutt_error (_("Mailbox is marked unwritable. %s"), tmp);
return -1;
@@
-1123,7
+1123,7
@@
int mx_sync_mailbox (CONTEXT* ctx, int* index_hint) {
MESSAGE *mx_open_new_message (CONTEXT * dest, HEADER * hdr, int flags)
{
MESSAGE *msg;
MESSAGE *mx_open_new_message (CONTEXT * dest, HEADER * hdr, int flags)
{
MESSAGE *msg;
-
ADDRESS
*p = NULL;
+
address_t
*p = NULL;
if (!MX_IDX(dest->magic-1)) {
debug_print (1, ("function unimplemented for mailbox type %d.\n", dest->magic));
if (!MX_IDX(dest->magic-1)) {
debug_print (1, ("function unimplemented for mailbox type %d.\n", dest->magic));