{
    "mode": "man",
    "parameter": "sendfiles",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/sendfiles/1/json",
    "generated": "2026-09-05T11:48:44Z",
    "synopsis": "sendfiles [-help] [-version] [-compress bzip2 | compress | gzip | lzma | none]\n[-from sender]\n-to recipient -subject subject | recipient subject\nfile/directory1 [file/directory2 ...]",
    "sections": {
        "NAME": {
            "content": "sendfiles - send multiple files by MIME message with nmh\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "sendfiles [-help] [-version] [-compress bzip2 | compress | gzip | lzma | none]\n[-from sender]\n-to recipient -subject subject | recipient subject\nfile/directory1 [file/directory2 ...]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The  shell  script  sendfiles is used to send a collection of files and directories via elec‐\ntronic mail.\n\nsendfiles will archive the files and directories you name with the tar command, and then mail\nthe compressed archive to the “recipient” with the given “subject”.\n\nThe -to switch specifies the recipient.  The -subject switch specifies the subject.  Alterna‐\ntively, these two required values can be provided without their corresponding switch names.\n\nThe -from switch can, and should, be used to specify the sender's mailbox (name and email ad‐\ndress).  Alternatively, the PERSON environment variable can be used for the same purpose.  If\nneither is used, sendfiles will supply a “From:” header field using the sender's local  mail‐\nbox, see localmbox in mh-format(5).\n\nThe  -compress  command line switch can be used to override the run-time determination of the\ncompression program by sendfiles.  -compress none (alternatively,  -none)  disables  compres‐\nsion.\n",
            "subsections": [
                {
                    "name": "Extracting the Received Files",
                    "content": "When  the  message is received, invoke mhstore once for the received message.  The default is\nfor mhstore to write the archive to a file where you can subsequently  uncompress  and  untar\nit.  For instance:\n\n$ mhlist -verbose 9\nmsg part  type/subtype             size description\n9       application/octet-stream 118K\n(extract with uncompress | tar xvpf -)\ntype=tar\nconversions=compress\n$ mhstore 9\n$ uncompress < 9.tar.Z | tar xvpf -\n\nAlternately, by using the -auto switch, mhstore will automatically do the extraction for you:\n\n$ mhlist -verbose 9\nmsg part  type/subtype             size description\n9       application/octet-stream 118K\n(extract with uncompress | tar xvpf -)\ntype=tar\nconversions=compress\n$ mhstore -auto 9\n-- tar listing appears here as files are extracted\n\nAs  the  second tar listing is generated, the files are extracted.  A prudent user will never\nput -auto in the .mhprofile file.  The correct procedure is to first use mhlist to find  out\nwhat will be extracted.  Then mhstore can be invoked with -auto to perform the extraction.\n"
                }
            ]
        },
        "FILES": {
            "content": "$HOME/.mhprofile          The user profile\n",
            "subsections": []
        },
        "PROFILE COMPONENTS": {
            "content": "Path:                To determine the user's nmh directory\nCurrent-Folder:      To find the default current folder\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "mhbuild(1), mhlist(1), mhshow(1), mhstore(1), mh-format(5)\n\nProposed Standard for Message Encapsulation (RFC 934)\n",
            "subsections": []
        },
        "DEFAULTS": {
            "content": "`-delay 0'\n`-from localmbox'\n",
            "subsections": []
        },
        "CONTEXT": {
            "content": "None\n\nnmh-1.8                                      2012-11-14                               SENDFILES(1mh)",
            "subsections": []
        }
    },
    "summary": "sendfiles - send multiple files by MIME message with nmh",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "mhbuild",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/mhbuild/1/json"
        },
        {
            "name": "mhlist",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/mhlist/1/json"
        },
        {
            "name": "mhshow",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/mhshow/1/json"
        },
        {
            "name": "mhstore",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/mhstore/1/json"
        },
        {
            "name": "mh-format",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/mh-format/5/json"
        }
    ]
}