SENDFILES(1)
๐ธ SENDFILES(1) โ the sendfiles page, bestie edition ๐ธ
okay so this is a page from the General Commands Manual (it lives in the nmh family, iykyk) and it's literally about yeeting a whole pile of files at someone over email ๐
โจ NAME โจ
sendfiles โ send multiple files by MIME message with nmh ๐
โจ SYNOPSIS โจ
sendfiles [-help] [-version] [-compress bzip2 | compress | gzip | lzma |
none]
[-from sender]
-to recipient -subject subject | recipient subject
file/directory1 [file/directory2 ...]
โจ DESCRIPTION โจ
So. sendfiles is a shell script, and its whole job is sending a collection of files and directories via electronic mail ๐งโจ
Here's the vibe: sendfiles archives the files and directories you name using the tar command, and then it mails that compressed archive off to the recipient with the given subject. That's it, that's the whole moment ๐
-toโ this switch specifies the recipient ๐ซถ-subjectโ this switch specifies the subject โจ
and here's the cute part: those two required values can also just be handed over without their corresponding switch names. no switch, no problem, she'll figure it out ๐
-fromโ can, and should, be used to specify the sender's mailbox (name and email address). alternatively, thePERSONenvironment variable can be used for the same purpose ๐- if neither one is used,
sendfileswill supply aโFrom:โheader field using the sender's local mailbox โ seelocalmboxinmh-format(5)๐ฎ -compressโ this command line switch can be used to override the run-time determination of the compression program bysendfiles๐๏ธ-compress none(alternatively,-none) โ disables compression. that's it. raw archive, no zip, no thoughts, head empty ๐
๐ Extracting the Received Files ๐
bestie when the message lands, here's what you do: invoke mhstore once for the received message.
The default is for mhstore to write the archive to a file where you can subsequently uncompress and untar it. For instance:
$ mhlist -verbose 9
msg part type/subtype size description
9 application/octet-stream 118K
(extract with uncompress | tar xvpf -)
type=tar
conversions=compress
$ mhstore 9
$ uncompress < 9.tar.Z | tar xvpf -
Alternately, by using the -auto switch, mhstore will automatically do the extraction for you ๐โจ
$ mhlist -verbose 9
msg part type/subtype size description
9 application/octet-stream 118K
(extract with uncompress | tar xvpf -)
type=tar
conversions=compress
$ mhstore -auto 9
-- tar listing appears here as files are extracted
As the second tar listing is generated, the files are extracted ๐ฅ
okay listen, this is the important one: a prudent user will never put-autoin the.mh_profilefile. ๐จ The correct procedure is to first usemhlistto find out what will be extracted. Thenmhstorecan be invoked with-autoto perform the extraction. look before you leap, fr fr ๐
โจ FILES โจ
$HOME/.mh_profileโ The user profile ๐
โจ PROFILE COMPONENTS โจ
Path:โ To determine the user's nmh directory ๐Current-Folder:โ To find the default current folder ๐
โจ SEE ALSO โจ
mhbuild(1), mhlist(1), mhshow(1), mhstore(1), mh-format(5) ๐ซถ
Proposed Standard for Message Encapsulation (RFC 934) ๐
โจ DEFAULTS โจ
-delay 0-from localmbox
โจ CONTEXT โจ
None. nothing. not a single one. empty. the void. ๐ณ๏ธ
and that's the page, bestie!! this whole thing is from nmh-1.8, dated 2012-11-14 ๐ธโจ go forth and send your files, you absolute icon ๐๐
๐ฆ where this page comes from
- alpine 3.24: nmh-doc 1.8-r3 ยท BSD-3-Clause
- epel 10: nmh 1.8-3.el10_1 ยท BSD
- epel 9: nmh 1.8-1.el9 ยท BSD
- fedora 43: nmh 1.8-9.fc43 ยท LicenseRef-Callaway-BSD
- fedora 44: nmh 1.8-10.fc44 ยท LicenseRef-Callaway-BSD
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms