sylpheed-13.html 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
  2. <HTML>
  3. <HEAD>
  4. <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
  5. <TITLE>Sylpheed User's Manual: Filters, actions and templates</TITLE>
  6. <LINK HREF="sylpheed-14.html" REL=next>
  7. <LINK HREF="sylpheed-12.html" REL=previous>
  8. <LINK HREF="sylpheed.html#toc13" REL=contents>
  9. </HEAD>
  10. <BODY>
  11. <A HREF="sylpheed-14.html">Next</A>
  12. <A HREF="sylpheed-12.html">Previous</A>
  13. <A HREF="sylpheed.html#toc13">Contents</A>
  14. <HR>
  15. <H2><A NAME="s13">13.</A> <A HREF="sylpheed.html#toc13">Filters, actions and templates</A></H2>
  16. <P>Sylpheed offers three powerfull tools to help you automatically
  17. and efficently manage you mails. These tools are:</P>
  18. <P>
  19. <UL>
  20. <LI>The <I>filters</I>, that let you sort you incoming messages and move
  21. them into your folders based on their sender, their content,
  22. using regular expressions.</LI>
  23. <LI>The <I>actions</I> feature is a convenient way for the user to launch
  24. external commands to process a complete message file including
  25. headers and body or just one of its parts.
  26. It allows also the use of an external command to filter the whole
  27. text or just a selected part in the message window or in the
  28. compose window.</LI>
  29. <LI>The <I>templates</I> that let you pre-define complete messages
  30. leaving placeholders in the text to be filled at composition time.</LI>
  31. </UL>
  32. </P>
  33. <H2><A NAME="ss13.1">13.1</A> <A HREF="sylpheed.html#toc13.1">Filters</A>
  34. </H2>
  35. <P>Written by Nick Selby (sylpheed@nickselby.com)</P>
  36. <P>Sylpheed provides powerful filters to allow users to automatically
  37. pre-sort incoming mail based on a set of rules that the user defines.
  38. As a most simple example, let's say you work at the Acme Grommet Company,
  39. and you want all e-mail from your co-workers to be placed in one mailbox.
  40. To accomplish this, you would set up a filter that would place all mail
  41. whose "From" header includes the phrase "acmegrommet.com" into a specific
  42. mailbox.</P>
  43. <P>Sylpheed allows you much more control than just that simple setup;
  44. you may create filters based on several variables, including an
  45. "If this AND that" or "If the message contains this OR does NOT contain that"
  46. etc. It's very cool.</P>
  47. <H3>Finding The Filter Setting Dialog</H3>
  48. <P>The filter settings dialog is located in the <I>Configuration</I> menu,
  49. under the title "Filter Setting" or from the <I>Tools</I> menu, under in
  50. the <I>Create filter rules</I> sub menu. You may also use establish a
  51. keyboard shortcut (see Keyboard Shortcuts).</P>
  52. <H3>Setting Up Filters</H3>
  53. <P>Operator(s) and Processing instructions combine to create a Filter Rule.</P>
  54. <P>* Operators
  55. The dialog's first setting option establishes the Operator, the variable
  56. that will tell the filter what specific text to look for to trigger a
  57. filter. Each Filter Rule may have up to two operator sets.</P>
  58. <P>Each Operator variable contains three sections: <I>Header</I>,
  59. <I>Keyword</I> and <I>Predicate</I>.</P>
  60. <P>Header is a drop-down box which defines in which message header
  61. Sylpheed's filter will search. Choices range from <I>Subject</I>
  62. to <I>X-Mailer</I>. </P>
  63. <P><I>Keyword</I> is a a text box in which you may enter the text
  64. for which the filter will search. </P>
  65. <P>Predicate allows you to choose to filter based on whether the operator
  66. contains, or does not contain, the text you enter in the Keyword field.</P>
  67. <P>Example: Create an Operator in which the X-Mailer field of an incoming
  68. message contains the word 'Eudora'.</P>
  69. <P>
  70. <UL>
  71. <LI>Step 1. Under the <I>Header</I> drop-down box, select
  72. <I>X-Mailer</I>.</LI>
  73. <LI>Step 2. In the <I>Keyword</I> text box, type 'eudora'
  74. (case insensitive)</LI>
  75. <LI>Step 3. Determine appropriate Predicate setting. Default
  76. is <I>Contains</I>.</LI>
  77. </UL>
  78. </P>
  79. <P>The second Operator setting, which is set identically to the
  80. first, also allows the user to select an AND/OR setting
  81. declaring the relationship between the two operators. </P>
  82. <P>Example: Create an Operator set which will process mail with
  83. a <I>From</I> header of bob@acmegrommet.com AND a subject
  84. of "2001 Spring Grommet Collection"</P>
  85. <P>
  86. <UL>
  87. <LI>Step 1. Under the first Operator set's Header drop-down
  88. box, select <I>From</I>.</LI>
  89. <LI>Step 2. In the <I>Keyword</I> text box, type
  90. 'bob@acmegrommet.com' (case insensitive).</LI>
  91. <LI>Step 3. Leave <I>Predicate</I> setting on default,
  92. <I>Contains</I></LI>
  93. <LI>Step 4. Leave <I>AND/OR</I> box on default setting, <I>and</I>.</LI>
  94. <LI>Step 5. Under the second Operator set's <I>Header</I>
  95. drop-down box, select <I>Subject</I>.</LI>
  96. <LI>Step 6. In the <I>Keyword</I> text box, type
  97. '2001 spring grommet collection' (case insensitive).</LI>
  98. <LI>Step 7. Leave <I>Predicate</I> setting on default,
  99. <I>Contains</I>.</LI>
  100. </UL>
  101. </P>
  102. <H3>Message Processing</H3>
  103. <P>Once you've established the Operator(s) that will define
  104. which messages will be processed, it's time to tell
  105. Sylpheed what to do with messages that match the operator(s).
  106. You may choose between two radio button-selected settings:
  107. <I>Destination</I> and <I>Don't Receive</I>.</P>
  108. <P>Selecting <I>Destinations</I> will enable you to route
  109. the mail into a mailbox which you specify.</P>
  110. <P>Selecting <I>Don't Receive</I> will instruct Sylpheed
  111. to not download messages with that operator. Note that with
  112. <I>Don't Receive</I>, Sylpheed merely leaves the message
  113. on your mailserver - it does not delete it. </P>
  114. <P>To specify a mailbox to which you want the message transfered,
  115. click on the radio button to the left of the word <I>Destination</I>
  116. in the dialog. (Currently, in order to specify a mailbox you
  117. must have created that mailbox prior to activating the Filter
  118. Setting dialog.) Clicking the <I>Select</I> button will open
  119. a pop-up window containing all mail folders currently active
  120. in your copy of Sylpheed. Select the mailbox you wish by either </P>
  121. <P>
  122. <UL>
  123. <LI>(a) double clicking on the mail folder name or </LI>
  124. <LI>(b) clicking the mail folder name and then clicking <I>OK</I>. </LI>
  125. </UL>
  126. </P>
  127. <P>To specify that the message not be retrieved, and left
  128. on your mail server, click the radio button to the left
  129. of the words <I>Don't Receive</I>.</P>
  130. <H3>Filter Registration</H3>
  131. <P>Now that you have set the Operator and the Processing Rule,
  132. all that's left to do is tell Sylpheed to save the entire
  133. Filter Rule. <B>If you skip this step, the filter won't work</B>.</P>
  134. <P>The <I>Register Rules</I> configuration has three options:
  135. <I>Register</I>, <I>Substitute</I> and <I>Delete</I>. </P>
  136. <P>
  137. <UL>
  138. <LI><I>Register</I> saves the Filter Rule.</LI>
  139. <LI><I>Substitute</I> modifies an existing registered
  140. Filter Rule.</LI>
  141. <LI><I>Delete</I> will remove a previously registered
  142. Filter Rule. </LI>
  143. </UL>
  144. </P>
  145. <P>Example of Registering A Filter Rule: Create a Filter Rule
  146. that moves all mail with the subject of "Sylpheed Manual"
  147. into the (previously created) mail folder "Sylpheed Manual Mail".</P>
  148. <P>
  149. <UL>
  150. <LI>Step 1. Under the first Operator set's <I>Header</I>
  151. drop-down box, select <I>Subject</I>.</LI>
  152. <LI>Step 2. In the <I>Keyword</I> text box, type
  153. 'sylpheed manual' (case insensitive).</LI>
  154. <LI>Step 3. Leave <I>Predicate</I> setting on default,
  155. <I>Contains</I>. Leave second Operator set empty.</LI>
  156. <LI>Step 4. Click <I>Destinations</I> radio button;
  157. select "Sylpheed Manual Mail" folder.</LI>
  158. <LI>Step 5. Click <I>Register</I>.</LI>
  159. <LI>Step 6. Click <I>OK</I>.</LI>
  160. </UL>
  161. </P>
  162. <P>Example of Substituting A Filter Rule: Modify a previously
  163. created Filter Rule that moves all mail with the subject
  164. of "Sylpheed Manual" to sort mail not to the mail folder
  165. "Sylpheed Manual Mail" but rather the mail folder "Sylpheed Questions" </P>
  166. <P>
  167. <UL>
  168. <LI>Step 1. Under the first Operator set's <I>Header</I>
  169. drop-down box, select <I>Subject</I>.</LI>
  170. <LI>Step 2. In the <I>Keyword</I> text box, type
  171. 'sylpheed manual' (case insensitive).</LI>
  172. <LI>Step 3. Leave <I>Predicate</I> setting on default,
  173. <I>Contains</I>. Leave second Operator set empty.</LI>
  174. <LI>Step 4. Click <I>Destinations</I> radio button;
  175. select "Sylpheed Questions" folder.</LI>
  176. <LI>Step 5. Click <I>Substitute</I>.</LI>
  177. <LI>Step 6. Click <I>OK</I>.</LI>
  178. </UL>
  179. </P>
  180. <P>Example of Deleting a Filter Rule: Remove the previously
  181. created Filter Rule which refers to Subject:Sylpheed Questions.</P>
  182. <P>
  183. <UL>
  184. <LI>Step 1. In the <I>Registered Rules</I> select box,
  185. highlight the filter entitled
  186. "<I>Subject:Sylpheed Manual: :::Sylpheed Questions:1:1:m</I>"</LI>
  187. <LI>Step 2. Click the <I>Delete</I> Button.</LI>
  188. <LI>Step 3. Confirm the deletion by clicking <I>Yes</I> in the
  189. confirmation pop-up that asks,
  190. <I>Do you really want to delete this rule?</I></LI>
  191. <LI>Step 4. Click <I>OK</I>.</LI>
  192. </UL>
  193. </P>
  194. <H3>Registered Rule Order</H3>
  195. <P>One caveat about all this: the order in which Filter Rules
  196. are created could adversely affect your intended message sorting,
  197. and one needs to consider this when creating or updating Filter Rules. </P>
  198. <P>For example, a Filter Rule saying, "Move anything containing 'ABC'
  199. to Mailbox X" listed above another Filter Rule saying "Move anything
  200. containing 'ABCDEF' to Mailbox Y" will cause the latter of these
  201. filters not to process. </P>
  202. <P>Think about the way Sylpheed goes down its list: first, it would say..
  203. "Hmm, any messages with ABC? Ah, there's one! Move it".
  204. Then it would think, "Okay, any messages with ABCDEF?"
  205. To which the answer would be "no" - that ABCDEF was already
  206. filtered because it contained "ABC".</P>
  207. <P>Bummer.</P>
  208. <P>In order to avoid this, you must ensure that the more complex
  209. Filter Rule is processed first, by placing it higher than a
  210. similar, conflicting Filter Rule. </P>
  211. <P>To move a Registered Rule higher or lower within the Registered
  212. Rule box, select the rule you would like to move, and click on
  213. the <I>Up</I> or <I>Down</I> buttons. This will "move" the
  214. rule up or down, above or below a potentially conflicting Filter Rule. </P>
  215. <H2><A NAME="ss13.2">13.2</A> <A HREF="sylpheed.html#toc13.2">How to Filter Messages</A>
  216. </H2>
  217. <P>Filtering messages can be done in several ways:</P>
  218. <P>
  219. <UL>
  220. <LI>Sylpheed automatically filters incoming mail from
  221. POP servers.</LI>
  222. <LI>If you incorporate mail from a unix mailbox, then
  223. in the <I>Common preferences</I> (<I>Configuration</I> menu),
  224. you need to check the box called <I>Filter on incorporation</I>.
  225. You find this box in the <I>Receive</I> tab in the space
  226. <I>Local spool</I>.</LI>
  227. <LI>You can also select the option <I>Filter messages</I>
  228. from the Summary menu.</LI>
  229. </UL>
  230. </P>
  231. <P>Please note that, at time of writing, Sylpheed does -NOT YET-
  232. has filtering of IMAP messages enabled.</P>
  233. <H2><A NAME="ss13.3">13.3</A> <A HREF="sylpheed.html#toc13.3">Filtering mail with Procmail</A>
  234. </H2>
  235. <P>If you feel that Sylpheed has not enough options to perform
  236. filtering for you, then you can look at Sylpheed Claws which
  237. has more options for filtering. You can find the Claws version
  238. (the cutting edge, experimental version of Sylpheed)
  239. sylpheed-claws.sourceforge.net.</P>
  240. <P>Another option, if you do not want to work with an experimental
  241. version of Sylpheed, is Procmail. Procmail is a powerful mail
  242. filtering program that is triggered from the Mail Transport
  243. Agent (i.e. Sendmail, Postfix, Qmail). Procmail is called by
  244. default from these programs after receiving e-mail.</P>
  245. <P>The trick to procmail is to tell it that mail has to be filtered
  246. into MH mail folders. This is not difficult though.</P>
  247. <P>Normally procmail moves mail into MBOX format, this is one large
  248. file containing all mails in a folder. MH uses separate files
  249. for each e-mail. All you need to do is point the destination
  250. of a procmail rule to &lt;destination folder&gt;/.
  251. It is the "slash dot" that does the trick.</P>
  252. <H2><A NAME="ss13.4">13.4</A> <A HREF="sylpheed.html#toc13.4">Actions</A>
  253. </H2>
  254. <P>The following section is a copy of
  255. <A HREF="http://melvin.hadasht.free.fr/home/sylpheed/actions/index.html">Melvin's page</A>.</P>
  256. <P>The "actions" feature is a convenient way for the user to
  257. launch external commands to process a complete message file
  258. including headers and body or just one of its parts.
  259. It allows also the use of an external command to filter the
  260. whole text or just a selected part in the message window or
  261. in the compose window. This is a generic tool that allows
  262. to do any uncommon actions on the messages, and thus extends
  263. the possibilities of Sylpheed. For example, Sylpheed does not
  264. include the rot13 cyphering algorithm popular in some
  265. newsgroups. It does not support natively armored encryption
  266. or clear signing. It does not support uuencoded messages.
  267. As all these features can be handled by external programs,
  268. the actions provide a convenient way to use them from the menu bar.</P>
  269. <H3>Usage</H3>
  270. <P>To create a new action, go to the <I>Configuration</I> menu,
  271. select the <I>Actions...</I> entry. The <I>Actions setting</I>
  272. dialog offers to enter the Menu name that will trigger the command.
  273. The created menu will be found in the <I>Tools -> Actions</I> submenu.
  274. By inserting a slash / in the menu name, you create a submenu.</P>
  275. <P>The command is entered in the Command line entry. Note that
  276. Sylpheed stores every single email in a separate file. This allows
  277. to use the following syntax for the command:</P>
  278. <P>
  279. <UL>
  280. <LI><I>%f</I> denotes the file name of the selected message.
  281. If you selected more than one, then the command will be
  282. launched for each message with the appropriate file name.</LI>
  283. <LI><I>%F</I> denotes the list of the file names of the
  284. selected message. If only one message is selected,
  285. this amounts to <I>%f</I>, but if more messages are
  286. selected, then the command will be launched only once
  287. with the list of the file names. (You can use both
  288. <I>%f</I> and <I>%F</I> in one command: then the
  289. command will be launched for each selected message
  290. with the name of this message and with the list of
  291. all selected messages. I did not find a practical
  292. example for this.).</LI>
  293. <LI><I>%p</I> denotes the current selected message part
  294. of a multipart message. The part is decoded accordingly.
  295. If the message is not a multipart message, it denotes
  296. the message body.</LI>
  297. <LI>Prepending <I>&gt;</I>: this will allow you to send
  298. to the command's standard input a text that you will
  299. enter in a dialog window.</LI>
  300. <LI>Prepending <I>*</I>: this will allow you to send to
  301. the command's standard input a text that you will enter
  302. in a dialog window. But in contrast to prepending
  303. <I>&gt;</I>, the entered text is hidden
  304. (useful when entering passwords).</LI>
  305. <LI>Appending an ampersand <I>&amp;</I>: this will run
  306. the command asynchronously. That means "fire and forget".
  307. Sylpheed won't wait for the command to finish, nor will
  308. it catch its output or its error messages.</LI>
  309. <LI>Prepending the vertical bar <I>|</I> (pipe-in):
  310. this will send the current displayed text or the current
  311. selected text from the message view or the compose
  312. window to the command standard input. The command will
  313. silently fail if more than one message is selected.</LI>
  314. <LI>Appending the vertical bar <I>|</I> (pipe-out): this
  315. will replace the current displayed text or the current
  316. selected text from the message window or the compose
  317. window with the command standard output. The command
  318. will silently fail if more than one message is selected.</LI>
  319. <LI>Appending the "greater than" sign <I>&gt;</I> will
  320. insert the command output in the message. The difference
  321. between the trailing <I>|</I> is that no text will be
  322. deleted or replaced. Most used when composing mails to
  323. insert text.</LI>
  324. </UL>
  325. </P>
  326. <P><B>Note</B>: It is not possible to use actions containing
  327. <I>%f</I>, <I>%F</I> or <I>%p</I> from the compose window.</P>
  328. <P>When a command is run, and unless it is run asynchronously,
  329. Sylpheed will be insensitive to any interaction and it will wait
  330. for the command to finish. If the command takes too long
  331. (5 seconds), it will popup a dialog window allowing to stop it.
  332. This dialog will also be displayed as soon as the command has
  333. some output: error messages or even its standard output when
  334. the command is not a "pipe-out" command. When multiple commands
  335. are being run, they are run in parallel and each command output
  336. is separated from the outputs of the others.</P>
  337. <H3>Examples</H3>
  338. <P>Here are some examples that are listed in the same syntax
  339. as used for storing the actions list. You can copy and past
  340. the definition in your <I>&nbsp;/.sylpheed/actionsrc</I> file
  341. (exit Sylpheed before). The syntax is very simple: one line
  342. per action, each action contains the menu name and the command
  343. line separated by a colon and a space ": ".
  344. Alternatively, you can use <I>Configuration -> Actions...</I>
  345. and for each example enter a menu name and copy&amp;paste the
  346. text after the colon and space ": " in the command definition.</P>
  347. <P>
  348. <BR><CENTER>
  349. <TABLE BORDER><TR><TD>
  350. <B>Purpose</B></TD><TD><B>Definition</B></TD><TD><B>Details</B></TD></TR><TR><TD>
  351. Decoding uuencoded messages</TD><TD>UUdeview: xdeview %F&amp;</TD><TD>xdeview comes with uudeview. If an encoded file is splitin multiple messages, just select them all and run the command.</TD></TR><TR><TD>
  352. Display uuencoded image</TD><TD>Display uuencoded: uudec %f&amp;</TD><TD>Displays uuencoded files. The uudec script is to be found here.</TD></TR><TR><TD>
  353. rot13 cyphering</TD><TD>Rot13: |tr a-zA-Z n-za-mN-ZA-M|</TD><TD>This will apply the rot13 cyphering algorithm to the (selected)text in the message/compose view.</TD></TR><TR><TD>
  354. Save MS TNEF parts</TD><TD>Save TNEF part: xterm -e tnef-claws %p</TD><TD>Select the TNEF message part then use this action to extractthe attachment.</TD></TR><TR><TD>
  355. Alter messages</TD><TD>Edit message: gvim -f %F</TD><TD>Allows to edit any received message. Can be used to removeunneeded message parts etc.</TD></TR><TR><TD>
  356. Pretty format</TD><TD>Par: |par 72Tbgjqw74bEe B=._A_a 72bgi|</TD><TD>par is a utility that can pretty format any text. It does avery good job in indenting quoted messages, and justify text.Used when composing a message</TD></TR><TR><TD>
  357. Browse</TD><TD>Part/Dillo: dillo %p&amp;</TD><TD>Browse the selected message part in Dillo.</TD></TR><TR><TD>
  358. Clear Sign</TD><TD>GnuPG/Clear Sign: |gpg-sign-syl|</TD><TD>Clear sign a message. The gpg-sign-syl script is responsiblefor asking the passphrase and for running gnupg. Make surethat you wrap your message correctly before signing, and thatthe resultant text will not be wrapped when sent (by disabling'wrap on send')</TD></TR><TR><TD>
  359. Verify Clear Signed</TD><TD>GnuPG/Verify: |gpg --no-tty --verify</TD><TD>Verify clear signed messages. The result is displayed in theactions output dialog.</TD></TR><TR><TD>
  360. Encrypt ASCII Armored</TD><TD>GnuPG/Encrypt: | gpg-enc-syl|</TD><TD>Encrypt message to ASCII armored. The recipient will be askedin a xterm.</TD></TR><TR><TD>
  361. Decrypt ASCII Armored</TD><TD>GnuPG/Decrypt: *gpg --no-tty --command-fd 0 --passphrase-fd 0 --decrypt %f|</TD><TD>Decrypt ASCII armored messages. The passphrase is to be enteredin the opened action's input dialog.</TD></TR><TR><TD>
  362. Receive key from server</TD><TD>GnuPG/Receive Selected Key: |gpg --recv-key `cat`</TD><TD>Select a key ID in the message view then call this action toimport it from a key server. GnuPG option file must contain areference to a keyserver. (Suggested by Bob Forsman)</TD></TR><TR><TD>
  363. Import key from mail</TD><TD>GnuPG/Import Key From Mail: gpg --import %p</TD><TD>Select the message part where the public key is then importit with this action.</TD></TR><TR><TD>
  364. Insert public key in message</TD><TD>GnuPG/Insert My Public Key: gpg --export -a MYKEYID&gt;</TD><TD>Insert your public key in the message your are composing.Replace MYKEYID with your key id. Needs 0.8.6claws66 or newer.</TD></TR><TR><TD>
  365. Reporting SPAM</TD><TD>Report as SPAM: spamassassin -r &gt; %f</TD><TD>Use spamassassin to report mail as spam. Redirection (&gt;)is possible only with version 0.7.7.</TD></TR><TR><TD>
  366. Check spelling</TD><TD>Check spelling: |T=`mktemp $HOME/.sXXXXXX`; cat - &gt; $T;xterm -e ispell $T;cat $T;rm $T|</TD><TD>Open a terminal and check the spelling with ispell</TD></TR><TR><TD>
  367. Google for message id</TD><TD>Google Msg ID: |google&thinsp;msgid.pl</TD><TD>Search the web for the selected message ID. Needs thegoogle&thinsp;msgid.pl script.</TD></TR><TR><TD>
  368. </TD></TR></TABLE>
  369. </CENTER><BR>
  370. </P>
  371. <P>The gpg-enc-syl script is to be found
  372. <A HREF="http://melvin.hadasht.free.fr/home/sylpheed/actions/gpg-enc-syl">here (gpg-enc-syl)</A>.
  373. It calls gpg with the --yes command line option that you may want
  374. to remove it. See gpg manual page for info.</P>
  375. <P>The gpg-sign-syl script is to be found
  376. <A HREF="http://melvin.hadasht.free.fr/home/sylpheed/actions/gpg-sign-syl">here (gpg-sign-syl)</A>.
  377. It needs the ssh-askpass utility found in OpenSSH. It can be
  378. replaced by any X11 tool that asks some (hidden) text which
  379. is then sent to standard output. Another version that uses
  380. an xterm is to be found
  381. <A HREF="http://melvin.hadasht.free.fr/home/sylpheed/actions/gpg-sign-syl-xterm">here (gpg-sign-syl-xterm)</A>.</P>
  382. <P>The uudec script is to be found
  383. <A HREF="http://melvin.hadasht.free.fr/home/sylpheed/actions/uudec">here (uudec)</A>.
  384. It needs uudecode and ImageMagick's display. The latter can be
  385. replaced by any image viewer that can get input from standard
  386. input. The script could also be modified to use temporary
  387. files instead of standard input.</P>
  388. <P>The google_msgid.pl script is to be found
  389. <A HREF="http://melvin.hadasht.free.fr/home/sylpheed/actions/google_msgid.pl">here (google_msgid.pl)</A>.
  390. Example and script by Thorsten Maerz. Edit the script to change
  391. the browser (default is mozilla).</P>
  392. <P>The tnef-claws bash script was written by Shawn Lamson and is
  393. to be found
  394. <A HREF="http://melvin.hadasht.free.fr/home/sylpheed/actions/tnef-claws">here</A>.
  395. The script is well commented. You need to have the tnef package
  396. already installed.</P>
  397. <H2><A NAME="ss13.5">13.5</A> <A HREF="sylpheed.html#toc13.5">Templates</A>
  398. </H2>
  399. <P>With Sylpheed you can define mail templates to use when replying
  400. to messages. A template can contain raw text (that will be inserted
  401. in the composed mail without any change), and placeholders that are
  402. replaced at composition time by the actual value of the selected
  403. fields from the original message.</P>
  404. <P>A typical use of the template could be to define the legal notice
  405. to be appended to your messages (the usual notice that contains a
  406. text like: "here are my own words and not those of my company, my
  407. boss is not liable for them, bla, bla, bla").</P>
  408. <P>To define a new template, in the <I>Configuration</I> menu select
  409. the <I>Templates</I> entry and fill the form:</P>
  410. <P>The name parameter is used to identify each template, this name
  411. will then appear in the <I>Tools/Templates</I> menu in the
  412. composition window.
  413. The content of the <I>To</I> field will be appended to the original
  414. content of the corresponding field in the message you are composing.
  415. The content of the <I>Subject</I> field will replace the orignal subject
  416. of the message you are composing.</P>
  417. <P>In the upper pane, type in the text you want to put in the template,
  418. use the <I>Symbols</I> button to open a help window that contains
  419. the description of all the placeholders you can use in a template
  420. (there is one for the sender, one for the date, one for the message
  421. ID, ...), then use the <I>Register</I> button to validate the
  422. template. If you do not register the template, when leaving the form
  423. the template will be canceled. To modify an existing template, select
  424. it in the lower pane, modify its text, then use the <I>Substitute</I>
  425. button. As you may guess, the <I>Delete</I> button removes the selected
  426. template. Finally validate your changes with the <I>OK</I> button.
  427. If you use the <I>Cancel</I> button, the form is closed and your changes
  428. are lost (deleted templates are back, added templates are lost).</P>
  429. <P>To use a template, open the composition window and select the template
  430. from the <I>Tools/Templates</I> menu. You can then choose to insert
  431. the template into your message or to completely replace the text of the
  432. message by the template. This only affects the body of the message.
  433. If you choose to insert the template, its text will be inserted at the
  434. cursor location.</P>
  435. <P>The placeholders are taken from the source message when replying, so
  436. they have no meaning when composing a new message.</P>
  437. <HR>
  438. <A HREF="sylpheed-14.html">Next</A>
  439. <A HREF="sylpheed-12.html">Previous</A>
  440. <A HREF="sylpheed.html#toc13">Contents</A>
  441. </BODY>
  442. </HTML>