This already had been the default. Now I removed the -[no]realsize switches.
.B mhbuild
.I file
.RB [ \-list " | " \-nolist ]
.B mhbuild
.I file
.RB [ \-list " | " \-nolist ]
-.RB [ \-realsize " | " \-norealsize ]
.RB [ \-headers " | " \-noheaders ]
.RB [ \-ebcdicsafe " | " \-noebcdicsafe ]
.RB [ \-rfc934mode " | " \-norfc934mode ]
.RB [ \-headers " | " \-noheaders ]
.RB [ \-ebcdicsafe " | " \-noebcdicsafe ]
.RB [ \-rfc934mode " | " \-norfc934mode ]
The
.B \-headers
switch indicates
The
.B \-headers
switch indicates
-that a one-line banner should be displayed above the listing. The
-.B \-realsize
-switch tells
-.B mhbuild
-to evaluate the \*(lqnative\*(rq
-(decoded) format of each content prior to listing. This provides an
-accurate count at the expense of a small delay. If the
+that a one-line banner should be displayed above the listing.
+The size of the \*(lqnative\*(rq
+(decoded) format of each content is evaluated. This provides an
+accurate count at the expense of a small delay.
+If the
.B \-verbose
switch
is present, then the listing will show any \*(lqextra\*(rq information
.B \-verbose
switch
is present, then the listing will show any \*(lqextra\*(rq information
.SH DEFAULTS
.nf
.RB ` \-headers '
.SH DEFAULTS
.nf
.RB ` \-headers '
.RB ` \-norfc934mode '
.RB ` \-contentid '
.RB ` \-noebcdicsafe '
.RB ` \-norfc934mode '
.RB ` \-contentid '
.RB ` \-noebcdicsafe '
.IR content ]
\&...
.RB [ \-headers " | " \-noheaders ]
.IR content ]
\&...
.RB [ \-headers " | " \-noheaders ]
-.RB [ \-realsize " | " \-norealsize ]
.RB [ \-verbose " | " \-noverbose ]
.RB [ \-version ]
.RB [ \-help ]
.RB [ \-verbose " | " \-noverbose ]
.RB [ \-version ]
.RB [ \-help ]
.B \-headers
switch indicates that a one-line banner should be
displayed above the listing.
.B \-headers
switch indicates that a one-line banner should be
displayed above the listing.
-.PP
-The
-.B \-realsize
-switch tells
-.B mhlist
-to evaluate the
-\*(lqnative\*(rq (decoded) format of each content prior to listing.
+The size of the
+\*(lqnative\*(rq (decoded) format of each content is evaluated.
This provides an accurate count at the expense of a small delay.
This provides an accurate count at the expense of a small delay.
If the
.B \-verbose
switch is present, then the listing will show
If the
.B \-verbose
switch is present, then the listing will show
.RB ` +folder "' defaults to the current folder"
.RB ` msgs "' defaults to cur"
.RB ` \-headers '
.RB ` +folder "' defaults to the current folder"
.RB ` msgs "' defaults to cur"
.RB ` \-headers '
{ "list", 0 },
#define NLISTSW 5
{ "nolist", 0 },
{ "list", 0 },
#define NLISTSW 5
{ "nolist", 0 },
-#define SIZESW 6
- { "realsize", 0 },
-#define NSIZESW 7
- { "norealsize", 0 },
-#define RFC934SW 8
{ "debug", -5 },
{ NULL, 0 }
};
{ "debug", -5 },
{ NULL, 0 }
};
int output_message_fp(CT, FILE *, char*);
/* mhlistsbr.c */
int output_message_fp(CT, FILE *, char*);
/* mhlistsbr.c */
-int list_all_messages(CT *, int, int, int, int);
+int list_all_messages(CT *, int, int, int);
/* mhmisc.c */
void set_endian(void);
/* mhmisc.c */
void set_endian(void);
int
main(int argc, char **argv)
{
int
main(int argc, char **argv)
{
- int sizesw = 1, headsw = 1;
char *cp, buf[BUFSIZ];
char buffer[BUFSIZ], *compfile = NULL;
char **argp, **arguments;
char *cp, buf[BUFSIZ];
char buffer[BUFSIZ], *compfile = NULL;
char **argp, **arguments;
- case SIZESW:
- sizesw++;
- continue;
- case NSIZESW:
- sizesw = 0;
- continue;
-
case CONTENTIDSW:
contentidsw = 1;
continue;
case CONTENTIDSW:
contentidsw = 1;
continue;
** List the message info
*/
if (listsw)
** List the message info
*/
if (listsw)
- list_all_messages(cts, headsw, sizesw, verbosw, debugsw);
+ list_all_messages(cts, headsw, verbosw, debugsw);
/* Rename composition draft */
snprintf(buffer, sizeof(buffer), "%s.orig", m_backup(compfile));
/* Rename composition draft */
snprintf(buffer, sizeof(buffer), "%s.orig", m_backup(compfile));
{ "headers", 0 },
#define NHEADSW 1
{ "noheaders", 0 },
{ "headers", 0 },
#define NHEADSW 1
{ "noheaders", 0 },
-#define SIZESW 2
- { "realsize", 0 },
-#define NSIZESW 3
- { "norealsize", 0 },
-#define VERBSW 4
-#define FILESW 6 /* interface from show */
+#define FILESW 4 /* interface from show */
{ "debug", -5 },
{ NULL, 0 }
};
{ "debug", -5 },
{ NULL, 0 }
};
void flush_errors(void);
/* mhlistsbr.c */
void flush_errors(void);
/* mhlistsbr.c */
-void list_all_messages(CT *, int, int, int, int);
+void list_all_messages(CT *, int, int, int);
/* mhfree.c */
void free_content(CT);
/* mhfree.c */
void free_content(CT);
int
main(int argc, char **argv)
{
int
main(int argc, char **argv)
{
- int sizesw = 1, headsw = 1;
int msgnum;
char *cp, *file = NULL, *folder = NULL;
char *maildir, buf[100], **argp;
int msgnum;
char *cp, *file = NULL, *folder = NULL;
char *maildir, buf[100], **argp;
- case SIZESW:
- sizesw = 1;
- continue;
- case NSIZESW:
- sizesw = 0;
- continue;
-
case PARTSW:
if (!(cp = *argp++) || *cp == '-')
adios(NULL, "missing argument to %s",
case PARTSW:
if (!(cp = *argp++) || *cp == '-')
adios(NULL, "missing argument to %s",
/*
** List the message content
*/
/*
** List the message content
*/
- list_all_messages(cts, headsw, sizesw, verbosw, debugsw);
+ list_all_messages(cts, headsw, verbosw, debugsw);
/* Now free all the structures for the content */
for (ctp = cts; *ctp; ctp++)
/* Now free all the structures for the content */
for (ctp = cts; *ctp; ctp++)
-void list_all_messages(CT *, int, int, int, int);
-int list_switch(CT, int, int, int, int);
-int list_content(CT, int, int, int, int);
+void list_all_messages(CT *, int, int, int);
+int list_switch(CT, int, int, int);
+int list_content(CT, int, int, int);
/*
** static prototypes
*/
/*
** static prototypes
*/
-static void list_single_message(CT, int, int, int);
+static void list_single_message(CT, int, int);
static int list_debug(CT);
static int list_debug(CT);
-static int list_multi(CT, int, int, int, int);
-static int list_partial(CT, int, int, int, int);
+static int list_multi(CT, int, int, int);
+static int list_partial(CT, int, int, int);
static int list_encoding(CT);
static int list_encoding(CT);
** Top level entry point to list group of messages
*/
void
** Top level entry point to list group of messages
*/
void
-list_all_messages(CT *cts, int headers, int realsize, int verbose, int debug)
+list_all_messages(CT *cts, int headers, int verbose, int debug)
for (ctp = cts; *ctp; ctp++) {
ct = *ctp;
for (ctp = cts; *ctp; ctp++) {
ct = *ctp;
- list_single_message(ct, realsize, verbose, debug);
+ list_single_message(ct, verbose, debug);
** Entry point to list a single message
*/
static void
** Entry point to list a single message
*/
static void
-list_single_message(CT ct, int realsize, int verbose, int debug)
+list_single_message(CT ct, int verbose, int debug)
{
if (type_ok(ct, 1)) {
umask(ct->c_umask);
{
if (type_ok(ct, 1)) {
umask(ct->c_umask);
- list_switch(ct, 1, realsize, verbose, debug);
+ list_switch(ct, 1, verbose, debug);
if (ct->c_fp) {
fclose(ct->c_fp);
ct->c_fp = NULL;
if (ct->c_fp) {
fclose(ct->c_fp);
ct->c_fp = NULL;
** Primary switching routine to list information about a content
*/
int
** Primary switching routine to list information about a content
*/
int
-list_switch(CT ct, int toplevel, int realsize, int verbose, int debug)
+list_switch(CT ct, int toplevel, int verbose, int debug)
{
switch (ct->c_type) {
case CT_MULTIPART:
{
switch (ct->c_type) {
case CT_MULTIPART:
- return list_multi(ct, toplevel, realsize, verbose, debug);
+ return list_multi(ct, toplevel, verbose, debug);
break;
case CT_MESSAGE:
if (ct->c_subtype == MESSAGE_PARTIAL) {
break;
case CT_MESSAGE:
if (ct->c_subtype == MESSAGE_PARTIAL) {
- return list_partial(ct, toplevel, realsize, verbose,
- debug);
+ return list_partial(ct, toplevel, verbose, debug);
- return list_content(ct, toplevel, realsize, verbose,
- debug);
+ return list_content(ct, toplevel, verbose, debug);
case CT_IMAGE:
case CT_VIDEO:
case CT_APPLICATION:
case CT_IMAGE:
case CT_VIDEO:
case CT_APPLICATION:
- return list_content(ct, toplevel, realsize, verbose, debug);
+ return list_content(ct, toplevel, verbose, debug);
** Method for listing information about a simple/generic content
*/
int
** Method for listing information about a simple/generic content
*/
int
-list_content(CT ct, int toplevel, int realsize, int verbose, int debug)
+list_content(CT ct, int toplevel, int verbose, int debug)
{
unsigned long size;
char *cp, buffer[BUFSIZ];
{
unsigned long size;
char *cp, buffer[BUFSIZ];
empty(ci->ci_subtype));
printf(LSTFMT2b, empty(ct->c_partno), buffer);
empty(ci->ci_subtype));
printf(LSTFMT2b, empty(ct->c_partno), buffer);
- if (ct->c_cesizefnx && realsize)
size = (*ct->c_cesizefnx) (ct);
else
size = ct->c_end - ct->c_begin;
size = (*ct->c_cesizefnx) (ct);
else
size = ct->c_end - ct->c_begin;
** list content information for type "multipart"
*/
static int
** list content information for type "multipart"
*/
static int
-list_multi(CT ct, int toplevel, int realsize, int verbose, int debug)
+list_multi(CT ct, int toplevel, int verbose, int debug)
{
struct multipart *m = (struct multipart *) ct->c_ctparams;
struct part *part;
/* list the content for toplevel of this multipart */
{
struct multipart *m = (struct multipart *) ct->c_ctparams;
struct part *part;
/* list the content for toplevel of this multipart */
- list_content(ct, toplevel, realsize, verbose, debug);
+ list_content(ct, toplevel, verbose, debug);
/* now list for all the subparts */
for (part = m->mp_parts; part; part = part->mp_next) {
CT p = part->mp_part;
if (part_ok(p, 1) && type_ok(p, 1))
/* now list for all the subparts */
for (part = m->mp_parts; part; part = part->mp_next) {
CT p = part->mp_part;
if (part_ok(p, 1) && type_ok(p, 1))
- list_switch(p, 0, realsize, verbose, debug);
+ list_switch(p, 0, verbose, debug);
** list content information for type "message/partial"
*/
static int
** list content information for type "message/partial"
*/
static int
-list_partial(CT ct, int toplevel, int realsize, int verbose, int debug)
+list_partial(CT ct, int toplevel, int verbose, int debug)
{
struct partial *p = (struct partial *) ct->c_ctparams;
{
struct partial *p = (struct partial *) ct->c_ctparams;
- list_content(ct, toplevel, realsize, verbose, debug);
+ list_content(ct, toplevel, verbose, debug);
if (verbose) {
printf("\t [message %s, part %d",
p->pm_partid, p->pm_partno);
if (verbose) {
printf("\t [message %s, part %d",
p->pm_partid, p->pm_partno);
void flush_errors(void);
/* mhlistsbr.c */
void flush_errors(void);
/* mhlistsbr.c */
-int list_switch(CT, int, int, int, int);
-int list_content(CT, int, int, int, int);
+int list_switch(CT, int, int, int);
+int list_content(CT, int, int, int);
if (xlist) {
if (ct->c_type == CT_MULTIPART)
if (xlist) {
if (ct->c_type == CT_MULTIPART)
- list_content(ct, -1, 1, 0, 0);
+ list_content(ct, -1, 0, 0);
- list_switch(ct, -1, 1, 0, 0);
+ list_switch(ct, -1, 0, 0);