ifrom(1)

ifrom1

One line per message summary of imap mailbox

Usage

ifrom [-l][-s][-n][-t][-f][-d][-h] mailbox

Overview

ifrom is a program which produces a one-line-per-message summary of a mailbox using the IMAP protocol. The summary line contains:

Msg# Status: From: Date Subject:

The mailbox argument is required and can be any valid IMAP mailbox specification. Typically one would use: {imapserver.domain}inbox to summarize their inbox. The specification: {newshost.domain/nntp}comp.os.unix can be used to summarize the contents of a newsgroup.

If the -h flag is given, some very crude usage is supplied.

If the -l flag is given, the From: and Subject: fields are not truncated to fit an 80 column terminal display. This makes ifrom output suitable for piping to grep.

If the -s flag is given, the Status field is omitted making the from field longer.

If the -n flag is given, the Msg# field is omitted making the subject field longer.

If the -d flag is given, the date field is omitted (including the time) making the subject field longer.

If the -t flag is given, the time portion of the date field is omitted making the subject field longer.

If the -f flag is given, From: Real Name <email> is re-written as email (Real Name).

Examples

Check most recent mail:

ifrom '{mailserver}inbox' | tail
Note that the quotes are required to protect the braces from the shell.

Look for news postings with summary lines matching 'search-pattern':

ifrom -l '{news/nntp}comp.os.pine' | grep search-pattern

Releases

Unchanged in 2 releases since Debian 2.2 (Potato).

  1. 2.2–3.0

Bugs

Most likely there are some.

Author

Eric Horst, [email protected]

From uw-imapd 4:2001adebian-6 in Debian 3.0 (Woody). Also shipped by uw-imapd-ssl. Parsed by carta from the page's man source.