1SENDFILES(1)                General Commands Manual               SENDFILES(1)
2
3
4

NAME

6       sendfiles - send multiple files by MIME message with nmh
7

SYNOPSIS

9       sendfiles [-help] [-version] [-compress bzip2 | compress | gzip | lzma
10            | none]
11            [-from sender]
12            -to recipient -subject subject | recipient subject
13            file/directory1 [file/directory2 ...]
14

DESCRIPTION

16       The shell script sendfiles is used to send a collection  of  files  and
17       directories via electronic mail.
18
19       sendfiles  will archive the files and directories you name with the tar
20       command, and then mail the compressed archive to the  “recipient”  with
21       the given “subject”.
22
23       The  -to switch specifies the recipient.  The -subject switch specifies
24       the subject.  Alternatively, these two required values can be  provided
25       without their corresponding switch names.
26
27       The -from switch can, and should, be used to specify the sender's mail‐
28       box (name and email address).  Alternatively,  the  PERSON  environment
29       variable  can  be used for the same purpose.  If neither is used, send‐
30       files will supply a “From:” header field using the sender's local mail‐
31       box, see localmbox in mh-format(5).
32
33       The  -compress command line switch can be used to override the run-time
34       determination of the compression program by sendfiles.  -compress  none
35       (alternatively, -none) disables compression.
36
37   Extracting the Received Files
38       When the message is received, invoke mhstore once for the received mes‐
39       sage.  The default is for mhstore to write the archive to a file  where
40       you can subsequently uncompress and untar it.  For instance:
41
42            $ mhlist -verbose 9
43             msg part  type/subtype             size description
44               9       application/octet-stream 118K
45                         (extract with uncompress | tar xvpf -)
46                         type=tar
47                         conversions=compress
48            $ mhstore 9
49            $ uncompress < 9.tar.Z | tar xvpf -
50
51       Alternately,  by  using the -auto switch, mhstore will automatically do
52       the extraction for you:
53
54            $ mhlist -verbose 9
55             msg part  type/subtype             size description
56               9       application/octet-stream 118K
57                         (extract with uncompress | tar xvpf -)
58                         type=tar
59                         conversions=compress
60            $ mhstore -auto 9
61            -- tar listing appears here as files are extracted
62
63       As the second tar listing is generated, the  files  are  extracted.   A
64       prudent user will never put -auto in the .mh_profile file.  The correct
65       procedure is to first use mhlist to find out what  will  be  extracted.
66       Then mhstore can be invoked with -auto to perform the extraction.
67

FILES

69       $HOME/.mh_profile          The user profile
70

PROFILE COMPONENTS

72       Path:                To determine the user's nmh directory
73       Current-Folder:      To find the default current folder
74

SEE ALSO

76       mhbuild(1), mhlist(1), mhshow(1), mhstore(1), mh-format(5)
77
78       Proposed Standard for Message Encapsulation (RFC 934)
79

DEFAULTS

81       `-delay 0'
82       `-from localmbox'
83

CONTEXT

85       None
86
87
88
89nmh-1.8                           2012-11-14                      SENDFILES(1)
Impressum