From 611d68d19204d7cbf5bd585391249cb5bafca846 Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Sat, 24 Mar 2012 18:30:19 +0100 Subject: [PATCH] CHANGE OF THE DECADE: I finally gave m_unknown() a name: thisisanmbox(). The ``magic invocation'' of this function informs m_getfld() that it is reading a packed mbox file and not an MH-style (one-file-per-message) file. m_getfld() needs to care for message delimiters then. The ``magic'' of m_unknown() had vanished some time ago, already. Back then, it needed to guess which kind of mailbox format the file is. With dropping the support for MMDF (^A^A^A^A) maildrops, we converted m_unknown() into a plain dump function ... and now, it also got a boring name. Well ... --- h/prototypes.h | 2 +- sbr/m_getfld.c | 2 +- uip/inc.c | 2 +- uip/scan.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/h/prototypes.h b/h/prototypes.h index 94ee2b9..bb4c38b 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -71,7 +71,7 @@ char *m_name(int); int m_putenv(char *, char *); char *m_mktemp(const char *, int *, FILE **); char *m_mktemp2(const char *, const char *, int *, FILE **); -void m_unknown(FILE *); +void thisisanmbox(FILE *); int makedir(char *); char *nmh_getpass(const char *); char *norm_charmap(char *); diff --git a/sbr/m_getfld.c b/sbr/m_getfld.c index 548b3ea..df48026 100644 --- a/sbr/m_getfld.c +++ b/sbr/m_getfld.c @@ -615,7 +615,7 @@ finish: static char fromline[BUFSIZ] = ""; void -m_unknown(FILE *iob) +thisisanmbox(FILE *iob) { register int c; register long pos; diff --git a/uip/inc.c b/uip/inc.c index be6be22..98fffef 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -365,7 +365,7 @@ main(int argc, char **argv) /* ** Get the mail from file (usually mail spool) */ - m_unknown(in); /* the MAGIC invocation... */ + thisisanmbox(in); hghnum = msgnum = mp->hghmsg; for (;;) { /* diff --git a/uip/scan.c b/uip/scan.c index 92dadf6..5cdd5b9 100644 --- a/uip/scan.c +++ b/uip/scan.c @@ -125,7 +125,7 @@ main(int argc, char **argv) adios(file, "unable to open"); } - m_unknown(in); + thisisanmbox(in); for (msgnum = 1; ; ++msgnum) { state = scan(in, msgnum, SCN_MBOX, fmtstr, width, 0, 0); if (state != SCNMSG) -- 1.7.10.4