From: Paul Mangan Date: Tue, 30 Jul 2002 19:04:26 +0000 (+0000) Subject: add OOo2sylpheed.pl script X-Git-Tag: rel_0_8_1~1 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=26a40cf02ef17d4b07e23aa23aeb760333b0202f add OOo2sylpheed.pl script --- diff --git a/ChangeLog.claws b/ChangeLog.claws index a051d0d6b..221ccb0c3 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,3 +1,10 @@ +2002-07-30 [paul] 0.8.0claws29 + + * tools/OOo2sylpheed.pl ** NEW FILE ** + tools/README + add script to enable sending documents as + attachments from OpenOffice.org + 2002-07-30 [melvin] 0.8.0claws28 * src/prefs_actions.c diff --git a/configure.in b/configure.in index bf9b68ad0..e17dceec8 100644 --- a/configure.in +++ b/configure.in @@ -8,7 +8,7 @@ MINOR_VERSION=8 MICRO_VERSION=0 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=claws28 +EXTRA_VERSION=claws29 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION dnl set $target diff --git a/tools/Makefile.am b/tools/Makefile.am index ca2aab2c0..833667d3f 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -1,4 +1,5 @@ EXTRA_TOOLS = \ + OOo2sylpheed.pl \ calypso_convert.pl \ eud2gc.py \ filter_conv.pl \ diff --git a/tools/OOo2sylpheed.pl b/tools/OOo2sylpheed.pl new file mode 100644 index 000000000..814f816af --- /dev/null +++ b/tools/OOo2sylpheed.pl @@ -0,0 +1,32 @@ +#!/usr/bin/perl + +# * Copyright 2002 Paul Mangan +# * +# * This file is free software; you can redistribute it and/or modify it +# * under the terms of the GNU General Public License as published by +# * the Free Software Foundation; either version 2 of the License, or +# * (at your option) any later version. +# * +# * This program is distributed in the hope that it will be useful, but +# * WITHOUT ANY WARRANTY; without even the implied warranty of +# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# * General Public License for more details. +# * +# * You should have received a copy of the GNU General Public License +# * along with this program; if not, write to the Free Software +# * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# OOo2sylpheed.pl helper script to send documents from OpenOffice.org +# to sylpheed + +use strict; + +my $input = <>; + +$ARGV =~ s/^"attachment='file:\/\///; +$ARGV =~ s/'"$//; + +exec "/usr/local/bin/sylpheed --attach $ARGV"; +## change the line above to point to your sylpheed executable + +exit; diff --git a/tools/README b/tools/README index 0891a577f..b5e234b25 100644 --- a/tools/README +++ b/tools/README @@ -188,6 +188,29 @@ ----------------------------------------------------------------------- +* OOo2sylpheed.pl + + WHAT IT DOES + + This perl script enables OpenOffice.org to send documents to sylpheed + as attachments. + + HOW TO USE IT + + Start up OpenOffice.org. + Go to 'Tools/Options/OpenOffice.org/External Programs' + Enter the path to this script in the 'Program' box + or select it by clicking on the '...' button. + + You can then use 'File/Send/Document as email' to launch sylpheed + (if not already launched) and open a new compose window with the + document attached. + + Tested with OpenOffice.org version 1.0 + Any questions, comments or problems, contact Paul + +----------------------------------------------------------------------- + * sylpheed-switcher WHAT IT DOES