source: trunk/third/nmh/man/sendfiles.man @ 12455

Revision 12455, 4.4 KB checked in by danw, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12454, which included commits to RCS files with non-trunk default branches.
Line 
1.\"
2.\" %nmhwarning%
3.\" $Id: sendfiles.man,v 1.1.1.1 1999-02-07 18:14:22 danw Exp $
4.\"
5.\" include the -mh macro file
6.so %etcdir%/tmac.h
7.\"
8.TH SENDFILES %manext1% MH.6.8 [%nmhversion%]
9.SH NAME
10sendfiles \- send multiple files via a MIME message
11.SH SYNOPSIS
12.in +.5i
13.ti -.5i
14sendfiles \%[delay] mailpath subject file1 \%[file2]...
15.in -.5i
16
17.SH DESCRIPTION
18The shell script \fIsendfiles\fR, is used to send a collection
19of files and directories via electronic mail.
20.sp
21.in +.5i
22%libdir%/sendfiles mailpath \*(lqsubject\*(rq files\0...
23.in -.5i
24.sp
25\fIsendfiles\fR will archive the files and directories you name
26with the \fItar\fR\0(1) command, and then mail the compressed
27archive to the `mailpath' with the given `subject'.  The archive
28will be automatically split up into as many messages as necessary
29in order to get past most mailers.
30
31Sometimes you want \fIsendfiles\fR to pause after posting a partial
32message.  This is usually the case when you are running \fIsendmail\fR
33and expect to generate a lot of partial messages.  If the first
34argument given to \fIsendfiles\fR starts with a dash, then it is
35interpreted as the number of seconds to pause in between postings,
36.ne 6
37e.g.,
38.sp
39.in +.5i
40%libdir%/sendfiles -30 mailpath \*(lqsubject\*(rq files\0...
41.in -.5i
42.sp
43will pause 30 seconds in between each posting.
44
45.Uh "Extracting the Received Files"
46When these messages are received, invoke \fImhstore\fR once for
47the list of messages.  The default is for \fImhstore\fR to store
48the combined parts as a new message in the current folder, although
49this can be changed using storage formatting strings.  You can then
50use \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
52subsequently uncompress and untar it.  For instance:
53.sp
54.nf
55.in +.5i
56% mhlist 5-8
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
62% mhstore 5-8
63reassembling partials 5,6,7,8 to folder inbox as message 9
64% mhlist -verbose 9
65 msg part  type/subtype             size description
66   9       application/octet-stream 118K
67             (extract with uncompress | tar xvpf -)
68             type=tar
69             conversions=compress
70% mhstore 9
71% uncompress < 9.tar.Z | tar xvpf -
72.in -.5i
73.fi
74.sp
75Alternately, by using the `\-auto' switch, \fImhstore\fR will
76automatically do the extraction for you:
77.sp
78.nf
79.in +.5i
80% mhlist 5-8
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
86% mhstore 5-8
87reassembling partials 5,6,7,8 to folder inbox as message 9
88% mhlist -verbose 9
89 msg part  type/subtype             size description
90   9       application/octet-stream 118K
91             (extract with uncompress | tar xvpf -)
92             type=tar
93             conversions=compress
94% mhstore -auto 9
95-- \fItar\fR listing appears here as files are extracted
96.in -.5i
97.fi
98.sp
99As the second \fItar\fR listing is generated, the files are extracted.
100A prudent user will never put `\-auto' in the \&.mh\(ruprofile
101file.  The correct procedure is to first use \fImhlist\fR to find
102out what will be extracted.  Then \fImhstore\fR can be invoked with
103`\-auto' to perform the extraction.
104.Fi
105^$HOME/\&.mh\(ruprofile~^The user profile
106.Pr
107^Path:~^To determine the user's nmh directory
108.Ps
109^Current\-Folder:~^To find the default current folder
110.Sa
111mhbuild(1), mhlist(1), mhshow(1), mhstore(1)
112.br
113RFC\-934:
114.br
115   \fIProposed Standard for Message Encapsulation\fR,
116.br
117RFC\-2045:
118.br
119   \fIMultipurpose Internet Mail Extensions (MIME) Part One:
120.br
121   Format of Internet Message Bodies\fR,
122.br
123RFC\-2046:
124.br
125   \fIMultipurpose Internet Mail Extensions (MIME) Part Two:
126.br
127   Media Types\fR,
128.br
129RFC\-2047:
130.br
131   \fIMultipurpose Internet Mail Extensions (MIME) Part Three:
132.br
133   Message Header Extensions for Non-ASCII Text\fR,
134.br
135RFC\-2048:
136.br
137   \fIMultipurpose Internet Mail Extensions (MIME) Part Four:
138.br
139   Registration Procedures\fR,
140.br
141RFC\-2049:
142.br
143   \fIMultipurpose Internet Mail Extensions (MIME) Part Five:
144.br
145   Conformance Criteria and Examples\fR.
146.De
147`\-noverbose'
148.Co
149None.
150.En
Note: See TracBrowser for help on using the repository browser.