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


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

mimedecode.py version 2.5.0

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <phd@phdru.name>
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; 'users,': 0.07; 'decodes': 0.09; 'git': 0.09; 'subject:version': 0.09; 'url:software': 0.09; 'python': 0.11; '(also': 0.16; '(either': 0.16; 'arrived': 0.16; 'bug:': 0.16; 'clone': 0.16; 'command-line': 0.16; 'email addr:phdru.name': 0.16; 'email name:phd': 0.16; 'encodings': 0.16; 'exist.': 0.16; 'expects': 0.16; 'header:X-Face:1': 0.16; 'multipart': 0.16; 'non-english': 0.16; 'requires:': 0.16; 'skipping': 0.16; 'stdout': 0.16; 'subject:skip:m 10': 0.16; 'to:addr:python-announce-list': 0.16; 'types,': 0.16; 'files.': 0.16; 'appropriate': 0.16; 'fix': 0.17; 'options.': 0.19; 'command': 0.22; 'input': 0.22; 'putting': 0.22; 'header:User-Agent:1': 0.23; 'copied': 0.24; 'skip': 0.24; 'header': 0.24; 'file.': 0.24; '(or': 0.24; 'options': 0.25; '(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; 'minor': 0.31; 'txt': 0.31; 'allows': 0.31; 'file': 0.32; 'option': 0.32; 'skip:- 30': 0.32; 'run': 0.32; 'text': 0.33; 'url:python': 0.33; 'programmers': 0.33; 'add': 0.35; 'version': 0.36; 'html,': 0.36; 'charset:us-ascii': 0.36; 'example,': 0.37; 'skip:- 20': 0.37; 'configured': 0.38; 'skip:- 10': 0.38; 'though,': 0.39; 'to:addr:python.org': 0.39; 'new': 0.61; 'simple': 0.61; 'save': 0.62; '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; 'countries,': 0.84; 'excessive': 0.84; 'destination': 0.91
Date Tue, 18 Mar 2014 00:27:47 +0100
From Oleg Broytman <phd@phdru.name>
To Python Announce Mailing List <python-announce-list@python.org>
Subject mimedecode.py version 2.5.0
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<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 http://phdru.name/
Mail-Followup-To Oleg Broytman <phd@phdru.name>, Python Mailing List <python-list@python.org>
User-Agent Mutt/1.5.21 (2010-09-15)
X-Mailman-Approved-At Thu, 20 Mar 2014 11:39:28 +0100
X-BeenThere python-announce-list@python.org
X-Mailman-Version 2.1.15
Precedence list
Reply-To python-list@python.org, Oleg Broytman <phd@phdru.name>
List-Id Announcement-only list for the Python programming language <python-announce-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-announce-list/>
List-Post <mailto:python-announce-list@python.org>
List-Help <mailto:python-announce-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe>
Approved python-announce-list@python.org
Newsgroups comp.lang.python.announce
Message-ID <mailman.8295.1395311969.18130.python-announce-list@python.org> (permalink)
Lines 70
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1395311969 news.xs4all.nl 2921 [2001:888:2000:d::a6]:52689
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python.announce:1247

Show key headers only | View raw


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.5.0 (2014-03-18)

   Add option --set-header=header:value to set header's value (only at the top
level).

   Add option --set-param=header:param=value to set header parameter's value
(only at the top level). The header must exist.

   Add option -B to skip content-transfer-decoding binary attachments.

   Add options --save-headers, --save-body and --save-message to save decoded
headers/bodies/messages to files.

   Add option -O to set the destination directory for output files.

   Fix a minor bug: if a multipart message (or a subpart) lacks any textual
content - avoid putting an excessive newline.


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+, m_lib 2.0+.

   Recommends: configured mailcap database.

   Documentation: http://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-2014 PhiloSoft Design.

LICENSE
   GPL

Oleg.
-- 
     Oleg Broytman            http://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.py version 2.5.0 Oleg Broytman <phd@phdru.name> - 2014-03-18 00:27 +0100

csiph-web