Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-announce-list@python.org Delivered-To: python-announce-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'messages.': 0.05; 'output': 0.05; 'binary': 0.07; 'desirable.': 0.07; 'gpl': 0.07; 'rename': 0.07; 'tests.': 0.07; 'users,': 0.07; 'decodes': 0.09; 'git': 0.09; 'subject:version': 0.09; 'url:software': 0.09; 'runs': 0.10; 'python': 0.11; 'bug': 0.12; "'from": 0.16; '(also': 0.16; '(either': 0.16; '2.2.0': 0.16; 'argument.': 0.16; 'arrived': 0.16; 'clone': 0.16; 'command-line': 0.16; 'email addr:phdru.name': 0.16; 'email name:phd': 0.16; 'encodings': 0.16; 'expects': 0.16; 'forbid': 0.16; 'header:X-Face:1': 0.16; 'non- english': 0.16; 'requires:': 0.16; 'setuptools.': 0.16; 'skipping': 0.16; 'stdout': 0.16; 'subject:skip:m 10': 0.16; 'to:addr:python-announce-list': 0.16; 'types,': 0.16; 'appropriate': 0.16; 'fix': 0.17; 'options.': 0.19; 'help.': 0.21; 'command': 0.22; 'input': 0.22; 'header:User-Agent:1': 0.23; 'copied': 0.24; 'filtering': 0.24; 'headers': 0.24; 'connected': 0.24; 'file.': 0.24; '(c)': 0.29; 'character': 0.29; 'converting': 0.30; 'skip:g 30': 0.30; 'especially': 0.30; 'included': 0.31; 'usually': 0.31; 'controlled': 0.31; 'parameters.': 0.31; 'allows': 0.31; 'file': 0.32; 'option': 0.32; 'run': 0.32; 'text': 0.33; 'url:python': 0.33; 'programmers': 0.33; 'skip:_ 10': 0.34; 'add': 0.35; 'version': 0.36; 'shows': 0.36; 'charset:us-ascii': 0.36; 'example,': 0.37; 'configured': 0.38; 'though,': 0.39; 'to:addr:python.org': 0.39; 'new': 0.61; 'simple': 0.61; 'content- disposition:inline': 0.62; 'such': 0.63; 'different': 0.65; 'license': 0.66; 'here': 0.66; 'header:Reply-To:1': 0.67; 'design.': 0.68; 'home': 0.69; 'reply-to:no real name:2**0': 0.71; '2.3.1': 0.84; '2.3.2': 0.84; 'countries,': 0.84; 'reply- to:addr:python.org': 0.84 Date: Sun, 2 Feb 2014 14:34:52 +0100 From: Oleg Broytman To: Python Announce Mailing List Subject: mimedecode.py version 2.3.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 List-Id: Announcement-only list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Approved: python-announce-list@python.org Newsgroups: comp.lang.python.announce Message-ID: Lines: 76 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391429551 news.xs4all.nl 2883 [2001:888:2000:d::a6]:44687 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python.announce:1201 Hello! mimedecode.py 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.py. 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. WHAT'S NEW in version 2.3.3 (2014-02-02) Forbid filtering from console. When the program runs with stdin connected to the console it shows usage help. Fix a bug - option -o and no parameters. WHAT'S NEW in version 2.3.2 (2014-02-01) Fix a bug - do not generate 'From ' headers in subparts. Add option --host. Add tests. WHAT'S NEW in version 2.3.1 (2014-01-31) Update documentation. WHAT'S NEW in version 2.3.0 (2014-01-30) Add option -o and output_file argument. WHAT'S NEW in version 2.2.0 (2013-12-21) Rename __version__.py to mimedecode_version.py. Use setuptools. WHERE TO GET Home page: http://phdru.name/Software/Python/#mimedecode git clone http://git.phdru.name/mimedecode.git git clone git://git.phdru.name/mimedecode.git Requires: Python 2.2.2+ Recommends: configured mailcap database. Documentation (also included in the package): http://phdru.name/Software/Python/mimedecode.txt AUTHOR Oleg Broytman COPYRIGHT Copyright (C) 2001-2014 PhiloSoft Design. LICENSE GPL Oleg. -- Oleg Broytman http://phdru.name/ phd@phdru.name Programmers don't die, they just GOSUB without RETURN.