summaryrefslogtreecommitdiffstats
path: root/mh.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2020-12-10 14:07:19 -0800
committerKevin McCarthy <kevin@8t8.us>2020-12-12 13:17:09 -0800
commitb860ea2f02c32d9108f0522c2315df208daacb35 (patch)
treef98c821c22a6e4e692481308efbefea09f0b6220 /mh.c
parentc6868e1f935f7bcd2b000f81d60930b07925d718 (diff)
Add "headers" parameter to mx_open_message().
This will allow some operations to retrieve only headers, such as ~h pattern matching or the new list menu. Modify the IMAP and POP3 implementation to retrieve only headers when the parameter is set. Headers-only will use the message cache if one exists, but will not populate the message cache (since the body of the message is not downloaded.)
Diffstat (limited to 'mh.c')
-rw-r--r--mh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mh.c b/mh.c
index cd7aa040..1b31a178 100644
--- a/mh.c
+++ b/mh.c
@@ -1494,12 +1494,12 @@ static int maildir_mh_open_message (CONTEXT *ctx, MESSAGE *msg, int msgno,
return rc;
}
-static int maildir_open_message (CONTEXT *ctx, MESSAGE *msg, int msgno)
+static int maildir_open_message (CONTEXT *ctx, MESSAGE *msg, int msgno, int headers)
{
return maildir_mh_open_message (ctx, msg, msgno, 1);
}
-static int mh_open_message (CONTEXT *ctx, MESSAGE *msg, int msgno)
+static int mh_open_message (CONTEXT *ctx, MESSAGE *msg, int msgno, int headers)
{
return maildir_mh_open_message (ctx, msg, msgno, 0);
}