The magic number used to identify a mailbox was copied in the message structure, so that the CONTEXT structure hasn't had to be passed to the mx_close_message function.
To make the mx_* functions more consistent, we now pass the context parameter to mx_close_message. It allows us to remove the "magic" in the message structure. Mailboxes can now implement the "close_msg" operation. Changes in v2: - Rebased on v2 of open_msg Damien Riegel (3): pass context in mx_close_message Remove magic member in MESSAGE structure add close_msg to struct mx_ops attach.c | 2 +- commands.c | 2 +- copy.c | 6 +++--- editmsg.c | 2 +- imap/imap.c | 1 + imap/imap_private.h | 1 + imap/message.c | 5 +++++ mailbox.h | 3 +-- mbox.c | 9 +++++++++ mh.c | 11 +++++++++-- mutt.h | 1 + mx.c | 20 +++++++------------- parse.c | 2 +- pattern.c | 4 ++-- pop.c | 8 +++++++- postpone.c | 4 ++-- recvattach.c | 6 +++--- sendlib.c | 6 +++--- 18 files changed, 58 insertions(+), 35 deletions(-) -- 2.8.3
