statmbx

This is a program that allows you to check your mail without starting a mail client. I really like it because I will spend forever reading mailing lists once I get started and having a quick check of "is there anything in my box I should deal with right now" is nice.

It reads mbox files (tested only with mutt) and prints out something that looks like this:

[chat]
  Joe Smith                    Neat Idea
  Jane Doe                     Re: Neat Idea

[sccs]
  Mike Jones                   Have you done any work yet?
  Millie Daain                 Fwd: stupid chain email
  Millie Daain                 Fwd: more chain email, with a *really* long titl...

Configuration

By default, statmbx reads from "~/.statmbx". If you want it to read from elsewhere, change the value of STATMBX_CONFIG_FILE_NAME and recompile. This file should look like:
__SENT__ mail/sent-mail
#[sillyness] mail/a-list-I-dont-care-about
#[archived] mail/archived-mail
[swil] mail/swil
[debate] mail/debate
[chat] mail/chat
[other] mail/other
[events] mail/events
[sccs] .mail
The format is "displayname -- space -- location relative to your home directory". Blank lines and lines with "#" in initial position are ignored. "__SENT__" is the name for the sent folder. If you leave it out, the program is fine. If you include it, the program does not try and print unread messages from it or anything, but scans it in order to see if messages in other folders are replies to messages you have sent. These boxes are listed in program output in the order listed in the config file.

Note: By default, messages that are replies to one you sent will be bolded with escape codes. To disable this, set the compile time flag STATMBX_DO_BOLD to 0

Download

Version: 0.1

Source: statmbx.c
Linux x86-32 binary: statmbx

Installation

This program should work on any unix. Maybe only linux. Might work on windows with cygwin. Download the source file, compile it, set up ".statmbx", run it.