OnWorks favicon

chewmail - Online in the Cloud

Run chewmail in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command chewmail that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



chewmail - mail archiver


chewmail [OPTIONS] <MAILBOX> ...


chewmail is a program for archiving mail. It is inspired by the by the Python-based
archivemail, but with more useful semantics. All mail is archived to the mailbox specified
with the --output-box switch, in mbox format. It can read mailboxes in mbox, Maildir and
MH formats.

Internally, chewmail uses Mail::Box, so it support file names and URLs supported by that


-o mailbox-format, --output-box=mailbox-format
The mailbox to archive messages to. The mailbox is run through the Date::Format
module, so it supports all it's conversion specifiers. The date and time is relative
to the messages timestamp, or the current time if the timestamp is impossible to
determine. A sample of the conversion specifiers follows:

%b month abbr
%B month
%d numeric day of the month, with leading zeros (eg 01..31)
%e numeric day of the month, without leading zeros (eg 1..31)
%G GPS week number (weeks since January 6, 1980)
%h month abbr
%H hour, 24 hour clock, leading 0's)
%I hour, 12 hour clock, leading 0's)
%j day of the year
%k hour
%l hour, 12 hour clock
%L month number, starting with 1
%m month number, starting with 01
%o ornate day of month -- "1st", "2nd", "25th", etc.
%t TAB
%U week number, Sunday as first day of week
%w day of the week, numerically, Sunday == 0
%W week number, Monday as first day of week
%x date format: 11/19/94
%y year (2 digits)
%Y year (4 digits)

-d days-old, --days=days-old
Only archive messages older than than this many days.

-D date, --date=date
Only archive messages old than this date. The date can be any date understood by
Perl's Date::Parse module.

-R, --only-read
Only archive messages that are marked seen or read.

Synchonize the mailboxes after every message is moved. This will be substantially
slower but may provide better recovery for some mailbox formats in the event of a

Preserve the atime and mtime of the input mailbox. This only affects file-based
mailboxes, such as mbox.

-n, --dry-run
Go through all the motions of archiving the mail, but don't actually change any

-v, --verbose
Output more informational messages. Use multiple times for more verbosity.

-q, --quiet
Don't output any messages other than error messages.

-V, --version
Print the version number then exit.

-h, --help
Print usage information then exit.


Archive two day old messages in inbox to inbox-old:

chewmail --days 2 -o inbox-old inbox

Archive read messages to a mailbox named the year-month of the message:

chewmail --only-read -o %Y-%m inbox

Use chewmail online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Eclipse Tomcat Plugin
    Eclipse Tomcat Plugin
    The Eclipse Tomcat Plugin provides
    simple integration of a tomcat servlet
    container for the development of java
    web applications. You can join us for
    Download Eclipse Tomcat Plugin
  • 2
    WebTorrent Desktop
    WebTorrent Desktop
    WebTorrent Desktop is for streaming
    torrents on Mac, Windows or Linux. It
    connects to both BitTorrent and
    WebTorrent peers. Now there's no
    need to wait for...
    Download WebTorrent Desktop
  • 3
    GenX is a scientific program to refine
    x-ray refelcetivity, neutron
    reflectivity and surface x-ray
    diffraction data using the differential
    evolution algorithm....
    Download GenX
  • 4
    PSPP is a program for statistical
    analysis of sampled data. It is a free
    replacement for the proprietary program
    SPSS. PSPP has both text-based and
    graphical us...
    Download pspp4windows
  • 5
    Git Extensions
    Git Extensions
    Git Extensions is a standalone UI tool
    for managing Git repositories. It also
    integrates with Windows Explorer and
    Microsoft Visual Studio
    (2015/2017/2019). Th...
    Download Git Extensions
  • 6
    This is an application that can also be
    fetched from
    It has been hosted in OnWorks in order
    to be run online in an easi...
    Download jtdx
  • 7
    eSpeak: speech synthesis
    eSpeak: speech synthesis
    Text to Speech engine for English and
    many other languages. Compact size with
    clear but artificial pronunciation.
    Available as a command-line program with
    many ...
    Download eSpeak: speech synthesis
  • More »

Linux commands