README 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  1. --------------------------------------------------------------------------------
  2. Contents of the tools directory:
  3. --------------------------------------------------------------------------------
  4. Action scripts:
  5. freshmeat_search.pl Search freshmeat.net for selected text
  6. google_msgid.pl Search groups.google.com for selected message-id
  7. google_search.pl Search google.com for selected text
  8. multiwebsearch.pl Search any search engine for the selected text
  9. textviewer.sh Attempt to view an attachment as plain text
  10. uudec Decode and display uuencoded images
  11. Addressbook conversion:
  12. eud2gc.py Convert Eudora address book to Gnomecard
  13. kmail2sylpheed.pl Import a Kmail address book (KDE2)
  14. kmail2sylpheed_v2.pl Import a Kmail address book (KDE3)
  15. outlook2sylpheed.pl Import an Outlook generated contact list
  16. tb2sylpheed Import The Bat! address books
  17. vcard2xml.py Import an Evolution vCard
  18. Mailbox conversion:
  19. calypso_convert.pl Import mbox files with attachments from Calypso
  20. convert_mbox.pl Import mbox files
  21. maildir2sylpheed.pl Convert a maildir mailbox to MH format
  22. tbird2syl.py Integrate a Thunderbird folder tree into Claws
  23. Other tools:
  24. acroread2sylpheed.pl Send PDFs from Adobe Reader 7
  25. filter_conv_new.pl Convert new-style Sylpheed filters to filtering
  26. filter_conv.pl Convert old-style Sylpheed filters to filtering
  27. nautilus2sylpheed.sh Send files from Nautilus
  28. OOo2sylpheed.pl Send documents from OpenOffice.org
  29. sylprint.pl Printing engine, explained in README.sylprint
  30. update-po Update the .po files named on the command line.
  31. Extra tools:
  32. gif2xface.pl Convert a 48x48 GIF file to an X-Face header
  33. --------------------------------------------------------------------------------
  34. Detailed Descriptions:
  35. --------------------------------------------------------------------------------
  36. Action scripts
  37. --------------
  38. * freshmeat_search.pl
  39. WORKS ON: selection
  40. COMMAND: |freshmeat_search.pl
  41. Search freshmeat.net for selected text using the default Sylpheed-Claws browser
  42. * google_msgid.pl
  43. WORKS ON: selection
  44. COMMAND: |google_msgid.pl
  45. Lookup selected message-id in google using mozilla. Edit the script to use
  46. different browsers.
  47. * google_search.pl
  48. WORKS ON: selection
  49. COMMAND: |google_search.pl
  50. Search google.com for selected text using the default Sylpheed-Claws browser
  51. * multiwebsearch.pl
  52. WORKS ON: selection
  53. see further down for details
  54. * uudec
  55. WORKS ON: current message (or part of multipart message)
  56. COMMAND: uudec %f&
  57. Decode and display uuencoded images using uudecode.
  58. * textviewer.sh
  59. WORKS ON: current message part
  60. COMMAND: textviewer.sh %p |
  61. Attempt to view an attachment as plain text
  62. * More action examples can be found at
  63. http://melvin.hadasht.free.fr/home/sylpheed/actions/
  64. ** multiwebsearch.pl **
  65. WHAT IT DOES
  66. This is an Actions script that allows you to search
  67. websites for the selected text. It uses the default
  68. Sylpheed-Claws browser as configured through Sylpheed
  69. -Claws' GUI and specified in ~/.sylpheed-claws/sylpheedrc,
  70. and a configuration file called multiwebsearch.conf.
  71. CONFIGURATION
  72. The configuration file takes the following format:
  73. ALIAS|URL PART|URL PART
  74. ALIAS is a user-defined name; the first URL PART is the
  75. url before the search term; the second URL PART is
  76. optional and contains the remaining part of the url which
  77. comes after the search term. A sample configuration file
  78. is included.
  79. HOW TO USE IT
  80. Copy 'multiwebsearch.conf' to ~/.sylpheed-claws/
  81. Configure an Action:
  82. a) pre-configured website
  83. Command: multiwebsearch.pl --where="google" --what="%s"
  84. b) dynamic
  85. Command: multiwebsearch.pl --where="%u" --what="%s"
  86. In type a) "google" refers to one of the configured aliases,
  87. this Action will always search the website referred to by
  88. the alias "google".
  89. In type b) you will be presented with a dialog box into
  90. which you type one of your configured aliases
  91. Contact: Paul Mangan <claws@thewildbeast.co.uk>
  92. --------------------------------------------------------------------------------
  93. Address book conversion
  94. -----------------------
  95. * eud2gc.py
  96. WHAT IT DOES
  97. This python-script is a quick hack to convert an Eudora (v.3?)
  98. addressbook to vCard (GnomeCard) format.
  99. HOW TO USE IT
  100. You may do whatever you want with it! (Also regarding copying)
  101. However, the script is intended to use like this:
  102. eud2gc.py <Eudora-addressbook-file> <Gnomecard-file>
  103. Be careful not to overwrite your original GnomeCard.gcrd!
  104. (But of course you might want to add the converted stuff to it)
  105. Contact: Jeroen Versteeg <j.m.versteeg@student.utwente.nl>
  106. * kmail2sylpheed.pl
  107. WHAT IT DOES
  108. This perl script will convert an exported Kmail addressbook into a
  109. Sylpheed-Claws addressbook. If your version of Kmail is 1.37 or
  110. greater and/or your version of KAddressBook is 3.1beta1 or greater,
  111. or this script mixes up your definitions and their related data, use
  112. 'kmail2sylpheed_v2.pl' instead.
  113. HOW TO USE IT
  114. (You must run sylpheed-claws at least once before running this script.)
  115. In Kmail's Address book choose '/File/Export List'. This will export
  116. your Kmail address book data to a *.csv file.
  117. If Sylpheed-Claws is running, close it.
  118. From the command line, execute the following:
  119. perl kmail2sylpheed.pl --kmailfile=/path/to/addressbook.csv
  120. Your Kmail address book data will now be contained in Sylpheed-Claws'
  121. address book, under the name 'Kmail Address Book'.
  122. Contact: Paul Mangan <claws@thewildbeast.co.uk>
  123. * kmail2sylpheed_v2.pl
  124. This script has been tested with Kmail 1.4.7 and KAddressBook 3.1beta1
  125. WHAT IT DOES
  126. This perl script will convert a Kmail address book that has been
  127. exported in csv format into a Sylpheed-Claws address book.
  128. HOW TO USE IT
  129. (You must run sylpheed-claws at least once before running this script.)
  130. Open Kmail's Addressbook, /File/Address Book
  131. In Kmail's Addressbook choose '/File/Export/Export List...'. This
  132. will allow you to export your Kmail addressbook data to a *.csv file.
  133. If Sylpheed-Claws is running, close it.
  134. From the command line, execute the following:
  135. perl kmail2sylpheed_v2.pl --kmailfile=/path/to/addressbook.csv
  136. You can also use --help to see usage instructions.
  137. Your Kmail addressbook data will now be contained in Sylpheed-Claws'
  138. addressbook, under the name 'Kmail address book'.
  139. Contact: Paul Mangan <claws@thewildbeast.co.uk>
  140. * outlook2sylpheed.pl
  141. WHAT IT DOES
  142. This perl script converts an Outlook generated contact list into a
  143. Sylpheed-Claws XML address book.
  144. HOW TO USE IT
  145. For text files:
  146. --------------
  147. You must export Outlook Express contact list as TXT file, choosing
  148. only "Name" and "Address" fields to export.
  149. You must exit Sylpheed-Claws before converting the contact list.
  150. From the command line, execute the following:
  151. outlook2sylpheed.pl fullpathname
  152. For csv files:
  153. -------------
  154. You must export Outlook contact list as CSV file, choosing ALL the
  155. fields available for exporting.
  156. You must exit Sylpheed-Claws before converting the contact list.
  157. From the command line, execute the following:
  158. outlook2sylpheed.pl --csv fullpathname
  159. LIMITATIONS
  160. For text files only works with fields described above. If you have
  161. more complex examples send them to me, and I'll try to enhance the
  162. script.
  163. For csv files you must export all fields (but only non empty fields
  164. are added to the created Sylpheed-Claws address book) and the number
  165. of fields expected is harcoded. Look for the $nboffields variable in
  166. the script and change its value if you are sure you exported all
  167. fields and script gives the 'unknown csv file format' error.
  168. Contact: Ricardo Mones Lastra <mones@aic.uniovi.es>
  169. * tb2sylpheed
  170. WHAT IT DOES
  171. This perl script will convert an address book exported from The Bat!
  172. into a Sylpheed-Claws address book.
  173. HOW TO USE IT
  174. (You must run sylpheed-claws at least once before running this script.)
  175. If Sylpheed-Claws is running, close it.
  176. Export The Bat! Address Book to CSV file format with all fields
  177. selected to YES and then start:
  178. tb2sylpheed --tbfile=/full/path/to/thebat/addressbook.csv
  179. The Bat! addressbook data will now be contained in Sylpheed-Claws'
  180. addressbook, under the name 'The Bat! Address Book'.
  181. Contact: Urke MMI <urke@gmx.net>
  182. * vcard2xml.py
  183. WHAT IT DOES
  184. This python script will convert an Evolution vCard into a Sylpheed-Claws
  185. address book.
  186. HOW TO USE IT
  187. (You must run sylpheed-claws at least once before running this script.)
  188. If Sylpheed-Claws is running, close it.
  189. From the command line, execute the following:
  190. vcard2xml.py source_file [destination_file]
  191. When only <source_file> is specified it will overwrite (and
  192. create a backup of) the existing addressbook.
  193. When both arguments are suplied it will create a new additional
  194. addressbook named as <destination_file>.
  195. If the script encounters an error it will attempt to roll back
  196. the changes and restore the original files.
  197. Contact: Bogdan Sumanariu <bsumanariu@one5.ro>
  198. --------------------------------------------------------------------------------
  199. Mailbox conversion
  200. ------------------
  201. * calypso_convert.pl
  202. WHAT IT DOES
  203. This perl script imports mbox files that are exported by Calypso.
  204. It recreates the folder structure by scanning the "X-CalypsoFolder"
  205. header and reincludes the attachments referenced in the
  206. "X-CalypsoHtmlBody" "X-CalypsoAccount" "X-Attachment" headers.
  207. HOW TO USE IT
  208. Export the Calypso mailbox by selecting "Save to archive" and check
  209. the "Save attachments" box.
  210. Edit the script to set following variables (at the top of the file):
  211. $mboxdir : path to the exported mbox, e.g. 'Archive' or '.'
  212. $mboxfile : name of exported mbox, e.g. 'mail.txt'
  213. $outdir : name of the MH folder to create, e.g. 'Calypso'
  214. Run the script using
  215. perl calypso_convert.pl
  216. Finally, import that folder by either selecting "New mailbox" or
  217. moving it into your existing directory and recreate the folder
  218. structure manually (contentmenu from folderview).
  219. Contact: Thorsten Maerz <torte@netztorte.de>
  220. * convert_mbox.pl
  221. WHAT IT DOES
  222. This perl script converts an mbox directory's contents into
  223. Sylpheed-Claws' MH format.
  224. HOW TO USE IT
  225. Run the script using:
  226. perl convert_mbox.pl MBOX MH_DIR
  227. Move the outputted MH_DIR and its contents into your Sylpheed-Claws
  228. Mail folder; in Sylpheed-Claws right-click the top-level folder and
  229. choose 'Rebuild folder tree' from the popup menu.
  230. Contact: Fred Marton <Fred.Marton@uni-bayreuth.de>
  231. * maildir2sylpheed.pl
  232. WHAT IT DOES
  233. This perl script converts a mailbox in maildir format into
  234. Sylpheed-Claws' MH format.
  235. HOW TO USE IT
  236. Exit Sylpheed-Claws if running.
  237. Run the script using:
  238. perl maildir2sylpheed.pl --kmaildir=mail_folder_name
  239. Start Sylpheed-Claws and right-click the toplevel mailbox, i.e
  240. "Mailbox (MH)", and select 'Rebuild folder tree'.
  241. You may also need to run '/File/Folder/Check for new messages
  242. in all folders'
  243. Your maildir directory will be backed-up.
  244. Additional options:
  245. --debug debug mode
  246. --dry-run test mode, nothing is actually written
  247. --help brief usage info
  248. Contact: Paul Mangan <claws@thewildbeast.co.uk>
  249. * tbird2syl.py
  250. WHAT IT DOES
  251. This python script integrates a Thunderbird folder tree into
  252. Sylpheed-Claws.
  253. HOW TO USE IT
  254. The script receives two parameters from command-line:
  255. <Thunderbird folder path> <Sylpheed folder path>
  256. The best way to use it is to go to inside your Thunderbird
  257. root mailfolder directory and invoke it as:
  258. <path>\python2.4 <path>\tbird2syl.py . <path to sylpheed>\Mail
  259. Contact: Aleksandar Urosevic aka Urke MMI <urke@gmx.net>
  260. --------------------------------------------------------------------------------
  261. Other tools
  262. -----------
  263. * acroread2sylpheed.pl
  264. WHAT IT DOES
  265. This perl script enables Adobe Reader 7 to send documents to
  266. Sylpheed-Claws as attachments.
  267. HOW TO USE IT
  268. Make sure that the script is executable (chmod +x acroread2sylpheed.pl)
  269. Start up Adobe Reader 7 (acroread)
  270. Go to /Edit/Preferences/SendMail
  271. Select any email client except 'System Mail (mail)'
  272. Enter the path to this script in the alternate location box
  273. You can then use 'File/Email' or the Email toolbar button to launch
  274. sylpheed-claws (if not already launched) and open a new compose window
  275. with the PDF attached.
  276. Contact: Paul Mangan <claws@thewildbeast.co.uk>
  277. * filter_conv_new.pl
  278. WHAT IT DOES
  279. This perl script provides easy conversion of your filtering rules from
  280. sylpheed's new filter system (>= 0.9.99) to the filtering system used in
  281. sylpheed-claws. (Disabled rules are ignored)
  282. It reads '~/.sylpheed-2.0/filter.xml' or '~/.sylpheed/filter.xml' and
  283. writes '~/[CLAWS CONFIG DIR]/matcherrc'
  284. HOW TO USE IT
  285. Issue the following command from the 'tools' directory:
  286. perl filter_conv_new.pl
  287. That's it, the claws' filtering system is now implemented with your
  288. previous rules applied.
  289. REQUIREMENTS
  290. XML::SimpleObject
  291. Contact: Paul Mangan <claws@thewildbeast.co.uk>
  292. * filter_conv.pl
  293. WHAT IT DOES
  294. This perl script provides easy conversion of your filtering rules
  295. from sylpheed's old filter system (< 0.9.99) to the filtering system
  296. used in sylpheed-claws.
  297. It reads '~/.sylpheed/filterrc' and writes '~/.sylpheed-claws/matcherrc'
  298. HOW TO USE IT
  299. Issue the following command from the 'tools' directory:
  300. perl filter_conv.pl
  301. That's it, the new filtering system is now implemented with your
  302. previous rules applied.
  303. Contact: Paul Mangan <claws@thewildbeast.co.uk>
  304. * nautilus2sylpheed.sh
  305. WHAT IT DOES
  306. This script will recursively attach a number of selected
  307. files/directories from Nautilus to a new blank e-mail.
  308. HOW TO USE IT
  309. Copy the script to $HOME/.gnome2/nautilus-scripts, chmod u+x,
  310. and restart nautilus (killall -9 nautilus). You will now have
  311. a right-click menu item: '/Scripts/nautilus2sylpheed.sh'
  312. Contact: Reza Pakdel <hrpakdel@cpsc.ucalgary.ca>
  313. * OOo2sylpheed.pl
  314. WHAT IT DOES
  315. This perl script enables OpenOffice.org to send documents to
  316. Sylpheed-Claws as attachments.
  317. HOW TO USE IT
  318. OpenOffice.org Version 2.0
  319. ----------------------------
  320. This script is not needed for OOo version 2, which can work
  321. directly with Sylpheed-Claws.
  322. Go to 'Tools/Options/Internet/E-mail' and enter 'sylpheed-claws'
  323. in the box.
  324. OpenOffice.org Version 1.1.0
  325. ----------------------------
  326. Start up OpenOffice.org.
  327. Go to 'Tools/Options/OpenOffice.org/External Programs'
  328. Select either ''Mozilla 1.x (Option 1)', or
  329. 'Netscape 6.x - 7.0 (Option 1)' from the 'Program' selection
  330. Enter the path to OOo2sylpheed.pl in the 'Path' box
  331. or select it by clicking on the '...' button.
  332. You can then use 'File/Send/Document as email' to launch
  333. sylpheed-claws (if not already launched) and open a new compose
  334. window with the document attached.
  335. OpenOffice.org Version 1.0
  336. --------------------------
  337. Start up OpenOffice.org.
  338. Go to 'Tools/Options/OpenOffice.org/External Programs'
  339. Enter the path to OOo2sylpheed.pl in the 'Program' box
  340. or select it by clicking on the '...' button.
  341. Contact: Paul Mangan <claws@thewildbeast.co.uk>
  342. * update-po
  343. WHAT IT DOES
  344. This script is a message catalog translator's tool, it updates the .po
  345. files named on the command line.
  346. HOW TO USE IT
  347. This script needs to be copied to and run from the 'po' directory.
  348. ./update-po lang.po lang2.po ...
  349. to update one or more <yourlang>.po files from the sourcecode files
  350. named in POTFILES.in. The old .po file is save in a .po.old file.
  351. For example, when you want to update fr.po, run ./update-po fr.po,
  352. then edit fr.po to update your translation.
  353. Contact: Wilbert Berendsen <wilbert@oswf.org>
  354. --------------------------------------------------------------------------------
  355. Extra tools
  356. -----------
  357. * gif2xface.pl
  358. WHAT IT DOES
  359. This perl script converts a monochrome (1 bit) 48x48 pixels GIF file
  360. into an X-Face graphic suitable for inclusion into custom headers of
  361. Sylpheed-Claws. An X-Face allows to quickly identify (or be identified
  362. as) the sender of a mail message in a xface-capable MUA (like sylpheed
  363. -claws).
  364. HOW TO USE IT
  365. After obtaining the desired image for your X-Face you should:
  366. * scale it to 48x48 pixels (Image->Scale image on Gimp)
  367. * down color depth to b/w (Image->Mode->Indexed selecting "Use
  368. Black/White palette" and the desired dithering options (prior to
  369. indexing doing Image->Colors->Threshold allows you to select the
  370. b/w level if you don't want a dithered (dotty) image))
  371. * save file as non-interlaced GIF
  372. Then do:
  373. ./gif2xface < filename.gif > filename.xface
  374. In filename.xface will be the X-Face header ready to use.
  375. You can add a custom header in Sylpheed-Claws through Configuration->
  376. Preferences per account, "Send" tab, check "Add user-defined header"
  377. then "Edit..." if you want to add it via Sylpheed -Claws interface, or do
  378. echo "0:" `cat filename.xface` > ~/.sylpheed-claws/customheaderrc
  379. if you want to create the custom headers file yourself (Warning: this
  380. method is valid only if you don't have any other custom header set or
  381. they will be lost!).
  382. Contact: Ricardo Mones Lastra <mones@aic.uniovi.es>
  383. --------------------------------------------------------------------------------