5 .\" include the -mh macro file
8 .TH SENDFILES %manext1% MH.6.8 [%nmhversion%]
10 sendfiles \- send multiple files via a MIME message
14 sendfiles \%[delay] mailpath subject file1 \%[file2]...
18 The shell script \fIsendfiles\fR, is used to send a collection
19 of files and directories via electronic mail.
22 sendfiles mailpath \*(lqsubject\*(rq files\0...
25 \fIsendfiles\fR will archive the files and directories you name
26 with the \fItar\fR\0(1) command, and then mail the compressed
27 archive to the `mailpath' with the given `subject'. The archive
28 will be automatically split up into as many messages as necessary
29 in order to get past most mailers.
31 Sometimes you want \fIsendfiles\fR to pause after posting a partial
32 message. This is usually the case when you are running \fIsendmail\fR
33 and expect to generate a lot of partial messages. If the first
34 argument given to \fIsendfiles\fR starts with a dash, then it is
35 interpreted as the number of seconds to pause in between postings,
40 sendfiles -30 mailpath \*(lqsubject\*(rq files\0...
43 will pause 30 seconds in between each posting.
45 .Uh "Extracting the Received Files"
46 When these messages are received, invoke \fImhstore\fR once for
47 the list of messages. The default is for \fImhstore\fR to store
48 the combined parts as a new message in the current folder, although
49 this can be changed using storage formatting strings. You can then
50 use \fImhlist\fR to find out what's inside; possibly followed by
51 \fImhstore\fR again to write the archive to a file where you can
52 subsequently uncompress and untar it. For instance:
57 msg part type/subtype size description
58 5 message/partial 47K part 1 of 4
59 6 message/partial 47K part 2 of 4
60 7 message/partial 47K part 3 of 4
61 8 message/partial 18K part 4 of 4
63 reassembling partials 5,6,7,8 to folder inbox as message 9
65 msg part type/subtype size description
66 9 application/octet-stream 118K
67 (extract with uncompress | tar xvpf -)
71 % uncompress < 9.tar.Z | tar xvpf -
75 Alternately, by using the `\-auto' switch, \fImhstore\fR will
76 automatically do the extraction for you:
81 msg part type/subtype size description
82 5 message/partial 47K part 1 of 4
83 6 message/partial 47K part 2 of 4
84 7 message/partial 47K part 3 of 4
85 8 message/partial 18K part 4 of 4
87 reassembling partials 5,6,7,8 to folder inbox as message 9
89 msg part type/subtype size description
90 9 application/octet-stream 118K
91 (extract with uncompress | tar xvpf -)
95 -- \fItar\fR listing appears here as files are extracted
99 As the second \fItar\fR listing is generated, the files are extracted.
100 A prudent user will never put `\-auto' in the \&.mh\(ruprofile
101 file. The correct procedure is to first use \fImhlist\fR to find
102 out what will be extracted. Then \fImhstore\fR can be invoked with
103 `\-auto' to perform the extraction.
105 ^$HOME/\&.mh\(ruprofile~^The user profile
107 ^Path:~^To determine the user's nmh directory
109 ^Current\-Folder:~^To find the default current folder
111 mhbuild(1), mhlist(1), mhshow(1), mhstore(1)
115 \fIProposed Standard for Message Encapsulation\fR,
119 \fIMultipurpose Internet Mail Extensions (MIME) Part One:
121 Format of Internet Message Bodies\fR,
125 \fIMultipurpose Internet Mail Extensions (MIME) Part Two:
131 \fIMultipurpose Internet Mail Extensions (MIME) Part Three:
133 Message Header Extensions for Non-ASCII Text\fR,
137 \fIMultipurpose Internet Mail Extensions (MIME) Part Four:
139 Registration Procedures\fR,
143 \fIMultipurpose Internet Mail Extensions (MIME) Part Five:
145 Conformance Criteria and Examples\fR.