Update of /pack/anoncvs/sylpheedclaws/sylpheed-claws/tools
In directory sunsite.dk:/tmp/cvs-serv20336/tools
Modified Files:
Tag: gtk2
README textviewer.pl
Log Message:
2006-12-05 [paul] 2.6.1cvs3
* tools/README
* tools/textviewer.pl
script updated and description added
Index: README
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/sylpheed-claws/tools/README,v
retrieving revision 1.30.2.14
retrieving revision 1.30.2.15
diff -u -d -r1.30.2.14 -r1.30.2.15
--- README 2006/12/04 12:32:53 1.30.2.14
+++ README 2006/12/05 09:19:15 1.30.2.15
@@ -31,14 +31,15 @@
acroread2claws-mail.pl Send PDFs from Adobe Reader 7
filter_conv_new.pl Convert new-style Sylpheed filters to filtering
filter_conv.pl Convert old-style Sylpheed filters to filtering
+ fix-date.sh Replace/Add a message's Date field
nautilus2claws-mail.sh Send files from Nautilus
OOo2claws-mail.pl Send documents from OpenOffice.org
sylprint.pl Printing engine, explained in README.sylprint
- update-po Update the .po files named on the command line.
+ textviewer.pl Display various attachments as text
Extra tools:
- fix-date.sh Replace/Add a message's Date field
gif2xface.pl Convert a 48x48 GIF file to an X-Face header
+ update-po Update the .po files named on the command line.
--------------------------------------------------------------------------------
Detailed Descriptions:
@@ -451,6 +452,21 @@
Contact: Paul Mangan <[email protected]>
+* fix-date.sh
+
+ WHAT IT DOES
+ It will replace the Date: value w/ the one picked up from
+ more recent Received: field if this field resides in one
+ line. Otherwise, it will take the file modification time
+ (using a RFC 2822-compliant form). If no X-Original-Date already
+ exist, the former Date value will be set in such field.
+
+ HOW TO USE IT
+ fix_date.sh <filename> [<filename>..]
+
+ Contact: wwp <[email protected]>
+
+
* nautilus2claws-mail.sh
WHAT IT DOES
@@ -503,45 +519,38 @@
Contact: Paul Mangan <[email protected]>
-* update-po
+* textviewer.pl
WHAT IT DOES
- This script is a message catalog translator's tool, it updates the .po
- files named on the command line.
+ This script tries to recognise an attachment by using the 'file'
+ command and/or the file extension and then uses the available Linux
+ utilities to make an effort to display it as text. For example
+ .doc antiword -w 72
+ .txt, .diff, .c, .h,
+ .ic. .ec, .cc, .sh,
+ .sed, .awk cat
+ .html txt2htm or text2html
+ .xls, .sxc, .csv xlscat -L
+ .rtf rtf2text
+ .pdf pdf2text %f -
+ .odt ooo2txt
+ .pl, .pm perltidy -st -se or cat
+ .bz2 bzip2 -d < %f | strings
HOW TO USE IT
- This script needs to be copied to and run from the 'po' directory.
-
- ./update-po lang.po lang2.po ...
-
- to update one or more <yourlang>.po files from the sourcecode files
- named in POTFILES.in. The old .po file is save in a .po.old file.
-
- For example, when you want to update fr.po, run ./update-po fr.po,
- then edit fr.po to update your translation.
+ Go to /Configuration/Message View/External Programs and enter the
+ path to the script in the "Command for 'Display as text'" box.
+ Now when you right-click an attachment and choose 'Display as text'
+ this script will be invoked.
- Contact: Wilbert Berendsen <[email protected]>
+
+ Contact: H.Merijn Brand <[email protected]>
--------------------------------------------------------------------------------
Extra tools
-----------
-* fix-date.sh
-
-# usage: fix_date.sh <filename> [<filename>..]
- WHAT IT DOES
- It will replace the Date: value w/ the one picked up from
- more recent Received: field if this field resides in one
- line. Otherwise, it will take the file modification time
- (using a RFC 2822-compliant form). If no X-Original-Date already
- exist, the former Date value will be set in such field.
-
- HOW TO USE IT
- fix_date.sh <filename> [<filename>..]
-
- Contact: wwp <[email protected]>
-
* gif2xface.pl
WHAT IT DOES
@@ -575,5 +584,25 @@
they will be lost!).
Contact: Ricardo Mones Lastra <[email protected]>
+
+
+* update-po
+
+ WHAT IT DOES
+ This script is a message catalog translator's tool, it updates the .po
+ files named on the command line.
+
+ HOW TO USE IT
+ This script needs to be copied to and run from the 'po' directory.
+
+ ./update-po lang.po lang2.po ...
+
+ to update one or more <yourlang>.po files from the sourcecode files
+ named in POTFILES.in. The old .po file is save in a .po.old file.
+
+ For example, when you want to update fr.po, run ./update-po fr.po,
+ then edit fr.po to update your translation.
+
+ Contact: Wilbert Berendsen <[email protected]> or the Claws Mail Team
--------------------------------------------------------------------------------
Index: textviewer.pl
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/sylpheed-claws/tools/Attic/textviewer.pl,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -d -r1.1.2.1 -r1.1.2.2
--- textviewer.pl 2006/06/27 16:10:17 1.1.2.1
+++ textviewer.pl 2006/12/05 09:19:15 1.1.2.2
@@ -1,5 +1,11 @@
#!/usr/bin/perl
+# COPYRIGHT AND LICENSE
+# Copyright (C) 2005-2006 H.Merijn Brand
+#
+# This script is free software; you can redistribute it and/or modify it
+# under the same terms as Perl and/or Claws Mail itself. (GPL)
+
use strict;
use warnings;
@@ -27,7 +33,7 @@
"h|html" => sub { $opt_h = "html" },
) or usage (1);
-$opt_v and print STDERR "$0 @ARGV\n";
+$opt_v and print "$0 @ARGV\n";
my $file = shift or usage (1, "File argument is missing");
-f $file or usage (1, "File argument is not a plain file");
@@ -61,6 +67,8 @@
sxc => "xls", # OpenOffice spreadsheet
odt => [ "ooo2txt" ], # OpenOffice writer
+ csv => "xls", # Comma Separated Values
+
pl => [ "perltidy -st -se",
"cat" ], # Perl
pm => "pl",
@@ -72,6 +80,8 @@
plain
)),
+ bz2 => [ "bzip2 -d < %f | strings" ],
+
test => [ \&test ], # Internal
},
@@ -125,5 +135,5 @@
}
$cmd =~ s/%f\b/$file/g or $cmd .= " $file";
-$opt_v and print STDERR "$cmd\n";
+$opt_v and print "$cmd\n";
exec $cmd;
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.