claws-mail/tools
2006-04-05 12:01:19 +00:00
..
kdeservicemenu 2006-01-18 [paul] 1.9.100cvs166 2006-01-18 09:09:58 +00:00
.cvsignore replace LOG_MESSAGE with debug_print 2001-09-18 11:24:00 +00:00
acroread2sylpheed.pl 2005-11-25 [paul] 1.9.100cvs33 2005-11-25 07:13:56 +00:00
calypso_convert.pl 2005-01-14 [colin] 0.9.13cvs32.1 2005-01-14 07:52:51 +00:00
claws.i18n.status.pl 2006-04-05 [paul] 2.0.0cvs185 2006-04-05 09:07:44 +00:00
convert_mbox.pl sync 099claws 2004-02-21 11:01:01 +00:00
eud2gc.py add eudora-2-vCard convertor 2001-09-30 10:54:42 +00:00
filter_conv.pl 2005-10-21 [paul] 1.9.15cvs87 2005-10-21 09:05:25 +00:00
filter_conv_new.pl 2006-01-11 [paul] 1.9.100cvs137 2006-01-11 13:44:17 +00:00
freshmeat_search.pl 2005-10-21 [paul] 1.9.15cvs87 2005-10-21 09:05:25 +00:00
gif2xface.pl added gif2xface tool 2001-07-28 07:34:34 +00:00
google_msgid.pl Added "search for message-id" script and doc 2002-12-17 21:25:49 +00:00
google_search.pl 2005-10-21 [paul] 1.9.15cvs87 2005-10-21 09:05:25 +00:00
kmail2sylpheed.pl 2005-10-21 [paul] 1.9.15cvs87 2005-10-21 09:05:25 +00:00
kmail2sylpheed_v2.pl 2005-10-21 [paul] 1.9.15cvs87 2005-10-21 09:05:25 +00:00
maildir2sylpheed.pl 2005-09-21 [paul] 1.9.14cvs47 2005-09-21 18:22:51 +00:00
Makefile.am 2006-02-05 [colin] 2.0.0cvs14 2006-02-05 18:01:23 +00:00
multiwebsearch.conf add multiwebsearch Actions script 2003-03-13 19:38:21 +00:00
multiwebsearch.pl 2005-10-21 [paul] 1.9.15cvs87 2005-10-21 09:05:25 +00:00
nautilus2sylpheed.sh 2005-10-21 [paul] 1.9.15cvs87 2005-10-21 09:05:25 +00:00
newscache_clean.pl 2005-10-21 [paul] 1.9.15cvs87 2005-10-21 09:05:25 +00:00
OOo2sylpheed.pl 2005-10-21 [paul] 1.9.15cvs87 2005-10-21 09:05:25 +00:00
outlook2sylpheed.pl 2005-10-21 [paul] 1.9.15cvs87 2005-10-21 09:05:25 +00:00
README add info about tbird2syl.py 2006-04-05 12:01:19 +00:00
README.sylprint 2005-10-21 [paul] 1.9.15cvs87 2005-10-21 09:05:25 +00:00
sylprint.pl 2005-10-21 [paul] 1.9.15cvs87 2005-10-21 09:05:25 +00:00
sylprint.rc 2005-10-21 [paul] 1.9.15cvs87 2005-10-21 09:05:25 +00:00
tb2sylpheed 2005-10-21 [paul] 1.9.15cvs87 2005-10-21 09:05:25 +00:00
tbird2syl.py 2006-02-05 [colin] 2.0.0cvs14 2006-02-05 18:01:23 +00:00
textviewer.sh update tools/textviewer.sh (sync with HEAD) 2004-10-29 08:07:10 +00:00
update-po 2005-09-21 [paul] 1.9.14cvs47 2005-09-21 18:22:51 +00:00
uudec add Actions scripts 2002-05-18 10:23:59 +00:00
vcard2xml.py 2005-10-21 [paul] 1.9.15cvs87 2005-10-21 09:05:25 +00:00

--------------------------------------------------------------------------------
Contents of the tools directory:
--------------------------------------------------------------------------------

Action scripts:
  freshmeat_search.pl		Search freshmeat.net for selected text
  google_msgid.pl               Search groups.google.com for selected message-id
  google_search.pl		Search google.com for selected text
  multiwebsearch.pl		Search any search engine for the selected text
  textviewer.sh			Attempt to view an attachment as plain text
  uudec                         Decode and display uuencoded images

