<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"file:///usr/share/xml/docbook/schema/dtd/4.5/docbookx.dtd">
-<refentry id="mimedecode.py">
+<refentry id="mimedecode">
<refentryinfo>
- <title>mimedecode.py</title>
+ <title>mimedecode</title>
<productname>mimedecode.docbook</productname>
<author>
<firstname>Oleg</firstname>
<personblurb/>
</author>
<copyright>
- <year>2001-2014</year>
+ <year>2001-2017</year>
<holder>PhiloSoft Design.</holder>
</copyright>
</refentryinfo>
<refmeta>
- <refentrytitle>mimedecode.py</refentrytitle>
+ <refentrytitle>mimedecode</refentrytitle>
<manvolnum>1</manvolnum>
</refmeta>
<refnamediv>
- <refname>mimedecode.py</refname>
+ <refname>mimedecode</refname>
<refpurpose>decode MIME message</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
- <command>mimedecode.py</command>
+ <command>mimedecode</command>
<arg choice="opt">
<option>-h|--help</option>
</arg>
<option>--set-param header:param=value</option>
</arg>
<arg choice="opt">
- <option>-Bbeit mask</option>
+ <option>-BbeIit mask</option>
</arg>
<arg choice="opt">
<option>--save-headers|body|message mask</option>
</para>
<para>
- Here is a solution - mimedecode.py!
+ Here is a solution - mimedecode!
</para>
<para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term>-I mask</term>
+ <listitem>
+ <para>
+ Append mask to the list of content types to completely ignore.
+ There will be no output - no headers, no body, no warning. For a
+ multipart part the entire subtree is removed.
+ </para>
+ </listitem>
+ </varlistentry>
+
<varlistentry>
<term>-i mask</term>
<listitem>
<para>
Save output to the file related to the destination directory from
option -O. Also useful in case of redirected stdin:
- <programlisting language="sh">mimedecode.py -o output_file < input_file
-cat input_file | mimedecode.py -o output_file</programlisting>
+ <programlisting language="sh">mimedecode -o output_file < input_file
+cat input_file | mimedecode -o output_file</programlisting>
</para>
</listitem>
</varlistentry>
<para>
<code language="sh">
- mimedecode.py -t application/pdf -t application/postscript -t text/plain
+ mimedecode -t application/pdf -t application/postscript -t text/plain
-b text/html -B 'image/*' -i '*/*'
</code>
</para>
earlier than -B */*.
</para>
+<para>
+ Options -e/-I/-i can also work with multipart subparts of a MIME message. In
+ case of -I/-i the entire subtree of that multipart is removed; with -i it's
+ replaced with ignore warning.
+</para>
+
<para>
Initially all 5 lists are empty, so without any additional parameters
the program always uses the default decoding (as -t */*).
<refsect1>
<title>COPYRIGHT</title>
<para>
- Copyright (C) 2001-2014 PhiloSoft Design.
+ Copyright (C) 2001-2017 PhiloSoft Design.
</para>
</refsect1>
<refsect1>
<title>SEE ALSO</title>
<para>
- mimedecode.py home page:
+ mimedecode home page:
<ulink url="http://phdru.name/Software/Python/#mimedecode">http://phdru.name/Software/Python/#mimedecode</ulink>
</para>
</refsect1>