X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=inline;f=mimedecode.docbook;h=555c5f2525be9d84e7dcf442bfce9cf585bfe835;hb=1f2c7c40dca5b1937436c71d529d0b1f733302ce;hp=7055662b4e60c25522141378d4c311ca9f856df1;hpb=502931f2c502991905892ae23548d9b02adf7fd0;p=mimedecode.git
diff --git a/mimedecode.docbook b/mimedecode.docbook
index 7055662..555c5f2 100644
--- a/mimedecode.docbook
+++ b/mimedecode.docbook
@@ -58,7 +58,11 @@
+
+
+
+
@@ -68,10 +72,28 @@
-
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -316,11 +338,50 @@
- -R header:param
+ -R header1[,header2,header3,...]:param1[,param2,param3,...]
- Add the pair (header, param) to a list of headers parameters to
- remove; initially the list is empty.
+ Add the parameters(s) to a list of headers parameters to remove;
+ the parameters will be decoded only for the given header(s).
+ Initially the list is empty.
+
+
+
+
+
+ -R *[,-header1,-header2,-header3,...]:param1[,param2,param3,...]
+
+
+
+ -R header1[,header2,header3,...]:*[,-param1,-param2,-param3,...]
+
+
+
+ -R *[,-header1,-header2,-header3,...]:*[,-param1,-param2,-param3,...]
+
+
+ Remove listed parameters (or all parameters except listed) frome
+ these headers (or from all headers except listed).
+
+
+
+
+
+ --set-header header:value
+
+
+ The program sets or changes value for the header to the given value
+ (only at the top-level message).
+
+
+
+
+
+ --set-param header:param=value
+
+
+ The program sets or changes value for the header's parameter to the
+ given value (only at the top-level message). The header must exist.
@@ -336,6 +397,16 @@
+
+ -B mask
+
+
+ Append mask to the list of binary content types that will be not
+ content-transfer-decoded (will be left as base64 or such).
+
+
+
+
-e mask
@@ -369,11 +440,22 @@
+
+ -O dest_dir
+
+
+ Set destination directory for the output files. Default is current
+ directory.
+
+
+
+
-o output_file
- Useful to set the output file in case of redirected stdin:
+ Set the output file. Uses destination directory from option -O.
+ Also useful in case of redirected stdin:
mimedecode.py -o output_file < input_file
cat input_file | mimedecode.py -o output_file
@@ -382,7 +464,7 @@ cat input_file | mimedecode.py -o output_file
- The 4 list options (-beit) require more explanation. They allow a user to
+ The 5 list options (-Bbeit) require more explanation. They allow a user to
control body decoding with great flexibility. Think about said mail archive;
for example, its maintainer wants to put there only texts, convert
Postscript/PDF to text, pass HTML and images as is, and ignore everything