X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=mimedecode.docbook;h=29d081d84993ff38e5a618d659545b7b6cd8890e;hb=c8623aa92c99464cd2405d31c376fa3da844c3e4;hp=67011a66213f8435a2e3b798c50c544d713122f7;hpb=259081fe8a17e0619ce7803dd3cb310ebdd25202;p=mimedecode.git diff --git a/mimedecode.docbook b/mimedecode.docbook index 67011a6..29d081d 100644 --- a/mimedecode.docbook +++ b/mimedecode.docbook @@ -2,10 +2,10 @@ - + - mimedecode.py + mimedecode mimedecode.docbook Oleg @@ -14,24 +14,24 @@ - 2001-2014 + 2001-2018 PhiloSoft Design. - mimedecode.py + mimedecode 1 - mimedecode.py + mimedecode decode MIME message - mimedecode.py + mimedecode @@ -90,7 +90,7 @@ - + @@ -122,7 +122,7 @@ - Here is a solution - mimedecode.py! + Here is a solution - mimedecode! @@ -156,7 +156,7 @@ to find a way to convert the body to plain text (can be prevented with options -Bbei). (The author has no idea how mailcap can be configured on OSes other than POSIX, please don't ask; users can consult an example at - http://phdru.name/Software/dotfiles/mailcap.html). + https://phdru.name/Software/dotfiles/mailcap.html). The decoding process uses the first copiousoutput filter it can find. If there are no filters the body just passed as is. @@ -422,6 +422,17 @@ + + -I mask + + + Append mask to the list of content types to completely ignore. + There will be no output - no headers, no body, no warning. For a + multipart part the entire subtree is removed. + + + + -i mask @@ -483,8 +494,8 @@ Save output to the file related to the 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 + mimedecode -o output_file < input_file +cat input_file | mimedecode -o output_file @@ -501,7 +512,7 @@ cat input_file | mimedecode.py -o output_file - mimedecode.py -t application/pdf -t application/postscript -t text/plain + mimedecode -t application/pdf -t application/postscript -t text/plain -b text/html -B 'image/*' -i '*/*' @@ -520,6 +531,12 @@ cat input_file | mimedecode.py -o output_file earlier than -B */*. + + Options -e/-I/-i can also work with multipart subparts of a MIME message. In + case of -I/-i the entire subtree of that multipart is removed; with -i it's + replaced with ignore warning. + + Initially all 5 lists are empty, so without any additional parameters the program always uses the default decoding (as -t */*). @@ -597,7 +614,7 @@ cat input_file | mimedecode.py -o output_file COPYRIGHT - Copyright (C) 2001-2014 PhiloSoft Design. + Copyright (C) 2001-2018 PhiloSoft Design. @@ -624,8 +641,8 @@ cat input_file | mimedecode.py -o output_file SEE ALSO - mimedecode.py home page: - http://phdru.name/Software/Python/#mimedecode + mimedecode home page: + https://phdru.name/Software/Python/#mimedecode