Addressbook conversion:
  eud2gc.py                     Convert Eudora address book to Gnomecard
  kmail2sylpheed.pl             Import a Kmail address book (KDE2)
  kmail2sylpheed_v2.pl          Import a Kmail address book (KDE3)
  outlook2sylpheed.pl           Import an Outlook generated contact list
  tb2sylpheed                   Import The Bat! address books
  vcard2xml.py			Import an Evolution vCard

Mailbox conversion:
  calypso_convert.pl            Import mbox files with attachments from Calypso
  convert_mbox.pl		Import mbox files
  maildir2sylpheed.pl		Convert a maildir mailbox to MH format
  tbird2syl.py			Integrate a Thunderbird folder tree into Claws

Other tools:
  acroread2sylpheed.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
  nautilus2sylpheed.sh		Send files from Nautilus
  OOo2sylpheed.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.

Extra tools:
  gif2xface.pl                  Convert a 48x48 GIF file to an X-Face header

--------------------------------------------------------------------------------
Detailed Descriptions:
--------------------------------------------------------------------------------

Action scripts
--------------

* freshmeat_search.pl
  WORKS ON: selection
  COMMAND: |freshmeat_search.pl
  Search freshmeat.net for selected text using the default Sylpheed-Claws browser

* google_msgid.pl
  WORKS ON: selection
  COMMAND: |google_msgid.pl
  Lookup selected message-id in google using mozilla. Edit the script to use
  different browsers.

* google_search.pl
  WORKS ON: selection
  COMMAND: |google_search.pl
  Search google.com for selected text using the default Sylpheed-Claws browser

* multiwebsearch.pl
  WORKS ON: selection
  see further down for details

* uudec
  WORKS ON: current message (or part of multipart message)
  COMMAND: uudec %f&
  Decode and display uuencoded images using uudecode.

* textviewer.sh
  WORKS ON: current message part
  COMMAND: textviewer.sh %p |
  Attempt to view an attachment as plain text

* More action examples can be found at
  http://melvin.hadasht.free.fr/home/sylpheed/actions/

** multiwebsearch.pl **

  WHAT IT DOES
	This is an Actions script that allows you to search
	websites for the selected text. It uses the default
	Sylpheed-Claws browser as configured through Sylpheed
	-Claws' GUI and specified in ~/.sylpheed-claws/sylpheedrc,
	and a configuration file called multiwebsearch.conf.
	
  CONFIGURATION
  	The configuration file takes the following format:
	
	ALIAS|URL PART|URL PART
	
	ALIAS is a user-defined name; the first URL PART is the
	url before the search term; the second URL PART is
	optional and contains the remaining part of the url which
	comes after the search term. A sample configuration file
	is included.
	
  HOW TO USE IT
	Copy 'multiwebsearch.conf' to ~/.sylpheed-claws/
	
	Configure an Action:
	a) pre-configured website 
	   Command: multiwebsearch.pl --where="google" --what="%s"
	b) dynamic
	   Command: multiwebsearch.pl --where="%u" --what="%s"
	   
	In type a) "google" refers to one of the configured aliases,
	this Action will always search the website referred to by
	the alias "google".
	
	In type b) you will be presented with a dialog box into
	which you type one of your configured aliases

  
  Contact: Paul Mangan <claws@thewildbeast.co.uk>
--------------------------------------------------------------------------------

Address book conversion
-----------------------

* eud2gc.py

  WHAT IT DOES
	This python-script is a quick hack to convert an Eudora (v.3?)
	addressbook to vCard (GnomeCard) format.

  HOW TO USE IT
	You may do whatever you want with it! (Also regarding copying)
	However, the script is intended to use like this:

		eud2gc.py <Eudora-addressbook-file> <Gnomecard-file>

  	Be careful not to overwrite your original GnomeCard.gcrd!
  	(But of course you might want to add the converted stuff to it)

  Contact: Jeroen Versteeg <j.m.versteeg@student.utwente.nl>

