Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python.announce > #3639

mimedecode 3.1.0

Path csiph.com!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!lilly.ping.de!fu-berlin.de!uni-berlin.de!not-for-mail
From Oleg Broytman <phd@phdru.name>
Newsgroups comp.lang.python.announce
Subject mimedecode 3.1.0
Date Sun, 23 May 2021 16:50:18 +0200
Lines 69
Approved python-announce-list@python.org
Message-ID <20210523145018.GA7200@phdru.name> (permalink)
Reply-To python-list@python.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace news.uni-berlin.de LGOs3eW9k558P/MoqnsM7g9MltMAnOiWYWYjUTr74Tjg==
Authentication-Results mail.python.org; dkim=none reason="no signature"; dkim-adsp=unknown (unprotected policy); dkim-atps=neutral
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'url-ip:140.82/16': 0.03; 'tests': 0.05; 'users,': 0.05; 'command-line': 0.07; 'else.': 0.07; 'page:': 0.07; '2.7': 0.09; 'controlled': 0.09; 'convert': 0.09; 'converting': 0.09; 'git': 0.09; 'messages.': 0.09; 'part.': 0.09; 'situations': 0.09; 'skip:` 20': 0.09; 'sometimes,': 0.09; 'to:addr:python-announce-list': 0.09; 'treated': 0.09; 'url- ip:140/8': 0.12; 'url:github': 0.13; '3.8,': 0.16; 'countries,': 0.16; 'database.': 0.16; 'encoded,': 0.16; 'expects': 0.16; 'html,': 0.16; 'outdated': 0.16; 'recommends:': 0.16; 'stdout': 0.16; 'python': 0.16; 'version': 0.22; 'url-ip:188.166/16': 0.23; 'to:addr:python-list': 0.23; 'command': 0.24; 'run': 0.24; 'binary': 0.27; 'programmers': 0.27; 'output': 0.28; 'url- ip:188/8': 0.29; 'input': 0.29; 'text': 0.29; 'header:User- Agent:1': 0.31; 'there': 0.31; 'think': 0.31; 'but': 0.31; 'received:188.166': 0.31; 'wants': 0.31; 'options.': 0.32; 'program': 0.33; 'using': 0.33; 'example,': 0.35; 'author': 0.38; 'file': 0.38; 'to:2**1': 0.38; 'use': 0.38; 'put': 0.39; 'messages': 0.40; 'simple': 0.40; 'package': 0.40; 'could': 0.40; 'skip:h 10': 0.61; 'search': 0.61; 'here': 0.62; 'everything': 0.64; 'pass': 0.64; 'license': 0.65; 'replaced': 0.65; 'url:name': 0.65; 'ignore': 0.66; 'parts': 0.66; 'content': 0.72; 'skip:f 20': 0.76; 'man': 0.77; 'html': 0.81; '(c)': 0.81; 'decode': 0.84; 'non-english': 0.84; 'text/html': 0.84; 'copyright': 0.85; 'return.': 0.91
Content-Disposition inline
X-Attribution phd
X-Face "4chVP^f8;3Bi>x"ic0%DuP(ZLyn:;kzQ1njs]5,GRZG<{<\~`|Shxi7|)d|8uO~HFRfyym {[xs@OYG]2Q]0#}0sjJp`1^1+B6]A2+{9fW=S<O7^"hul]^|AGtiI7SkYF-2VD?UH*h_!zuCIf+^F7 c0x8?W,UfhCAx^YY#1ALhvG\2yG}LW:)zw#1;Yajq"hK~S
X-Operating-System Debian GNU/Linux
X-Url https://phdru.name/
Mail-Followup-To Oleg Broytman <phd@phdru.name>, Python Mailing List <python-list@python.org>
X-Skip-DKIM-Sig mailing list
User-Agent Mutt/1.10.1 (2018-07-13)
X-MailFrom phd@phdru.name
X-Mailman-Rule-Hits emergency
X-Mailman-Rule-Misses dmarc-mitigation; no-senders; approved
Message-ID-Hash VKDNSZ6EUUEKAD4QGQRHOSPJH47JVIKJ
X-Message-ID-Hash VKDNSZ6EUUEKAD4QGQRHOSPJH47JVIKJ
X-Mailman-Approved-At Sun, 23 May 2021 12:30:25 -0400
X-Mailman-Version 3.3.5b1
Precedence list
List-Id Announcement-only list for the Python programming language <python-announce-list.python.org>
Archived-At <https://mail.python.org/archives/list/python-announce-list@python.org/message/VKDNSZ6EUUEKAD4QGQRHOSPJH47JVIKJ/>
List-Archive <https://mail.python.org/archives/list/python-announce-list@python.org/>
List-Help <mailto:python-announce-list-request@python.org?subject=help>
List-Owner <mailto:python-announce-list-owner@python.org>
List-Post <mailto:python-announce-list@python.org>
List-Subscribe <mailto:python-announce-list-join@python.org>
List-Unsubscribe <mailto:python-announce-list-leave@python.org>
Xref csiph.com comp.lang.python.announce:3639

Show key headers only | View raw


                                  mimedecode

WHAT IS IT

   Mail users, especially in non-English countries, often find that mail
messages arrived in different formats, with different content types, in
different encodings and charsets. Usually this is good because it allows
us to use appropriate format/encoding/whatever. Sometimes, though, some
unification is desirable. For example, one may want to put mail messages
into an archive, make HTML indices, run search indexer, etc. In such
situations converting messages to text in one character set and skipping
some binary attachments is much desirable.

   Here is the solution - mimedecode.

   This is a program to decode MIME messages. The program expects one
input file (either on command line or on stdin) which is treated as an
RFC822 message, and decodes to stdout or an output file. If the file is
not an RFC822 message it is just copied to the output one-to-one. If the
file is a simple RFC822 message it is decoded as one part. If it is a
MIME message with multiple parts ("attachments") all parts are decoded.
Decoding can be controlled by command-line options.

   Think about said mail archive; for example, its maintainer wants to
put there only texts, convert PDF/Postscript to text, pass HTML and
images decoding base64 to html but leaving images encoded, and ignore
everything else. This is how it could be done:

   mimedecode -t application/pdf -t application/postscript -t text/plain -b text/html -B 'image/*' -i '*/*'


Version 3.1.0 (2021-05-23)

   Convert mimedecode.docbook to reST. Generate html/man/text
   using Sphinx.

   Replaced outdated and insecure `mktemp` with `NamedTemporaryFile`.

   Python 3.8, 3.9.


WHERE TO GET
   Home page: https://phdru.name/Software/Python/#mimedecode
    git clone https://github.com/phdru/mimedecode.git
    git clone https://git.phdru.name/mimedecode.git
    git clone  git://git.phdru.name/mimedecode.git

   Requires: Python 2.7 or Python 3.4+, m_lib.defenc 1.0+.
   Tests require: tox, m_lib 3.1+.

   Recommends: configured mailcap database.

   Documentation: https://phdru.name/Software/Python/mimedecode.html
      (also included in the package in html, man and txt formats).


AUTHOR
   Oleg Broytman <phd@phdru.name>

COPYRIGHT
   Copyright (C) 2001-2021 PhiloSoft Design.

LICENSE
   GPL

Oleg.
-- 
    Oleg Broytman            https://phdru.name/            phd@phdru.name
           Programmers don't die, they just GOSUB without RETURN.

Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread


Thread

mimedecode 3.1.0 Oleg Broytman <phd@phdru.name> - 2021-05-23 16:50 +0200

csiph-web