]> diplodocus.org Git - nmh/blobdiff - man/mhstore.man
Replace getcpy() with mh_xstrdup() where the string isn't NULL.
[nmh] / man / mhstore.man
index fb0f57dd45a7ea2266c2e8e41b3b4bde7d3cd1a6..a6129ec2961574b2d48854a2f84062a8e528e33b 100644 (file)
@@ -1,4 +1,4 @@
-.TH MHSTORE %manext1% "February 6, 2015" "%nmhversion%"
+.TH MHSTORE %manext1% "October 7, 2016" "%nmhversion%"
 .\"
 .\" %nmhwarning%
 .\"
@@ -8,6 +8,8 @@ mhstore \- store contents of MIME messages into files
 .HP 5
 .na
 .B mhstore
+.RB [ \-help ]
+.RB [ \-version ]
 .RI [ +folder ]
 .RI [ msgs ]
 .RB [ \-file
@@ -32,8 +34,6 @@ mhstore \- store contents of MIME messages into files
 .IR policy ]
 .RB [ \-check " | " \-nocheck ]
 .RB [ \-verbose " | " \-noverbose ]
-.RB [ \-version ]
-.RB [ \-help ]
 .ad
 .SH DESCRIPTION
 The
@@ -86,7 +86,7 @@ these would be named as 1, 2, and 3, respectively.  If part 2 was also
 a multipart content containing two parts, these would be named as 2.1
 and 2.2, respectively.  Note that the
 .B \-part
-switch is effective for only messages containing a multipart content. 
+switch is effective for only messages containing a multipart content.
 If a message has some other kind of content, or if the part is itself
 another multipart content, the
 .B \-part
@@ -572,6 +572,23 @@ installation.
 See "Profile Lookup" in
 .IR mh-profile (5)
 for the profile search order, and for how duplicate entries are treated.
+.SH EXAMPLES
+.SS Decoding RFC 2047-encoded file names
+The improper RFC 2047 encoding of file name parameters can be replaced
+with correct RFC 2231 encoding using
+.BR mhfixmsg ,
+either permanently or ephemerally, e.g.,
+.PP
+.RS
+.nf
+mhfixmsg -outfile - | mhstore -auto -clobber ask -file -
+.fi
+.RE
+.PP
+The
+.BI \-clobber ask
+is not necessary, though recommended to avoid silently overwriting an existing
+file.
 .SH FILES
 .B mhstore
 looks for additional profile files in multiple locations: absolute
@@ -605,6 +622,7 @@ is checked.
 .fi
 .SH "SEE ALSO"
 .IR mhbuild (1),
+.IR mhfixmsg (1),
 .IR mhlist (1),
 .IR mhshow (1),
 .IR sendfiles (1)