OOo2sylpheed.pl 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/perl
  2. # * Copyright 2002 Paul Mangan <claws@thewildbeast.co.uk>
  3. # *
  4. # * This file is free software; you can redistribute it and/or modify it
  5. # * under the terms of the GNU General Public License as published by
  6. # * the Free Software Foundation; either version 2 of the License, or
  7. # * (at your option) any later version.
  8. # *
  9. # * This program is distributed in the hope that it will be useful, but
  10. # * WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. # * General Public License for more details.
  13. # *
  14. # * You should have received a copy of the GNU General Public License
  15. # * along with this program; if not, write to the Free Software
  16. # * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17. #
  18. # OOo2sylpheed.pl helper script to send documents from OpenOffice.org
  19. # to Sylpheed-Claws
  20. use strict;
  21. my $input = <>;
  22. $ARGV =~ s/^"attachment='file:\/\///;
  23. $ARGV =~ s/'"$//;
  24. $ARGV =~ s/%20/ /g;
  25. exec "sylpheed-claws --attach \"$ARGV\"";
  26. ## change the line above to point to your sylpheed executable
  27. exit;