summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bb7078b)
normally %(size) returns the size of the message. in mhshow
marker lines, it returns the size of the (decoded, if necessary) part.
ctype-<PARAM> string Value of <PARAM> from Content\-Type header
cdispo-<PARAM> string Value of <PARAM> from
Content\-Disposition header
ctype-<PARAM> string Value of <PARAM> from Content\-Type header
cdispo-<PARAM> string Value of <PARAM> from
Content\-Disposition header
-%(unseen) boolean Returns true for suppressed parts.
+%(size) integer The size of the decoded part, in bytes
+%(unseen) boolean Returns true for suppressed parts
.fi
In this context, the %(unseen) function indicates whether
.B mhshow
.fi
In this context, the %(unseen) function indicates whether
.B mhshow
{
char outbuf[BUFSIZ];
struct param_comp_list *pcentry;
{
char outbuf[BUFSIZ];
struct param_comp_list *pcentry;
pcentry->param, '?', 0);
}
pcentry->param, '?', 0);
}
+ if (ct->c_cesizefnx)
+ partsize = (*ct->c_cesizefnx) (ct);
+ else
+ partsize = ct->c_end - ct->c_begin;
+
/* make the part's hidden aspect available by overloading the
/* make the part's hidden aspect available by overloading the
- * %(unseen) function. see comments in h/fmt_scan.h.
+ * %(unseen) function. make the part's size available via %(size).
+ * see comments in h/fmt_scan.h.
- dat[0] = dat[1] = dat[2] = dat[3] = 0;
+ dat[0] = dat[1] = dat[3] = 0;
fmt_scan(fmt, outbuf, sizeof(outbuf), sizeof(outbuf), dat, NULL);
fmt_scan(fmt, outbuf, sizeof(outbuf), sizeof(outbuf), dat, NULL);