Skip to content

Commit 486623a

Browse files
committed
1.0 (20200625)
- When replacing text-versus-HTML alternatives, choose the translated HTML alternative instead - Added -Y option: Choose the plain text alternative over the translated HTML (unless vestigial) - Added -F types option: Save attachments to files on disk (list of mimetypes/exts/filenames) - Added -G path option: Directory to save attachments in (for use with -F) - Added -C spec option: Custom attachment translations (list of mimetype_or_ext:ext:command) - Added Makefile, README.md, COPYING, LICENSE, INSTALL - Added translation of .docx and .xlsx attachments using docx2txt and xlsx2csv - Preserve original Content-Disposition creation-date/modification-date/read-date parameters - Fixed bug: Wasn't preserving original Content-Type charset parameter for text/* translations - Added .bat and .ps1 to the list of MS Windows executable filename extensions - Added self-identifying and legal information to the help message - Changed default mimetype for csv attachments inside winmail.dat to text/csv (was text/plain) - Use /etc/mime.types if available for determining mimetypes for attachments inside winmail.dat - Added handling of --help and --version command line options (but no other long options) - Added -Q spec option: Custom patterns to identify vestigial text alternatives - Fixed bug: Was assuming MS Windows executables all have mimetype application/octet - Fixed manpage headers and footers - Ensure Perl compatibility from Perl 5.6 to (probably) Perl 7
1 parent 3cc21bc commit 486623a

File tree

7 files changed

+1248
-217
lines changed

7 files changed

+1248
-217
lines changed

CHANGELOG

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
CHANGELOG
2+
=========
3+
4+
1.0 (20200625)
5+
6+
- When replacing text-versus-HTML alternatives, choose the translated HTML alternative instead
7+
- Added -Y option: Choose the plain text alternative over the translated HTML (unless vestigial)
8+
- Added -F types option: Save attachments to files on disk (list of mimetypes/exts/filenames)
9+
- Added -G path option: Directory to save attachments in (for use with -F)
10+
- Added -C spec option: Custom attachment translations (list of mimetype_or_ext:ext:command)
11+
- Added Makefile, README.md, COPYING, LICENSE, INSTALL
12+
- Added translation of .docx and .xlsx attachments using docx2txt and xlsx2csv
13+
- Preserve original Content-Disposition creation-date/modification-date/read-date parameters
14+
- Fixed bug: Wasn't preserving original Content-Type charset parameter for text/* translations
15+
- Added .bat and .ps1 to the list of MS Windows executable filename extensions
16+
- Added self-identifying and legal information to the help message
17+
- Changed default mimetype for csv attachments inside winmail.dat to text/csv (was text/plain)
18+
- Use /etc/mime.types if available for determining mimetypes for attachments inside winmail.dat
19+
- Added handling of --help and --version command line options (but no other long options)
20+
- Added -Q spec option: Custom patterns to identify vestigial text alternatives
21+
- Fixed bug: Was assuming MS Windows executables all have mimetype application/octet
22+
- Fixed manpage headers and footers
23+
- Ensure Perl compatibility from Perl 5.6 to (probably) Perl 7
24+
125
20110321
226

327
- Added Content-Disposition creation-date/modification-date/read-date parameters
@@ -69,3 +93,10 @@
6993

7094
- Initial version
7195

96+
--------------------------------------------------------------------------------
97+
98+
URL: http://raf.org/textmail
99+
GIT: https://github.com/raforg/textmail
100+
Date: 20200625
101+
Author: raf <raf@raf.org>
102+

COPYING

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
COPYING
2+
=======
3+
textmail - mail filter to replace MS Word/HTML attachments with plain text
4+
5+
Copyright (C) 2003-2007, 2011, 2020 raf <raf@raf.org>
6+
7+
This program is free software; you can redistribute it and/or modify
8+
it under the terms of the GNU General Public License as published by
9+
the Free Software Foundation; either version 2 of the License, or
10+
(at your option) any later version.
11+
12+
This program is distributed in the hope that it will be useful,
13+
but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
GNU General Public License for more details.
16+
17+
You should have received a copy of the GNU General Public License
18+
along with this program; if not, see <https://www.gnu.org/licenses/>.
19+
20+
--------------------------------------------------------------------------------
21+
22+
URL: http://raf.org/textmail
23+
GIT: https://github.com/raforg/textmail
24+
Date: 20200625
25+
Author: raf <raf@raf.org>
26+

INSTALL

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
INSTALL
2+
=======
3+
Textmail is written in Perl and should run on any system with perl(1).
4+
There are no dependencies on any non-standard Perl modules. It does,
5+
however, depend on several external programs. See REQUIREMENTS below.
6+
7+
To install textmail and its manpage (under /usr/local by default):
8+
9+
tar xzf textmail-X.Y.tar.gz
10+
cd textmail-X.Y
11+
make install
12+
13+
To install under /usr:
14+
15+
make PREFIX=/usr install
16+
17+
To uninstall textmail and its manpage (from under /usr/local):
18+
19+
make uninstall
20+
21+
To uninstall textmail and its manpage (from under /usr):
22+
23+
make PREFIX=/usr uninstall
24+
25+
For more details:
26+
27+
make help
28+
29+
The manpage for textmail is textmail(1).
30+
31+
REQUIREMENTS
32+
============
33+
Requires GNU make to install (but manual installation is easy).
34+
Requires perl (but no non-standard perl modules).
35+
Requires pod2man (comes with perl) to make the manpage.
36+
Requires pod2html (comes with perl) to make the html manpage.
37+
Requires the following external programs for various functions:
38+
39+
docx2txt - To convert modern Word documents to text
40+
antiword - To convert old Word documents to text (default)
41+
catdoc - To convert old Word documents to text (alternative)
42+
xlsx2csv - To convert modern Excel documents to CSV
43+
xls2csv - To convert old Excel documents to CSV
44+
lynx - To convert HTML documents to text
45+
pdftotext - To convert PDF documents to text
46+
mktemp - To create a temporary directory
47+
48+
--------------------------------------------------------------------------------
49+
50+
URL: http://raf.org/textmail
51+
GIT: https://github.com/raforg/textmail
52+
Date: 20200625
53+
Author: raf <raf@raf.org>
54+

0 commit comments

Comments
 (0)