X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=mimedecode.docbook;h=5be05a8beb63f135a3a32d77203ba255463783d6;hb=b8c9e72ff8a755f2a647881c9f5cac3a4e322c70;hp=fdab4766f10cd8bae30dc0352fc44e60f4ae3a74;hpb=317afd59ce50fa7a87ec6b43d1b8ba5fa10255c6;p=mimedecode.git diff --git a/mimedecode.docbook b/mimedecode.docbook index fdab476..5be05a8 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 @@ -93,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://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. +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. @@ -153,7 +168,7 @@ flushed to stdout. Force this charset to be the current default charset instead of - sys.getdefaultencoding(). + the current locale. @@ -213,7 +228,7 @@ flushed to stdout. Append mask to the list of error content types; if the message to - decode has a part of this type the program will raise ValueError. + decode has a part of this type the program fails with ValueError. @@ -254,7 +269,7 @@ 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 @@ -289,12 +304,14 @@ the program always uses the default decoding. ENVIRONMENT + + LANG + LC_ALL + LC_CTYPE + - LANG - LC_ALL - LC_CTYPE - Define current locale settings. Used to determine current default - charset (if your Python is properly installed and configured). + Define current locale settings. Used to determine current default charset (if + your Python is properly installed and configured). @@ -308,7 +325,7 @@ correct MIME output. The incorrect parts are obvious - decoded Subject headers and filenames. Other than that output is correct MIME message. The program does not try to guess whether the headers are correct. For example, if a message header states that charset is iso8859-5, but the body is actually in koi8-r - -the program will recode the message to the wrong charset. +the program will recode the message with the wrong charset. @@ -316,7 +333,9 @@ the program will recode the message to the wrong charset. AUTHOR - Oleg Broytman <phd@phdru.name> + Oleg + Broytman + phd@phdru.name @@ -324,7 +343,7 @@ the program will recode the message to the wrong charset. COPYRIGHT - Copyright (C) 2001-2014 PhiloSoft Design + Copyright (C) 2001-2014 PhiloSoft Design. @@ -351,7 +370,8 @@ the program will recode the message to the wrong charset. SEE ALSO - mimedecode.py home page: http://phdru.name/Software/Python/#mimedecode + mimedecode.py home page: + http://phdru.name/Software/Python/#mimedecode