EnglishFrenchSpanish

Ad


OnWorks favicon

mailexec - Online in the Cloud

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

This is the command mailexec 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

PROGRAM:

NAME


mailexec - run program on messages in mbox file or maildir

SYNOPSIS


mailexec [-nvFR] mailbox program [arg ...]

DESCRIPTION


mailexec runs a program over every message in mailbox, which must be an mbox-format mail
file or maildir directory. For each message encountered, mailexec executes program with
the specified arguments, supplying the message as standard input. mailexec synthesizes a
"From " line and a "Return-Path:" header field for each message if the message does not
already contain one. (This behavior can be modified by the -F and -R flags, described
below.)

When parsing mbox format files, mailexec unescapes "From " lines. If a line begins with
one or more ">" characters followed by "From ", mailexec deletes one of the ">"
characters. If you do not want this unescaping behavior, see the formail(1) utility,
which has a -s flag that performs a similar function to mailexec.

OPTIONS
-n When processing a maildir, causes mailexec to look exclusively at "new" messages that
have not yet been moved to the cur directory.

-v Turns on verbose mode. If mailbox is a maildir, mailexec prints out the name of each
file it processes inside the maildir. If mailbox is an mbox format file, mailexec
prints the message-id of each message it processes (as long as messages have a
message-id header).

-F Suppresses printing of the initial "From " line at the beginning of each message.

-R Suppresses printing of initial "Return-Path:" lines.

EXAMPLES


To get the same behavior as the Unix from(1) command on a mail directory dir, you can run
either of the following two commands:

mailexec -n dir head -1
mailexec -n dir sed -ne 1p

To convert an mbox-format file mbox into a maildir directory dir, you can run:

mailexec mbox deliver dir/

Conversely, to convert maildir dir into an mbox-format file mbox, run:

mailexec dir deliver mbox

To train the spamassassin filter on a mail folder called spam containing unwanted
messages, run:

mailexec spam sa-learn --spam

Note that this works whether spam is an mbox format file or a maildir directory.

If you have an old mbox file or maildir directory box and wish to "import" the old mail
into your web mail account, say example@gmail.com, you can run:

mailexec -F box sendmail example@gmail.com

Note again that this works whether box is an mbox format file or a maildir directory.

Use mailexec online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    wxPython
    wxPython
    A set of Python extension modules that
    wrap the cross-platform GUI classes from
    wxWidgets.. Audience: Developers. User
    interface: X Window System (X11), Win32 ...
    Download wxPython
  • 2
    packfilemanager
    packfilemanager
    This is the Total War pack file manager
    project, starting from version 1.7. A
    short introduction into Warscape
    modding: ...
    Download packfilemanager
  • 3
    IPerf2
    IPerf2
    A network traffic tool for measuring
    TCP and UDP performance with metrics
    around both throughput and latency. The
    goals include maintaining an active
    iperf cod...
    Download IPerf2
  • 4
    fre:ac - free audio converter
    fre:ac - free audio converter
    fre:ac is a free audio converter and CD
    ripper for various formats and encoders.
    It features MP3, MP4/M4A, WMA, Ogg
    Vorbis, FLAC, AAC, and Bonk format
    support, ...
    Download fre:ac - free audio converter
  • 5
    BotMan
    BotMan
    Write your chatbot logic once and
    connect it to one of the available
    messaging services, including Amazon
    Alexa, Facebook Messenger, Slack,
    Telegram or even yo...
    Download BotMan
  • 6
    gerbv  a Gerber (RS-274X) viewer
    gerbv a Gerber (RS-274X) viewer
    Gerbv is an open source Gerber file
    (RS-274X only) viewer. Gerbv lets you
    load several files on top of each other,
    do measurements on the displayed image,
    etc. ...
    Download gerbv a Gerber (RS-274X) viewer
  • 7
    Iometer
    Iometer
    I/O performance Analysis Tool.
    Audience: Developers, Information
    Technology, Science/Research, System
    Administrators. User interface: Win32
    (MS Windows). Progr...
    Download Iometer
  • More »

Linux commands

Ad