1SENDFILES(1)                 [nmh-1.2-20070115cvs]                SENDFILES(1)
2
3
4

NAME

6       sendfiles - send multiple files via a MIME message
7

SYNOPSIS

9       sendfiles [delay] mailpath subject file1 [file2 ...]
10

DESCRIPTION

12       The  shell  script sendfiles, is used to send a collection of files and
13       directories via electronic mail.
14
15            sendfiles mailpath “subject” files ...
16
17       sendfiles will archive the files and directories you name with the  tar
18       command,  and  then  mail the compressed archive to the “mailpath” with
19       the given “subject”.  The archive will be automatically split  up  into
20       as many messages as necessary in order to get past most mailers.
21
22       Sometimes  you want sendfiles to pause after posting a partial message.
23       This is usually the case when you are running sendmail  and  expect  to
24       generate  a  lot  of  partial messages.  If the first argument given to
25       sendfiles starts with a dash, then it is interpreted as the  number  of
26       seconds to pause in between postings, e.g.,
27
28            sendfiles -30 mailpath “subject” files ...
29
30       will pause 30 seconds in between each posting.
31
32   Extracting the Received Files
33       When  these  messages are received, invoke mhstore once for the list of
34       messages.  The default is for mhstore to store the combined parts as  a
35       new  message  in the current folder, although this can be changed using
36       storage formatting strings.  You can then use mhlist to find out what's
37       inside;  possibly  followed  by mhstore again to write the archive to a
38       file where you can subsequently uncompress and untar it.  For instance:
39
40            % mhlist 5-8
41             msg part  type/subtype             size description
42               5       message/partial           47K part 1 of 4
43               6       message/partial           47K part 2 of 4
44               7       message/partial           47K part 3 of 4
45               8       message/partial           18K part 4 of 4
46            % mhstore 5-8
47            reassembling partials 5,6,7,8 to folder inbox as message 9
48            % mhlist -verbose 9
49             msg part  type/subtype             size description
50               9       application/octet-stream 118K
51                         (extract with uncompress | tar xvpf -)
52                         type=tar
53                         conversions=compress
54            % mhstore 9
55            % uncompress < 9.tar.Z | tar xvpf -
56
57       Alternately, by using the -auto switch, mhstore will  automatically  do
58       the extraction for you:
59
60            % mhlist 5-8
61             msg part  type/subtype             size description
62               5       message/partial           47K part 1 of 4
63               6       message/partial           47K part 2 of 4
64               7       message/partial           47K part 3 of 4
65               8       message/partial           18K part 4 of 4
66            % mhstore 5-8
67            reassembling partials 5,6,7,8 to folder inbox as message 9
68            % mhlist -verbose 9
69             msg part  type/subtype             size description
70               9       application/octet-stream 118K
71                         (extract with uncompress | tar xvpf -)
72                         type=tar
73                         conversions=compress
74            % mhstore -auto 9
75            -- tar listing appears here as files are extracted
76
77       As  the  second  tar  listing is generated, the files are extracted.  A
78       prudent user will never put -auto in the .mh_profile file.  The correct
79       procedure  is  to  first use mhlist to find out what will be extracted.
80       Then mhstore can be invoked with -auto to perform the extraction.
81
82

FILES

84       $HOME/.mh_profile          The user profile
85
86

PROFILE COMPONENTS

88       Path:                To determine the user's nmh directory
89       Current-Folder:      To find the default current folder
90
91

SEE ALSO

93       mhbuild(1), mhlist(1), mhshow(1), mhstore(1).   Proposed  Standard  for
94       Message Encapsulation (RFC-934)
95
96

DEFAULTS

98       `-noverbose'
99
100

CONTEXT

102       None
103
104
105
106MH.6.8                            1 Jul 2003                      SENDFILES(1)
Impressum