* kmail2sylpheed.pl

  WHAT IT DOES
	This perl script will convert an exported Kmail addressbook into a
  	Sylpheed-Claws addressbook. If your version of Kmail is 1.37 or
	greater and/or your version of KAddressBook is 3.1beta1 or greater,
	or this script mixes up your definitions and their related data, use
  	'kmail2sylpheed_v2.pl' instead.

  HOW TO USE IT
	(You must run sylpheed-claws at least once before running this script.)

	In Kmail's Address book choose '/File/Export List'. This will export
  	your Kmail address book data to a *.csv file.

  	If Sylpheed-Claws is running, close it.

  	From the command line, execute the following:
 
		perl kmail2sylpheed.pl --kmailfile=/path/to/addressbook.csv

  	Your Kmail address book data will now be contained in Sylpheed-Claws'
  	address book, under the name 'Kmail Address Book'.

  Contact: Paul Mangan <claws@thewildbeast.co.uk>
    

* kmail2sylpheed_v2.pl

  This script has been tested with Kmail 1.4.7 and KAddressBook 3.1beta1

  WHAT IT DOES
	This perl script will convert a Kmail address book that has been
  	exported in csv format into a Sylpheed-Claws address book.

  HOW TO USE IT
	(You must run sylpheed-claws at least once before running this script.)
  
  	Open Kmail's Addressbook, /File/Address Book
  	In Kmail's Addressbook choose '/File/Export/Export List...'. This 
  	will allow you to export your Kmail addressbook data to a *.csv file.

  	If Sylpheed-Claws is running, close it.

  	From the command line, execute the following:
 
		perl kmail2sylpheed_v2.pl --kmailfile=/path/to/addressbook.csv
	
  	You can also use --help to see usage instructions.

  	Your Kmail addressbook data will now be contained in Sylpheed-Claws'
  	addressbook, under the name 'Kmail address book'.

  Contact: Paul Mangan <claws@thewildbeast.co.uk>  


* outlook2sylpheed.pl

  WHAT IT DOES
  	This perl script converts an Outlook generated contact list into a 
  	Sylpheed-Claws XML address book.

  HOW TO USE IT
  	For text files:
	--------------
  	You must export Outlook Express contact list as TXT file, choosing
  	only "Name" and "Address" fields to export.

  	You must exit Sylpheed-Claws before converting the contact list.

  	From the command line, execute the following:

		outlook2sylpheed.pl fullpathname

	For csv files:
	-------------
	You must export Outlook contact list as CSV file, choosing ALL the
	fields available for exporting.

	You must exit Sylpheed-Claws before converting the contact list.

	From the command line, execute the following:

		outlook2sylpheed.pl --csv fullpathname

  LIMITATIONS
	For text files only works with fields described above. If you have 
	more complex examples send them to me, and I'll try to enhance the 
	script.

	For csv files you must export all fields (but only non empty fields
	are added to the created Sylpheed-Claws address book) and the number
	of fields expected is harcoded. Look for the $nboffields variable in
	the script and change its value if you are sure you exported all
	fields and script gives the 'unknown csv file format' error.

  Contact: Ricardo Mones Lastra <mones@aic.uniovi.es>


* tb2sylpheed

  WHAT IT DOES
  	This perl script will convert an address book exported from The Bat! 
	into a Sylpheed-Claws address book.

  HOW TO USE IT
	(You must run sylpheed-claws at least once before running this script.)

  	If Sylpheed-Claws is running, close it.

  	Export The Bat! Address Book to CSV file format with all fields 
  	selected to YES and then start:

  		tb2sylpheed --tbfile=/full/path/to/thebat/addressbook.csv
 
  	The Bat! addressbook data will now be contained in Sylpheed-Claws'
  	addressbook, under the name 'The Bat! Address Book'.

  Contact: Urke MMI <urke@gmx.net>  


* vcard2xml.py

  WHAT IT DOES
  	This python script will convert an Evolution vCard into a Sylpheed-Claws
	address book.

  HOW TO USE IT
	(You must run sylpheed-claws at least once before running this script.)

  	If Sylpheed-Claws is running, close it.
	From the command line, execute the following:

  		vcard2xml.py source_file [destination_file]
 
  	When only <source_file> is specified it will overwrite (and
	create a backup of) the existing addressbook. 
	When both arguments are suplied it will create a new additional 
	addressbook named as <destination_file>.
	If the script encounters an error it will attempt to roll back
	the changes and restore the original files.

  Contact: Bogdan Sumanariu <bsumanariu@one5.ro> 

--------------------------------------------------------------------------------

