GNU Mailutils Manual (split by node):   Section:   Chapter:FastBack: Programs   Up: Programs   FastForward: Libraries   Contents: Table of ContentsIndex: Function Index

3.7 movemail — Moves Mail from the User Maildrop to the Local File

The purpose of movemail, as its name implies, is to move mail from one location to another. For example, the following invocation:

movemail /var/mail/smith INBOX

moves messages from file /var/mail/smith to file INBOX.

The program was initially intended as a replacement for movemail from GNU Emacs. The movemail program is run by Emacs Rmail module. See Rmail in Reading Mail with Rmail, for detailed description of Rmail interface.

Mailutils version of movemail is fully backward-compatible with its Emacs predecessor, so it should run flawlessly with older versions of Emacs. Emacs versions starting from 22.1 contain improved Rmail interface and are able to take advantage of all new features mailutils movemail provides.

Apart from that use, movemail proved to be a useful tool for incorporating mail from remote mailboxes into the local one. See Fetching Mail with Movemail, for a detailed discussion with usage recipes.