X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=mimedecode.docbook;h=a91460df1e36e7e6921986d11382f7340e2e4406;hb=967e8b86e8f38ce3d551f2160eaf325253ac10c1;hp=d358569fd2049dafd456f3e6b8e6153f6eb2b450;hpb=6d74800f03c5d21f6f3aea54fcd37794f6702858;p=mimedecode.git diff --git a/mimedecode.docbook b/mimedecode.docbook index d358569..a91460d 100644 --- a/mimedecode.docbook +++ b/mimedecode.docbook @@ -1,9 +1,24 @@ - + + + mimedecode.py + mimedecode.docbook + + Oleg + Broytman + phd@phdru.name + + + + 2001-2014 + PhiloSoft Design. + + + mimedecode.py 1 @@ -38,7 +53,12 @@ - filename + + + + input_file + output_file + @@ -88,9 +108,9 @@ multipart/mixed, e.g) every part is recursively decoded. If it is not multipart, mailcap database is consulted to find a way to convert the body to plain text. (I have no idea how mailcap could be configured on said M$ Ophice GUI, please don't ask me; real OS users can consult my example at -http://phd.pp.ru/Software/dotfiles/mailcap.html). The decoding process uses -first copiousoutput filter it can find. If there is no any filter the body just -passed unconverted. +http://phdru.name/Software/dotfiles/mailcap.html). +The decoding process uses first copiousoutput filter it can find. If there is +no any filter the body just passed unconverted. @@ -235,10 +255,21 @@ flushed to stdout. + + + -o output_file + + + Useful to set the output file in case of redirected stdin: + mimedecode.py -o output_file < input_file +cat input_file | mimedecode.py -o output_file + + + - The last 4 options (-beit) require more explanation. They allow a user + The 4 list options (-beit) 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 @@ -246,7 +277,7 @@ else. Easy: - + mimedecode.py -t application/postscript -t application/pdf -b text/html -b 'image/*' -i '*/*' @@ -300,7 +331,9 @@ the program will recode the message to the wrong charset. AUTHOR - Oleg Broytman <phd@phd.pp.ru> + Oleg + Broytman + phd@phdru.name @@ -308,7 +341,7 @@ the program will recode the message to the wrong charset. COPYRIGHT - Copyright (C) 2001-2004 PhiloSoft Design + Copyright (C) 2001-2014 PhiloSoft Design @@ -335,7 +368,8 @@ the program will recode the message to the wrong charset. SEE ALSO - mimedecode.py home page: http://phd.pp.ru/Software/Python/#mimedecode + mimedecode.py home page: + http://phdru.name/Software/Python/#mimedecode