X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=mimedecode.docbook;h=75ec36798b496bf80a167002f8ee25719b07043f;hb=db0cd67905f741dcf93af7706c282afadf051718;hp=6fcc39822f8dce7e19b13b82950894b76fed927e;hpb=ae8aeab467eba38d6fbc4c52e2f31e31cba11404;p=mimedecode.git
diff --git a/mimedecode.docbook b/mimedecode.docbook
index 6fcc398..75ec367 100644
--- a/mimedecode.docbook
+++ b/mimedecode.docbook
@@ -48,17 +48,31 @@
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -100,12 +114,14 @@
- First, Subject and Content-Disposition headers are examined. If any of those
- exists, it is decoded according to RFC2047. Content-Disposition header is
- not decoded - only its "filename" parameter. Encoded header parameters
- violate the RFC, but widely deployed anyway by ignorant coders who never
- even heard about RFCs. Correct parameter encoding specified by RFC2231. This
- program decodes RFC2231-encoded parameters, too.
+ First, for every part the program removes headers and parameters listed with
+ -r and -R options. Then, Subject and Content-Disposition headers (and all
+ headers listed with -d and -p options) are examined. If any of those exists,
+ they are decoded according to RFC2047. Content-Disposition header is not
+ decoded - only its "filename" parameter. Encoded header parameters violate
+ the RFC, but widely deployed anyway by ignorant coders who never even heard
+ about RFCs. Correct parameter encoding specified by RFC2231. This program
+ decodes RFC2231-encoded parameters, too.
@@ -129,6 +145,13 @@
+
+
+ Please be warned that in the following options asterisk is a shell
+ metacharacter and should be escaped or quoted. Either write -d \*,-h1,-h2
+ or -d '*,-h1,-h2' or such.
+
+OPTIONS
@@ -194,12 +217,25 @@
- -d header
+ -d header1[,header2,header3...]
- Add the header to a list of headers to decode; initially the list
- contains headers "From", "To", "Cc", "Reply-To", "Mail-Followup-To"
- and "Subject".
+ Add the header(s) to a list of headers to decode; initially the
+ list contains headers "From", "To", "Cc", "Reply-To",
+ "Mail-Followup-To" and "Subject".
+
+
+
+
+
+ -d *[,-header1,-header2,-header3...]
+
+
+ This variant completely changes headers decoding. First, the list of
+ headers to decode is cleared. Then all the headers are decoded
+ except the given list of exceptions (headers listed with '-'). In
+ this mode it would be meaningless to give more than one -d options
+ but the program doesn't enforce it.
@@ -214,13 +250,42 @@
- -p header:param
+ -p header1[,header2,header3,...]:param1[,param2,param3,...]
- Add the pair (header, param) to a list of headers parameters to
- decode; initially the list contains header "Content-Type",
- parameter "name" and header "Content-Disposition", parameter
- "filename".
+ Add the parameters(s) to a list of headers parameters to decode;
+ the parameters will be decoded only for the given header(s).
+ Initially the list contains header "Content-Type", parameter "name";
+ and header "Content-Disposition", parameter "filename".
+
+
+
+
+
+ -p *[,-header1,-header2,-header3,...]:param1[,param2,param3,...]
+
+
+ Add the parameters(s) to a list of headers parameters to decode;
+ the parameters will be decoded for all headers except the given
+ ones.
+
+
+
+
+
+ -p header1[,header2,header3,...]:*[,-param1,-param2,-param3,...]
+
+
+ Decode all parameters except listed for the given list of headers.
+
+
+
+
+
+ -p *[,-header1,-header2,-header3,...]:*[,-param1,-param2,-param3,...]
+
+
+ Decode all parameters except listed for all headers (except listed).
@@ -235,11 +300,20 @@
- -r header
+ -r header1[,header2,header3...]
+
+
+ Add the header(s) to a list of headers to remove completely;
+ initially the list is empty.
+
+
+
+
+
+ -r *[,-header1,-header2,-header3...]
- Add the header to a list of headers to remove completely; initially
- the list is empty.
+ Remove all headers except listed.
@@ -254,6 +328,16 @@
+
+ --remove-params=header
+
+
+ Add the header to a list of headers from which all parameters will
+ be removed; initially the list is empty.
+
+
+
+
-b mask