Mailbox conversion
------------------

* calypso_convert.pl

  WHAT IT DOES
	This perl script imports mbox files that are exported by Calypso.
  	It recreates the folder structure by scanning the "X-CalypsoFolder"
  	header and reincludes the attachments referenced in the
  	"X-CalypsoHtmlBody" "X-CalypsoAccount" "X-Attachment" headers.
  
  HOW TO USE IT
	Export the Calypso mailbox by selecting "Save to archive" and check
  	the "Save attachments" box.
	
  	Edit the script to set following variables (at the top of the file):
 	   $mboxdir  : path to the exported mbox, e.g. 'Archive' or '.'
 	   $mboxfile : name of exported mbox, e.g. 'mail.txt'
 	   $outdir   : name of the MH folder to create, e.g. 'Calypso'
	   
 	 Run the script using
	 
    		perl calypso_convert.pl
		
  	Finally, import that folder by either selecting "New mailbox" or
  	moving it into your existing directory and recreate the folder
  	structure manually (contentmenu from folderview).

  Contact: Thorsten Maerz <torte@netztorte.de>

* convert_mbox.pl

  WHAT IT DOES
	This perl script converts an mbox directory's contents into 
	Sylpheed-Claws' MH format.
  
  HOW TO USE IT
  
	Run the script using:
	 
    		perl convert_mbox.pl MBOX MH_DIR
		
	Move the outputted MH_DIR and its contents into your Sylpheed-Claws
	Mail folder; in Sylpheed-Claws right-click the top-level folder and
	choose 'Rebuild folder tree' from the popup menu.

  Contact: Fred Marton <Fred.Marton@uni-bayreuth.de>

* maildir2sylpheed.pl

  WHAT IT DOES
	This perl script converts a mailbox in maildir format into
	Sylpheed-Claws' MH format.
  
  HOW TO USE IT
  
  	Exit Sylpheed-Claws if running.
	
	Run the script using:
	 
    		perl maildir2sylpheed.pl --kmaildir=mail_folder_name
		
	Start Sylpheed-Claws and right-click the toplevel mailbox, i.e
	"Mailbox (MH)", and select 'Rebuild folder tree'.
	You may also need to run '/File/Folder/Check for new messages
	in all folders'
	Your maildir directory will be backed-up.
	
	Additional options:
		--debug		debug mode
		--dry-run	test mode, nothing is actually written
		--help		brief usage info
	
  Contact: Paul Mangan <claws@thewildbeast.co.uk>

* tbird2syl.py

  WHAT IT DOES
	This python script integrates a Thunderbird folder tree into 
        Sylpheed-Claws.
  
  HOW TO USE IT
  
	The script receives two parameters from command-line:
	<Thunderbird folder path> <Sylpheed folder path>

	The best way to use it is to go to inside your Thunderbird
	root mailfolder directory and invoke it as:

		<path>\python2.4 <path>\tbird2syl.py . <path to sylpheed>\Mail

  Contact: Aleksandar Urosevic aka Urke MMI <urke@gmx.net>

--------------------------------------------------------------------------------

Other tools
-----------

* acroread2sylpheed.pl

  WHAT IT DOES
  	This perl script enables Adobe Reader 7 to send documents to
	Sylpheed-Claws as attachments.

  HOW TO USE IT
  	Make sure that the script is executable (chmod +x acroread2sylpheed.pl)
	Start up Adobe Reader 7 (acroread)
	Go to /Edit/Preferences/SendMail
	Select any email client except 'System Mail (mail)'
	Enter the path to this script in the alternate location box  

  	You can then use 'File/Email' or the Email toolbar button to launch
	sylpheed-claws (if not already launched) and open a new compose window
	with the PDF attached.
  
  Contact: Paul Mangan <claws@thewildbeast.co.uk>


* filter_conv_new.pl

  WHAT IT DOES
	This perl script provides easy conversion of your filtering rules from
	sylpheed's new filter system (>= 0.9.99) to the filtering system used in
	sylpheed-claws. (Disabled rules are ignored)
	It reads '~/.sylpheed-2.0/filter.xml' or '~/.sylpheed/filter.xml' and
	writes '~/[CLAWS CONFIG DIR]/matcherrc'
  
  HOW TO USE IT
	Issue the following command from the 'tools' directory:

        perl filter_conv_new.pl

  	That's it, the claws' filtering system is now implemented with your
  	previous rules applied.

  REQUIREMENTS
	XML::SimpleObject

  Contact: Paul Mangan <claws@thewildbeast.co.uk>
  

