imaputil
Posted 2002-07-02 18:56. Last updated 2007-12-18 07:50. Tagged project, email, imap, perl.
Some simple command-line utilities for mail management over imap.
Since imap is a nice protocol to handle email messages independent of MUA, some functionality is wanted MUA-independently. imaputil is a few simple perl programs to run in a command line context.
These utilities depend on an external program to connect to the server
and take care of the Kerberos and/or SSL stuff.
I use imtest
from the
cyrus-imap package, but it
should be easily replaceable.
Update 2007-12-18 07:50: A new release: imaputil 0.6 is on the ftp server.
- The imap-append command is addedd.
- Manual page corrections.
Update 2006-10-16 17:50: A new release: imaputil 0.5 is on the ftp server.
- The imap-quota command is rewritten to actually use the imap protocol with the IMAP QUOTA extension.
- All the commands now use
$MAILHOST
from the environment as the default imap server.
Update 2004-07-29 12:00: imaputil 0.4 is released. This release builds on imaputil 0.3, which is a merge by Mattias Amnefelt of my code and a similar project by Max Zomborszki.
Relase 0.4 tells the imap server which users mailbox to access, and
adds a “-u
user
” flag to change it.
The imap-du
program now got a “-x
” flag to make output suitable
for xdu
.
In release 0.3, program names was changed from e.g. imdu
to more
verbose names like imap-du
, and imap-quota
and imap-listfolders
from Max’s project was added.
Update 2002-07-09 12:00:
imaputil 0.2 is now released. This release introduces the imdu
program, some new options, and a man page for each program.
Update 2002-07-02 18:56: I have released imaputil 0.1. This is the initial release of imaputil.
Programs
imap-from
Lists unread messages in a specified set of folders. Each unread message is displayed on a line with the from address (optionally real-name only) and the subject.
Mime-escaped strings are decoded (at least for quoted printable).
imap-du
Calculates the size of folders, like the classic du
Unix command.
Whether it displays the size of just each folder or each folder with
sub folders, is optional.
imap-msgchk
List your folders, with total and unread number of messages in each.
imap-quota
Report your usage and quota of mail storage, as reported by the IMAP QUOTA extension.
imap-append
Appends one or more files (messages) to a folder on the imap server, creating the folder if necessary.
Availability
Imaputil is copyright by KTH, Rasmus Kaj and Max Zomborszki, but availiable by a BSD-style licence.
Source distributions can be downloaded from ftp://ftp.stacken.kth.se/pub/projects/imaputil/.
Comments
Write a comment