README 18 KB

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