summaryrefslogtreecommitdiffstats
path: root/attach.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-11-07 22:19:45 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-11-07 22:19:45 +0000
commit283cc465b8a09272d2c15e33e026b1d32eb312ae (patch)
tree6adb24f96ab9e5a7a152dbfedb8b3564510c9c62 /attach.c
parent538c400f14c9ceeb83a3836d622ee968a92eb602 (diff)
Rewriting lots of the recvattach code.
Diffstat (limited to 'attach.c')
-rw-r--r--attach.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/attach.c b/attach.c
index ea77dd04..ebc83df0 100644
--- a/attach.c
+++ b/attach.c
@@ -360,7 +360,8 @@ int mutt_is_autoview (BODY *b, const char *type)
}
/* returns -1 on error, 0 or the return code from mutt_do_pager() on success */
-int mutt_view_attachment (FILE *fp, BODY *a, int flag)
+int mutt_view_attachment (FILE *fp, BODY *a, int flag, HEADER *hdr,
+ ATTACHPTR **idx, short idxlen)
{
char tempfile[_POSIX_PATH_MAX] = "";
char pagerfile[_POSIX_PATH_MAX] = "";
@@ -570,6 +571,10 @@ int mutt_view_attachment (FILE *fp, BODY *a, int flag)
info.fp = fp;
info.bdy = a;
info.ctx = Context;
+ info.idx = idx;
+ info.idxlen = idxlen;
+ info.hdr = hdr;
+
rc = mutt_do_pager (descrip, pagerfile,
is_message ? M_PAGER_MESSAGE : 0, &info);
}