Path: utzoo!mnetor!tmsoft!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!usc!orion.oac.uci.edu!ucivax!jromine From: jromine@buckaroo.ics.uci.edu (John Romine) Newsgroups: comp.mail.mh Subject: Re: Can you associate user-defined status bits with each message? Message-ID: <27B109FD.656@ics.uci.edu> Date: 7 Feb 91 08:04:13 GMT References: <15482:Feb702:26:1891@kramden.acf.nyu.edu> Reply-To: jromine@ics.uci.edu (John Romine) Organization: UC Irvine Department of ICS Lines: 85 Nntp-Posting-Host: buckaroo.ics.uci.edu brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes: > I need to keep track of some status bits with each message: e.g., >``I've begun reading this,'' ``I've finished reading this,'' ``I've >sent some responses,'' ``I've finished sending responses,'' etc. I >should be able to configure the reader to understand these bits and to >read and set them automatically. Can I do this easily with mh? You bet! However, since MH doesn't use AI, it's going to be hard for it to decide when you've "finished sending responses", but you can flag messages easily yourself :-). I don't know if Jerry Peek mentions this technique in his excellent MH nutshell handbook, but here's what we do for our sysadmin group at UCI. First, let me describe our problem. It's slightly more complex than what you want to do, but is similar. Since our sysadmin staff share our "support" +inbox, we need to to alert staff members that a message is for them. We use "anno" to annotate messages with `flags', along with a modified scan format file to show these `flags' in the scan listing. I'll show these as csh aliases, but you could as easily make them shell scripts: alias attn 'anno -nodate -comp x-attn -text \!*' We use a staff member's initials for this flag, so an example would be: % attn jlr 43 Indicating that "jlr" (i.e., me) should answer message 43. The scan format file has a line added just after the date line which looks like: %<{x-attn}%3{x-attn}%| %> \ So a scan line of a message attn'd to "jlr" looks something like: 43 17/Jan jlr Joe Bob User enhancement request <%> \ and after marking message 43 with "todo jlr 43", the scan line looks like: 43 17/Jan jlr* Joe Bob User enhancement request < \ This technique has worked quite well for us. I'll be happy to answer any questions about this. -- John Romine