* filter_conv.pl

  WHAT IT DOES
	This perl script provides easy conversion of your filtering rules
  	from sylpheed's old filter system (< 0.9.99) to the filtering system
	used in sylpheed-claws.
	It reads '~/.sylpheed/filterrc' and writes '~/.sylpheed-claws/matcherrc'
  
  HOW TO USE IT
	Issue the following command from the 'tools' directory:

        perl filter_conv.pl

  	That's it, the new filtering system is now implemented with your
  	previous rules applied.

  Contact: Paul Mangan <claws@thewildbeast.co.uk>
  

* nautilus2sylpheed.sh

  WHAT IT DOES
	This script will recursively attach a number of selected 
	files/directories from Nautilus to a new blank e-mail.

  HOW TO USE IT
  	Copy the script to $HOME/.gnome2/nautilus-scripts, chmod u+x, 
	and restart nautilus (killall -9 nautilus). You will now have 
	a right-click menu item: '/Scripts/nautilus2sylpheed.sh'
	
  Contact: Reza Pakdel <hrpakdel@cpsc.ucalgary.ca>


* OOo2sylpheed.pl

  WHAT IT DOES
  	This perl script enables OpenOffice.org to send documents to
	Sylpheed-Claws as attachments.

  HOW TO USE IT
    OpenOffice.org Version 2.0
    ----------------------------
	This script is not needed for OOo version 2, which can work
	directly with Sylpheed-Claws.
	Go to 'Tools/Options/Internet/E-mail' and enter 'sylpheed-claws'
	in the box.

    OpenOffice.org Version 1.1.0
    ----------------------------
  	Start up OpenOffice.org.
  	Go to 'Tools/Options/OpenOffice.org/External Programs'
	Select either ''Mozilla 1.x (Option 1)', or 
	'Netscape 6.x - 7.0 (Option 1)' from the 'Program' selection
  	Enter the path to OOo2sylpheed.pl in the 'Path' box
  	or select it by clicking on the '...' button.
    
  	You can then use 'File/Send/Document as email' to launch
	sylpheed-claws (if not already launched) and open a new compose
	window with the document attached.

    OpenOffice.org Version 1.0
    --------------------------
  	Start up OpenOffice.org.
  	Go to 'Tools/Options/OpenOffice.org/External Programs'
  	Enter the path to OOo2sylpheed.pl in the 'Program' box
  	or select it by clicking on the '...' button.


  Contact: Paul Mangan <claws@thewildbeast.co.uk>


* 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 <wilbert@oswf.org>

--------------------------------------------------------------------------------

Extra tools
-----------

* gif2xface.pl

  WHAT IT DOES
	This perl script converts a monochrome (1 bit) 48x48 pixels GIF file
  	into an X-Face graphic suitable for inclusion into custom headers of
  	Sylpheed-Claws. An X-Face allows to quickly identify (or be identified
	as) the sender of a mail message in a xface-capable MUA (like sylpheed
	-claws).

  HOW TO USE IT
	After obtaining the desired image for your X-Face you should:
    	  * scale it to 48x48 pixels (Image->Scale image on Gimp)
    	  * down color depth to b/w (Image->Mode->Indexed selecting "Use
      	    Black/White palette" and the desired dithering options (prior to
      	    indexing doing Image->Colors->Threshold allows you to select the
      	    b/w level if you don't want a dithered (dotty) image))
    	  * save file as non-interlaced GIF
  	Then do:

      		./gif2xface < filename.gif > filename.xface

  	In filename.xface will be the X-Face header ready to use.
  	You can add a custom header in Sylpheed-Claws through Configuration->
  	Preferences per account, "Send" tab, check "Add user-defined header"
  	then "Edit..." if you want to add it via Sylpheed -Claws interface, or do

      		echo "0:" `cat filename.xface` > ~/.sylpheed-claws/customheaderrc

  	if you want to create the custom headers file yourself (Warning: this
  	method is valid only if you don't have any other custom header set or
  	they will be lost!).

  Contact: Ricardo Mones Lastra <mones@aic.uniovi.es>

--------------------------------------------------------------------------------