Article View: comp.mail.mush
Article #445Re: mush and mmdf help wanted
From: David S. Herron
Date: Sun, 22 Jul 1990 23:12
Date: Sun, 22 Jul 1990 23:12
52 lines
2309 bytes
2309 bytes
In article <1990Jul20.090225.5008@robobar.co.uk> ronald@robobar.co.uk (Ronald S H Khoo) writes:
</* -- begin extract from /usr/local/src/mmdf.upd43/src/uip/msg/msg.h */
<#define SIZEDATE 9
<#define SIZEFROM 30 /* ALSO change hdrfmt */
<#define SIZESUBJ 40 /* */
<#define SIZETO 30
<
</* Status structure, also exists at the front of a binary index file. */
<struct status {
< int ms_ident; /* "Magic Number" */
< long ms_time; /* Last time file was processed */
< unsigned ms_nmsgs; /* Number of messages processed */
< unsigned ms_curmsg; /* "Current" message */
< long ms_eofpos; /* Msg file eof position */
^^^^
< unsigned ms_markno; /* Marked message no */
< int ms_xxx1; /* Place holder - not used */
< int ms_xxx2; /* Place holder - not used */
< long ms_xxx3; /* Place holder - not used */
<};
<
<struct message {
< long start; /* Offset into file */
^^^^
< long len; /* Length of message */
< int flags; /* FLAGS word */
< long date;
< char datestr[SIZEDATE];
< char from[SIZEFROM];
< char to[SIZETO];
< char subject[SIZESUBJ];
<};
At least the two lines marked will at some point change to off_t and
be byte swapped using ntoh*() routines. For portability of binary
boxes across dissimilar systems.
Bart&Bob, if'n you get serious 'bout putting binary box mode into
mush I can arrange to give you source :-)..
<--
<Eunet: Ronald.Khoo@robobar.Co.Uk Phone: +44 81 991 1142 Fax: +44 81 998 8343
<Paper: Robobar Ltd. 22 Wadsworth Road, Perivale, Middx., UB6 7JD ENGLAND.
--
<- David Herron, an MMDF weenie, <david@twg.com>
<- Formerly: David Herron -- NonResident E-Mail Hack <david@ms.uky.edu>
<-
<- Sign me up for one "I survived Jaka's Story" T-shirt!
Technical Details
Message-ID:
<7646@gollum.twg.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!mips!twg.com!davidReferences:
<1990Jul18.143855.11452@murdoch.acc.Virginia.EDU> <1990Jul19.065835.11243@robobar.co.uk> <1990Jul19.155151.29977@murdoch.acc.Virginia.EDU> <1990Jul20.090225.5008@robobar.co.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!mips!twg.com!david From: david@twg.com (David S. Herron) Newsgroups: comp.mail.mush Subject: Re: mush and mmdf help wanted Message-ID: <7646@gollum.twg.com> Date: 22 Jul 90 23:12:28 GMT References: <1990Jul18.143855.11452@murdoch.acc.Virginia.EDU> <1990Jul19.065835.11243@robobar.co.uk> <1990Jul19.155151.29977@murdoch.acc.Virginia.EDU> <1990Jul20.090225.5008@robobar.co.uk> Reply-To: david@twg.com (David S. Herron) Organization: The Wollongong Group, Palo Alto, CA Lines: 52