{
    "mode": "man",
    "parameter": "sendfiles",
    "section": "1mh",
    "url": "https://www.chedong.com/phpMan.php/man/sendfiles/1mh/json",
    "generated": "2026-06-15T13:13:34Z",
    "synopsis": "sendfiles [-help] [-version] [-compress bzip2 | compress | gzip | lzma | none]\n[-from sender] [-delay n | -n]\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] [-delay n | -n]\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”.  The archive will be au‐\ntomatically split up into as many messages as necessary in order to get past most mailers.\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\nSometimes you want sendfiles to pause after posting a partial message.  This is  usually  the\ncase  when  you  are  running sendmail and expect to generate a lot of partial messages.  The",
            "subsections": [
                {
                    "name": "-delay",
                    "content": "sendfiles -delay 30 -to recipient -subject “subject” files ...\n\nwill pause 30 seconds in between each posting.  An alternate form of the switch with just the\ndelay time, -30, for example, is also supported.\n"
                },
                {
                    "name": "Extracting the Received Files",
                    "content": "When  these messages are received, invoke mhstore once for the list of messages.  The default\nis for mhstore to store the combined parts as a new message in the current  folder,  although\nthis  can  be  changed using storage formatting strings.  You can then use mhlist to find out\nwhat's inside; possibly followed by mhstore again to write the archive to a  file  where  you\ncan subsequently uncompress and untar it.  For instance:\n\n% mhlist 5-8\nmsg part  type/subtype             size description\n5       message/partial           47K part 1 of 4\n6       message/partial           47K part 2 of 4\n7       message/partial           47K part 3 of 4\n8       message/partial           18K part 4 of 4\n% mhstore 5-8\nreassembling partials 5,6,7,8 to folder inbox as message 9\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 5-8\nmsg part  type/subtype             size description\n5       message/partial           47K part 1 of 4\n6       message/partial           47K part 2 of 4\n7       message/partial           47K part 3 of 4\n8       message/partial           18K part 4 of 4\n% mhstore 5-8\nreassembling partials 5,6,7,8 to folder inbox as message 9\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\n\n\nnmh-1.7.1                                    2012-11-14                               SENDFILES(1mh)",
            "subsections": []
        }
    },
    "summary": "sendfiles - send multiple files by MIME message with nmh",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "sendfiles -delay 30 -to recipient -subject “subject” files ... will pause 30 seconds in between each posting. An alternate form of the switch with just the delay time, -30, for example, is also supported."
        }
    ],
    "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"
        }
    ]
}