🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.mush
Article #436

Re: mush and mmdf help wanted

#436
From: Ronald S H Khoo
Date: Fri, 20 Jul 1990 09:02
71 lines
3230 bytes
[ Bart, a short description of ._.mail format is below.  Don't hit 'n' yet! ]

In article <1990Jul19.155151.29977@murdoch.acc.Virginia.EDU> mer6g@virginia.acc.Virginia.EDU (Marc Rouleau) writes:

> Oh, so mush isn't trashing the file, it's just changing the system
> mailbox so that ._.mail is no longer relevant.  It's hard to see
> how you could use both mush AND msg.

Hack fix: modify mush to throw away the ._.mail file when it re-writes
the mailbox.  msg will recreate it.  After all, that's what msg tells
you to do anyway, so you might as well do it automagically.

>>perhaps the guy
>>who did the original mmdf support ?

>That's me, and I'm not volunteering. :-)

Oooops!  Sorry ... :-)

[ submit in toplevel of /usr/mmdf ]

>If that's true for all MMDFs (not just spinoffs like that of SCO Unix),

I dunno about ALL MMDF's, but that's the default in the current MMDF
source distribution.  I have a box of SCO Unix in the corridor delivered
this morning to play with, so guess what I'm going to do with their
MMDF ? :-)

>    -- Marc Rouleau

Hm.  msg is 5000 lines of code, in files called msg[0-6].c :-( However,
the structure of the ._.mail file is found in msg.h.  It consists of 1
struct status followed by n struct message records.  Obviously there may
be more than n messages in .mail if any mail has arrived since the last
time msg was fired up.  Quoting from msg.h, probably in violation of
some UDel license :-) -- note that datestr simply contains stuff like
"20 Jul 90" -- Bart, I'll look harder at it if you think it's worth it,
and if you think that this will fit into mush at all.

/* -- 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];
};
-- 
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.
Technical Details
Message-ID: <1990Jul20.090225.5008@robobar.co.uk>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!ukc!stl!robobar!ronald
References: <1990Jul18.143855.11452@murdoch.acc.Virginia.EDU> <1990Jul19.065835.11243@robobar.co.uk> <1990Jul19.155151.29977@murdoch.acc.Virginia.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!ukc!stl!robobar!ronald
From: ronald@robobar.co.uk (Ronald S H Khoo)
Newsgroups: comp.mail.mush
Subject: Re: mush and mmdf help wanted
Message-ID: <1990Jul20.090225.5008@robobar.co.uk>
Date: 20 Jul 90 09:02:25 GMT
References: <1990Jul18.143855.11452@murdoch.acc.Virginia.EDU> <1990Jul19.065835.11243@robobar.co.uk> <1990Jul19.155151.29977@murdoch.acc.Virginia.EDU>
Organization: Robobar Ltd., Perivale, Middx., ENGLAND.
Lines: 71