EnglishFrenchSpanish

Ad


OnWorks favicon

reformail - Online in the Cloud

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

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


reformail - E-mail reformatting tool

SYNOPSIS


reformail -s command [option...]

reformail -D len filename

reformail -x header:...

reformail -X header:...

reformail [options...]

See below for additional options

DESCRIPTION


The reformail program reads a message on standard input, reformats it in some way, and
writes the message to standard output:

Splitting mailboxes into individual messages
The -s option splits the mbox-formatted mailbox file on standard input into individual
messages. An external program is executed for each message. The contents of each
individual message will be provided to the external program on standard input.

If the FILENO environment variable is set to a number, reformail will consecutively
increment FILENO each time the program is executed for each individual message.

If FILENO is not set, it's initial value will be "000". If FILENO is set to a non-numeric
value, FILENO will remain unchanged.

Detecting duplicate messages
The -D option implements a simple way to delete duplicate messages in incoming mail.
filename is a file that will be approximately 'len' bytes long. This file will be used by
reformail to save message IDs seen in recent mail. reformail reads the message on
standard input. If the message has a Message-ID: header that's already in the cache file,
reformail terminates with the exit code set to 0. Otherwise, reformail terminates with the
exit code set to 1.

Note
Unlike a similar feature in the formail command, reformail takes care of locking the
file, so it's not necessary to implement your own locking mechanism for this option.

Extracting headers
The -x and -X options extract the indicated headers from the message, and print them to
standard output. Multiple -x and -X options can be specified at the same time, and may be
intermixed.

The -x option extracts and prints the contents of the header. The -X option prints the
name of the header as well.

In all other situations, reformail copies the message on its standard input to its
standard output, reformatting the message as follows:

OPTIONS


-a'header: value'
Append a custom header to the message if this header does not already exist. If the
header is either Message-ID: or Resent-Message-ID: and the value is empty, reformail
generates a (hopefully) unique message ID for you.

-A'header: value'
Append a custom header to the message even if this header already exists. If the
header is either Message-ID: or Resent-Message-ID: and the value is empty, reformail
generates a (hopefully) unique message ID for you.

-c
Concatenate multi-line headers. Headers split on multiple lines are combined into a
single line.

-dn
If n is 1, each line will be terminated with CRLF. If n is 0 (default), each line will
be terminated with LF. reformail reads a message with either line terminator, and
will force the message to have the specified line termination.

-f0
Any initial blank lines are removed. If the first non-blank line is a "From_" line, it
gets converted to a "Return-Path:" header, and any existing "Return-Path:" header gets
removed. If the message does not start with a "From_" line, the message remains
unchanged.

-f1
Add the "From_" line to the message, if it's not there. reformail will attempt to
generate the "From_" line from any Errors-To:, Return-Path:, or From: headers in the
message. "root" will be used if reformail is unable to determine the return address.

-i'header: value'
Appends a custom header to the message. If this header already exists it is renamed by
prepending "Old-" to the name of the header.

-I'header: value'
Append a custom header to the message. If this header already exists in the message,
the old header is completely removed. If the value is empty, any existing header is
completely removed, and nothing gets appended.

-R oldheader: newheader:
Rename the indicated header.

-u'header:'
If this header occurs multiple times in the message, remove all occurrences except the
first one.

-U'header:'
If this header occurs multiple times in the message, remove all occurrences except the
last one.

AUTOREPLIES


The autoreply options from earlier versions of mailbot have been moved into mailbot(1)[1].

Use reformail online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    AstrOrzPlayer
    AstrOrzPlayer
    AstrOrz Player is a free media player
    software, part based on WMP and VLC. The
    player is in a minimalist style, with
    more than ten theme colors, and can also
    b...
    Download AstrOrzPlayer
  • 2
    movistartv
    movistartv
    Kodi Movistar+ TV es un ADDON para XBMC/
    Kodi que permite disponer de un
    decodificador de los servicios IPTV de
    Movistar integrado en uno de los
    mediacenters ma...
    Download movistartv
  • 3
    Code::Blocks
    Code::Blocks
    Code::Blocks is a free, open-source,
    cross-platform C, C++ and Fortran IDE
    built to meet the most demanding needs
    of its users. It is designed to be very
    extens...
    Download Code::Blocks
  • 4
    Amidst
    Amidst
    Amidst or Advanced Minecraft Interface
    and Data/Structure Tracking is a tool to
    display an overview of a Minecraft
    world, without actually creating it. It
    can ...
    Download Amidst
  • 5
    MSYS2
    MSYS2
    MSYS2 is a collection of tools and
    libraries providing you with an
    easy-to-use environment for building,
    installing and running native Windows
    software. It con...
    Download MSYS2
  • 6
    libjpeg-turbo
    libjpeg-turbo
    libjpeg-turbo is a JPEG image codec
    that uses SIMD instructions (MMX, SSE2,
    NEON, AltiVec) to accelerate baseline
    JPEG compression and decompression on
    x86, x8...
    Download libjpeg-turbo
  • More »

Linux commands

  • 1
    abi-tracker
    abi-tracker
    abi-tracker - visualize ABI changes
    timeline of a C/C++ software library.
    DESCRIPTION: NAME: ABI Tracker
    (abi-tracker) Visualize ABI changes
    timeline of a C/C+...
    Run abi-tracker
  • 2
    abicheck
    abicheck
    abicheck - check application binaries
    for calls to private or evolving symbols
    in libraries and for static linking of
    some system libraries. ...
    Run abicheck
  • 3
    couriermlm
    couriermlm
    couriermlm - The Courier mailing list
    manager ...
    Run couriermlm
  • 4
    couriertcpd
    couriertcpd
    couriertcpd - the Courier mail server
    TCP server daemon ...
    Run couriertcpd
  • 5
    gbklatex
    gbklatex
    bg5latex - Use LaTeX directly on a Big5
    encodedtex file bg5pdflatex - Use
    pdfLaTeX directly on a Big5 encodedtex
    file bg5+latex - Use LaTeX directly on a
    Big5+...
    Run gbklatex
  • 6
    gbkpdflatex
    gbkpdflatex
    bg5latex - Use LaTeX directly on a Big5
    encodedtex file bg5pdflatex - Use
    pdfLaTeX directly on a Big5 encodedtex
    file bg5+latex - Use LaTeX directly on a
    Big5+...
    Run gbkpdflatex
  • More »

Ad