https://www.claws-mail.org/faq/api.php?action=feedcontributions&user=Fzzzzz&feedformat=atom Claws Mail FAQ - User contributions [en] 2024-03-28T20:16:51Z User contributions MediaWiki 1.35.7 https://www.claws-mail.org/faq/index.php?title=Actions&diff=1499 Actions 2006-08-03T07:07:08Z <p>Fzzzzz: /* Examples */</p> <hr /> <div>=== Introduction ===<br /> <br /> The &quot;actions&quot; feature is a convenient way for the user to launch external commands to process a complete message file including headers and body or just one of its parts. It allows also the use of an external command to filter the whole text or just a selected part in the message window or in the compose window. This is a generic tool that allows to do any uncommon actions on the messages, and thus extends the possibilities of Sylpheed-Claws.<br /> <br /> === Usage ===<br /> <br /> To create a new action, go to '''Configuration -&gt; Actions....''' The &quot;Actions setting&quot; dialog offers to enter the '''Menu name''' that will trigger the command. The created menu will be found in the '''Tools -&gt; Actions''' submenu. By inserting a slash / in the menu name, you create a submenu.<br /> <br /> The command is entered in the '''Command line''' entry. Note that Sylpheed-Claws stores every single email in a separate file. This allows to use the following syntax for the command : <br /> <br /> * '''%f''' denotes the file name of the selected message. If you selected more than one, then the command will be launched for each message with the appropriate file name;<br /> <br /> * '''%F''' denotes the list of the file names of the selected message. If only one message is selected, this amounts to '''%f''', but if more messages are selected, then the command will be launched only once with the list of the file names. (You can use both '''%f''' and '''%F''' in one command: then the command will be launched for each selected message with the name of this message and with the list of all selected messages. I did not find a practical example for this.);<br /> <br /> * '''%p''' denotes the current selected message part of a multipart message. The part is decoded accordingly. If the message is not a multipart message, it denotes the message body<br /> <br /> * Prepending '''&gt;''': this will allow you to send to the command's standard input a text that you will enter in a dialog window<br /> <br /> * Prepending '''*''': this will allow you to send to the command's standard input a text that you will enter in a dialog window. But in contrast to prepending '''&gt;''', the entered text is hidden (useful when entering passwords)<br /> <br /> * Appending an ampersand '''&amp;''': this will run the command asynchronously. That means &quot;fire and forget&quot;. Sylpheed-Claws won't wait for the command to finish, nor will it catch its output or its error messages<br /> <br /> * Prepending the vertical bar '''|''' (pipe-in): this will send the current displayed text or the current selected text from the message view or the compose window to the command standard input. The command will silently fail if more than one message is selected<br /> <br /> * Appending the vertical bar '''|''' (pipe-out): this will replace the current displayed text or the current selected text from the message window or the compose window with the command standard output. The command will silently fail if more than one message is selected<br /> <br /> * Appending the &quot;greater than&quot; sign '''&gt;''' will insert the command output in the message. The difference between the trailing '''|''' is that no text will be deleted or replaced. Most used when composing mails to insert text. Only available since '''0.8.6claws66*<br /> <br /> ''Note'': It is not possible to use actions containing '''%f''', '''%F''' or '''%p''' from the compose window.<br /> <br /> When a command is run, and unless it is run asynchronously, Sylpheed-Claws will be insensitive to any interaction and it will wait for the command to finish. If the command takes too long (5 seconds), it will popup a dialog window allowing to stop it. This dialog will also be displayed as soon as the command has some output: error messages or even its standard output when the command is not a &quot;pipe-out&quot; command. When multiple commands are being run, they are run in parallel and each command output is separated from the outputs of the others.<br /> <br /> === Examples ===<br /> <br /> Here are some examples that are listed in the same syntax as used for storing the actions list. You can copy and paste the definition in your '''~/.sylpheed-claws/actionsrc''' file (exit Sylpheed-Claws before). The syntax is very simple: one line per action, each action contains the menu name and the command line separated by a colon and a space &quot;: &quot;. Alternatively, you can use '''Configuration -&gt; Actions...''' and for each example enter a menu name and copy&amp;paste the text after the colon and space &quot;: &quot; in the command definition.<br /> <br /> {| border=&quot;1&quot; cellpadding=&quot;2&quot;<br /> |-<br /> !Purpose<br /> !Menu Name: Command Line<br /> !Details<br /> |-<br /> |'''rot13 cyphering'''<br /> |'''Rot13:''' &lt;nowiki&gt;|&lt;/nowiki&gt;tr a-zA-Z n-za-mN-ZA-M&lt;nowiki&gt;|&lt;/nowiki&gt;<br /> |This will apply the rot13 cyphering algorithm to the (selected) text in the message/compose view<br /> |-<br /> |'''Decoding uuencoded messages''' <br /> |'''UUdeview:''' xdeview %F&amp; <br /> | xdeview comes with uudeview. If an encoded file is split in multiple messages, just select them all and run the command.<br /> |-<br /> |'''Display uuencoded image''' <br /> |'''Display uuencoded:''' [[Actions#uudec|uudec]] %f&amp;<br /> | Displays uuencoded files. The uudec script is to be found [http://www.sylpheed-claws.net/tools/sylpheed-claws-uudec.tar.gz here].<br /> |-<br /> |'''Save MS TNEF parts''' <br /> |'''Save TNEF part:''' xterm -e [[Actions#tnef-claws|tnef-claws]] %p <br /> | Select the TNEF message part then use this action to extract the attachment.<br /> |-<br /> |'''Alter messages''' <br /> |'''Edit message:''' gvim -f &quot;%F&quot; <br /> |Allows to edit any received message. Can be used to remove unneeded message parts etc.<br /> |-<br /> |'''Pretty format''' <br /> |'''Format/Par:''' &lt;nowiki&gt;|&lt;/nowiki&gt;par 72Tbgjqw74bEe B=.''A''a 72bgi&lt;nowiki&gt;|&lt;/nowiki&gt; <br /> '''Format/Fmt:''' &lt;nowiki&gt;|&lt;/nowiki&gt;fmt -s -w 75&lt;nowiki&gt;|&lt;/nowiki&gt;<br /> |'''Par:''' http://www.nicemice.net/par/ is an utility that can pretty format any text. It does a very good job in indenting quoted messages, and justify text. Used when reading or composing a message.<br /> <br /> '''Fmt:''' part of the the GNU core utilities<br /> |-<br /> |'''Browse''' <br /> |'''Part/Dillo:''' dillo %p&amp; <br /> |Browse the selected message part in Dillo.<br /> |-<br /> |'''Receive key from server''' <br /> |'''GnuPG/Receive Selected Key:''' &lt;nowiki&gt;ID=`gpg --verify %p /dev/null 2&gt;&amp;1|grep &quot;key ID&quot;|&lt;/nowiki&gt;tr -d &quot;[:space:]&quot;&lt;nowiki&gt;|&lt;/nowiki&gt;tail -c8`;echo &quot;==== Fetching $ID ====&quot;; gpg --no-tty --keyserver wwwkeys.nl.pgp.net --recv-keys $ID<br /> |Select the signature part of a message then call this action to fetch the key from wwwkeys.nl.pgp.net<br /> |-<br /> |'''Import key from mail''' <br /> |'''GnuPG/Import Key From Mail:''' gpg --import %p <br /> |Select the message part where the public key is then import it with this action.<br /> |-<br /> |'''Insert public key in message''' <br /> |'''GnuPG/Insert My Public Key:''' gpg --export -a MYKEYID&gt;<br /> |Insert your public key in the message your are composing. Replace MYKEYID with your key id. '''Needs 0.8.6claws66 or newer'''<br /> |-<br /> |'''Reporting SPAM''' <br /> |'''Report as SPAM:''' spamassassin -r &lt; %f <br /> |Use [http://spamassassin.apache.org/ spamassassin] to report mail as spam. Redirection (&lt;) is possible only with version 0.7.7.<br /> |-<br /> |'''Check spelling''' <br /> |'''Check spelling:''' &lt;nowiki&gt;|&lt;/nowiki&gt;T=`mktemp $HOME/.sXXXXXX`; cat - &gt; $T;xterm -e ispell $T;cat $T;rm $T&lt;nowiki&gt;|&lt;/nowiki&gt; <br /> |Open a terminal and check the spelling with ispell<br /> |-<br /> |'''Search Google for selected text''' <br /> |'''Search Google:''' &lt;nowiki&gt;|&lt;/nowiki&gt;google_search.pl <br /> |Search google for the selected text. Needs the [http://www.sylpheed-claws.net/tools/sylpheed-claws-google_search.tar.gz google_search.pl] script.<br /> |-<br /> |'''Search any searchable website for the selected text''' <br /> |'''Search:''' &lt;nowiki&gt;|&lt;/nowiki&gt;multiwebsearch.pl --where=&quot;%u&quot; --what=&quot;%s&quot;<br /> |Search any searchable website for the selected text. Needs the [http://www.sylpheed-claws.net/tools/sylpheed-claws-multiwebsearch.tar.gz multiwebsearch.pl] script.<br /> |-<br /> |'''Google for message id''' <br /> |'''Google Msg ID:''' &lt;nowiki&gt;|&lt;/nowiki&gt;google_msgid.pl <br /> |Search google for the selected message ID. Needs the [http://www.sylpheed-claws.net/tools/sylpheed-claws-google_msgid.tar.gz google_msgid.pl] script. Edit the script to change the browser (default is mozilla).<br /> |-<br /> |'''Pipe a header value to a script''' <br /> |'''Get Subject:''' grep &quot;^Subject:\ &quot; %f &lt;nowiki&gt;|&lt;/nowiki&gt; cut -d\ -f 2-&lt;nowiki&gt;|&lt;/nowiki&gt; script.sh <br /> |Pipe the '''Subject:''' header value of selected message to script.sh<br /> |}<br /> <br /> &lt;div id=&quot;uudec&quot;&gt;The '''uudec''' script is to be found [http://www.sylpheed-claws.net/tools/sylpheed-claws-uudec.tar.gz here (uudec)]. It needs '''uudecode''' and Image Magick's '''display'''. The latter can be replaced by any image viewer that can get input from standard input. The script could also be modified to use temporary files instead of standard input.&lt;/div&gt;<br /> <br /> &lt;div id=&quot;tnef-claws&quot;&gt;The '''tnef-claws''' bash script was written by Shawn Lamson and is to be found [http://melvin.hadasht.free.fr/home/sylpheed/actions/tnef-claws here]. The script is well commented. You need to have the [http://sourceforge.net/projects/tnef/ tnef] package already installed.&lt;/div&gt;<br /> <br /> === Win32 Examples ===<br /> <br /> Actions are implemented in the Win32 port of Sylpheed-Claws but, because of platform restrictions, the examples above cannot be run as listed. You can find their equivalents on the [http://claws.sylpheed.org/win32/sylpheed/claws/scripts/ Sylpheed-Claws/Win32 : Actions page].</div> Fzzzzz https://www.claws-mail.org/faq/index.php?title=Actions&diff=1498 Actions 2006-08-03T07:05:18Z <p>Fzzzzz: /* Examples */</p> <hr /> <div>=== Introduction ===<br /> <br /> The &quot;actions&quot; feature is a convenient way for the user to launch external commands to process a complete message file including headers and body or just one of its parts. It allows also the use of an external command to filter the whole text or just a selected part in the message window or in the compose window. This is a generic tool that allows to do any uncommon actions on the messages, and thus extends the possibilities of Sylpheed-Claws.<br /> <br /> === Usage ===<br /> <br /> To create a new action, go to '''Configuration -&gt; Actions....''' The &quot;Actions setting&quot; dialog offers to enter the '''Menu name''' that will trigger the command. The created menu will be found in the '''Tools -&gt; Actions''' submenu. By inserting a slash / in the menu name, you create a submenu.<br /> <br /> The command is entered in the '''Command line''' entry. Note that Sylpheed-Claws stores every single email in a separate file. This allows to use the following syntax for the command : <br /> <br /> * '''%f''' denotes the file name of the selected message. If you selected more than one, then the command will be launched for each message with the appropriate file name;<br /> <br /> * '''%F''' denotes the list of the file names of the selected message. If only one message is selected, this amounts to '''%f''', but if more messages are selected, then the command will be launched only once with the list of the file names. (You can use both '''%f''' and '''%F''' in one command: then the command will be launched for each selected message with the name of this message and with the list of all selected messages. I did not find a practical example for this.);<br /> <br /> * '''%p''' denotes the current selected message part of a multipart message. The part is decoded accordingly. If the message is not a multipart message, it denotes the message body<br /> <br /> * Prepending '''&gt;''': this will allow you to send to the command's standard input a text that you will enter in a dialog window<br /> <br /> * Prepending '''*''': this will allow you to send to the command's standard input a text that you will enter in a dialog window. But in contrast to prepending '''&gt;''', the entered text is hidden (useful when entering passwords)<br /> <br /> * Appending an ampersand '''&amp;''': this will run the command asynchronously. That means &quot;fire and forget&quot;. Sylpheed-Claws won't wait for the command to finish, nor will it catch its output or its error messages<br /> <br /> * Prepending the vertical bar '''|''' (pipe-in): this will send the current displayed text or the current selected text from the message view or the compose window to the command standard input. The command will silently fail if more than one message is selected<br /> <br /> * Appending the vertical bar '''|''' (pipe-out): this will replace the current displayed text or the current selected text from the message window or the compose window with the command standard output. The command will silently fail if more than one message is selected<br /> <br /> * Appending the &quot;greater than&quot; sign '''&gt;''' will insert the command output in the message. The difference between the trailing '''|''' is that no text will be deleted or replaced. Most used when composing mails to insert text. Only available since '''0.8.6claws66*<br /> <br /> ''Note'': It is not possible to use actions containing '''%f''', '''%F''' or '''%p''' from the compose window.<br /> <br /> When a command is run, and unless it is run asynchronously, Sylpheed-Claws will be insensitive to any interaction and it will wait for the command to finish. If the command takes too long (5 seconds), it will popup a dialog window allowing to stop it. This dialog will also be displayed as soon as the command has some output: error messages or even its standard output when the command is not a &quot;pipe-out&quot; command. When multiple commands are being run, they are run in parallel and each command output is separated from the outputs of the others.<br /> <br /> === Examples ===<br /> <br /> Here are some examples that are listed in the same syntax as used for storing the actions list. You can copy and paste the definition in your '''~/.sylpheed-claws/actionsrc''' file (exit Sylpheed-Claws before). The syntax is very simple: one line per action, each action contains the menu name and the command line separated by a colon and a space &quot;: &quot;. Alternatively, you can use '''Configuration -&gt; Actions...''' and for each example enter a menu name and copy&amp;paste the text after the colon and space &quot;: &quot; in the command definition.<br /> <br /> {| border=&quot;1&quot; cellpadding=&quot;2&quot;<br /> |-<br /> !Purpose<br /> !Menu Name: Command Line<br /> !Details<br /> |-<br /> |'''rot13 cyphering'''<br /> |'''Rot13:''' &lt;nowiki&gt;|&lt;/nowiki&gt;tr a-zA-Z n-za-mN-ZA-M&lt;nowiki&gt;|&lt;/nowiki&gt;<br /> |This will apply the rot13 cyphering algorithm to the (selected) text in the message/compose view<br /> |-<br /> |'''Decoding uuencoded messages''' <br /> |'''UUdeview:''' xdeview %F&amp; <br /> | xdeview comes with uudeview. If an encoded file is split in multiple messages, just select them all and run the command.<br /> |-<br /> |'''Display uuencoded image''' <br /> |'''Display uuencoded:''' [[Actions#uudec|uudec]] %f&amp;<br /> | Displays uuencoded files. The uudec script is to be found [http://www.sylpheed-claws.net/tools/sylpheed-claws-uudec.tar.gz here].<br /> |-<br /> |'''Save MS TNEF parts''' <br /> |'''Save TNEF part:''' xterm -e [[Actions#tnef-claws|tnef-claws]] %p <br /> | Select the TNEF message part then use this action to extract the attachment.<br /> |-<br /> |'''Alter messages''' <br /> |'''Edit message:''' gvim -f &quot;%F&quot; <br /> |Allows to edit any received message. Can be used to remove unneeded message parts etc.<br /> |-<br /> |'''Pretty format''' <br /> |'''Format/Par:''' &lt;nowiki&gt;|&lt;/nowiki&gt;par 72Tbgjqw74bEe B=.''A''a 72bgi&lt;nowiki&gt;|&lt;/nowiki&gt; <br /> '''Format/Fmt:''' &lt;nowiki&gt;|&lt;/nowiki&gt;fmt -s -w 75&lt;nowiki&gt;|&lt;/nowiki&gt;<br /> |'''Par:''' http://www.nicemice.net/par/<br /> par is a utility that can pretty format any text. It does a very good job in indenting quoted messages, and justify text. Used when composing a message<br /> <br /> '''Fmt:''' part of the the GNU core utilities<br /> |-<br /> |'''Browse''' <br /> |'''Part/Dillo:''' dillo %p&amp; <br /> |Browse the selected message part in Dillo.<br /> |-<br /> |'''Receive key from server''' <br /> |'''GnuPG/Receive Selected Key:''' &lt;nowiki&gt;ID=`gpg --verify %p /dev/null 2&gt;&amp;1|grep &quot;key ID&quot;|&lt;/nowiki&gt;tr -d &quot;[:space:]&quot;&lt;nowiki&gt;|&lt;/nowiki&gt;tail -c8`;echo &quot;==== Fetching $ID ====&quot;; gpg --no-tty --keyserver wwwkeys.nl.pgp.net --recv-keys $ID<br /> |Select the signature part of a message then call this action to fetch the key from wwwkeys.nl.pgp.net<br /> |-<br /> |'''Import key from mail''' <br /> |'''GnuPG/Import Key From Mail:''' gpg --import %p <br /> |Select the message part where the public key is then import it with this action.<br /> |-<br /> |'''Insert public key in message''' <br /> |'''GnuPG/Insert My Public Key:''' gpg --export -a MYKEYID&gt;<br /> |Insert your public key in the message your are composing. Replace MYKEYID with your key id. '''Needs 0.8.6claws66 or newer'''<br /> |-<br /> |'''Reporting SPAM''' <br /> |'''Report as SPAM:''' spamassassin -r &lt; %f <br /> |Use [http://spamassassin.apache.org/ spamassassin] to report mail as spam. Redirection (&lt;) is possible only with version 0.7.7.<br /> |-<br /> |'''Check spelling''' <br /> |'''Check spelling:''' &lt;nowiki&gt;|&lt;/nowiki&gt;T=`mktemp $HOME/.sXXXXXX`; cat - &gt; $T;xterm -e ispell $T;cat $T;rm $T&lt;nowiki&gt;|&lt;/nowiki&gt; <br /> |Open a terminal and check the spelling with ispell<br /> |-<br /> |'''Search Google for selected text''' <br /> |'''Search Google:''' &lt;nowiki&gt;|&lt;/nowiki&gt;google_search.pl <br /> |Search google for the selected text. Needs the [http://www.sylpheed-claws.net/tools/sylpheed-claws-google_search.tar.gz google_search.pl] script.<br /> |-<br /> |'''Search any searchable website for the selected text''' <br /> |'''Search:''' &lt;nowiki&gt;|&lt;/nowiki&gt;multiwebsearch.pl --where=&quot;%u&quot; --what=&quot;%s&quot;<br /> |Search any searchable website for the selected text. Needs the [http://www.sylpheed-claws.net/tools/sylpheed-claws-multiwebsearch.tar.gz multiwebsearch.pl] script.<br /> |-<br /> |'''Google for message id''' <br /> |'''Google Msg ID:''' &lt;nowiki&gt;|&lt;/nowiki&gt;google_msgid.pl <br /> |Search google for the selected message ID. Needs the [http://www.sylpheed-claws.net/tools/sylpheed-claws-google_msgid.tar.gz google_msgid.pl] script. Edit the script to change the browser (default is mozilla).<br /> |-<br /> |'''Pipe a header value to a script''' <br /> |'''Get Subject:''' grep &quot;^Subject:\ &quot; %f &lt;nowiki&gt;|&lt;/nowiki&gt; cut -d\ -f 2-&lt;nowiki&gt;|&lt;/nowiki&gt; script.sh <br /> |Pipe the '''Subject:''' header value of selected message to script.sh<br /> |}<br /> <br /> &lt;div id=&quot;uudec&quot;&gt;The '''uudec''' script is to be found [http://www.sylpheed-claws.net/tools/sylpheed-claws-uudec.tar.gz here (uudec)]. It needs '''uudecode''' and Image Magick's '''display'''. The latter can be replaced by any image viewer that can get input from standard input. The script could also be modified to use temporary files instead of standard input.&lt;/div&gt;<br /> <br /> &lt;div id=&quot;tnef-claws&quot;&gt;The '''tnef-claws''' bash script was written by Shawn Lamson and is to be found [http://melvin.hadasht.free.fr/home/sylpheed/actions/tnef-claws here]. The script is well commented. You need to have the [http://sourceforge.net/projects/tnef/ tnef] package already installed.&lt;/div&gt;<br /> <br /> === Win32 Examples ===<br /> <br /> Actions are implemented in the Win32 port of Sylpheed-Claws but, because of platform restrictions, the examples above cannot be run as listed. You can find their equivalents on the [http://claws.sylpheed.org/win32/sylpheed/claws/scripts/ Sylpheed-Claws/Win32 : Actions page].</div> Fzzzzz https://www.claws-mail.org/faq/index.php?title=Actions&diff=1497 Actions 2006-08-03T07:03:29Z <p>Fzzzzz: /* Examples */</p> <hr /> <div>=== Introduction ===<br /> <br /> The &quot;actions&quot; feature is a convenient way for the user to launch external commands to process a complete message file including headers and body or just one of its parts. It allows also the use of an external command to filter the whole text or just a selected part in the message window or in the compose window. This is a generic tool that allows to do any uncommon actions on the messages, and thus extends the possibilities of Sylpheed-Claws.<br /> <br /> === Usage ===<br /> <br /> To create a new action, go to '''Configuration -&gt; Actions....''' The &quot;Actions setting&quot; dialog offers to enter the '''Menu name''' that will trigger the command. The created menu will be found in the '''Tools -&gt; Actions''' submenu. By inserting a slash / in the menu name, you create a submenu.<br /> <br /> The command is entered in the '''Command line''' entry. Note that Sylpheed-Claws stores every single email in a separate file. This allows to use the following syntax for the command : <br /> <br /> * '''%f''' denotes the file name of the selected message. If you selected more than one, then the command will be launched for each message with the appropriate file name;<br /> <br /> * '''%F''' denotes the list of the file names of the selected message. If only one message is selected, this amounts to '''%f''', but if more messages are selected, then the command will be launched only once with the list of the file names. (You can use both '''%f''' and '''%F''' in one command: then the command will be launched for each selected message with the name of this message and with the list of all selected messages. I did not find a practical example for this.);<br /> <br /> * '''%p''' denotes the current selected message part of a multipart message. The part is decoded accordingly. If the message is not a multipart message, it denotes the message body<br /> <br /> * Prepending '''&gt;''': this will allow you to send to the command's standard input a text that you will enter in a dialog window<br /> <br /> * Prepending '''*''': this will allow you to send to the command's standard input a text that you will enter in a dialog window. But in contrast to prepending '''&gt;''', the entered text is hidden (useful when entering passwords)<br /> <br /> * Appending an ampersand '''&amp;''': this will run the command asynchronously. That means &quot;fire and forget&quot;. Sylpheed-Claws won't wait for the command to finish, nor will it catch its output or its error messages<br /> <br /> * Prepending the vertical bar '''|''' (pipe-in): this will send the current displayed text or the current selected text from the message view or the compose window to the command standard input. The command will silently fail if more than one message is selected<br /> <br /> * Appending the vertical bar '''|''' (pipe-out): this will replace the current displayed text or the current selected text from the message window or the compose window with the command standard output. The command will silently fail if more than one message is selected<br /> <br /> * Appending the &quot;greater than&quot; sign '''&gt;''' will insert the command output in the message. The difference between the trailing '''|''' is that no text will be deleted or replaced. Most used when composing mails to insert text. Only available since '''0.8.6claws66*<br /> <br /> ''Note'': It is not possible to use actions containing '''%f''', '''%F''' or '''%p''' from the compose window.<br /> <br /> When a command is run, and unless it is run asynchronously, Sylpheed-Claws will be insensitive to any interaction and it will wait for the command to finish. If the command takes too long (5 seconds), it will popup a dialog window allowing to stop it. This dialog will also be displayed as soon as the command has some output: error messages or even its standard output when the command is not a &quot;pipe-out&quot; command. When multiple commands are being run, they are run in parallel and each command output is separated from the outputs of the others.<br /> <br /> === Examples ===<br /> <br /> Here are some examples that are listed in the same syntax as used for storing the actions list. You can copy and paste the definition in your '''~/.sylpheed-claws/actionsrc''' file (exit Sylpheed-Claws before). The syntax is very simple: one line per action, each action contains the menu name and the command line separated by a colon and a space &quot;: &quot;. Alternatively, you can use '''Configuration -&gt; Actions...''' and for each example enter a menu name and copy&amp;paste the text after the colon and space &quot;: &quot; in the command definition.<br /> <br /> {| border=&quot;1&quot; cellpadding=&quot;2&quot;<br /> |-<br /> !Purpose<br /> !Menu Name: Command Line<br /> !Details<br /> |-<br /> |'''rot13 cyphering'''<br /> |'''Rot13:''' &lt;nowiki&gt;|&lt;/nowiki&gt;tr a-zA-Z n-za-mN-ZA-M&lt;nowiki&gt;|&lt;/nowiki&gt;<br /> |This will apply the rot13 cyphering algorithm to the (selected) text in the message/compose view<br /> |-<br /> |'''Decoding uuencoded messages''' <br /> |'''UUdeview:''' xdeview %F&amp; <br /> | xdeview comes with uudeview. If an encoded file is split in multiple messages, just select them all and run the command.<br /> |-<br /> |'''Display uuencoded image''' <br /> |'''Display uuencoded:''' [[Actions#uudec|uudec]] %f&amp;<br /> | Displays uuencoded files. The uudec script is to be found [http://www.sylpheed-claws.net/tools/sylpheed-claws-uudec.tar.gz here].<br /> |-<br /> |'''Save MS TNEF parts''' <br /> |'''Save TNEF part:''' xterm -e [[Actions#tnef-claws|tnef-claws]] %p <br /> | Select the TNEF message part then use this action to extract the attachment.<br /> |-<br /> |'''Alter messages''' <br /> |'''Edit message:''' gvim -f &quot;%F&quot; <br /> |Allows to edit any received message. Can be used to remove unneeded message parts etc.<br /> |-<br /> |'''Pretty format''' <br /> |'''Format/Par:''' &lt;nowiki&gt;|&lt;/nowiki&gt;par 72Tbgjqw74bEe B=.''A''a 72bgi&lt;nowiki&gt;|&lt;/nowiki&gt; <br /> '''Format/fmt:''' &lt;nowiki&gt;|&lt;/nowiki&gt;fmt -s -w 75&lt;nowiki&gt;|&lt;/nowiki&gt;<br /> |Par: http://www.nicemice.net/par/<br /> par is a utility that can pretty format any text. It does a very good job in indenting quoted messages, and justify text. Used when composing a message<br /> fmt: part of the the GNU core utilities<br /> |-<br /> |'''Browse''' <br /> |'''Part/Dillo:''' dillo %p&amp; <br /> |Browse the selected message part in Dillo.<br /> |-<br /> |'''Receive key from server''' <br /> |'''GnuPG/Receive Selected Key:''' &lt;nowiki&gt;ID=`gpg --verify %p /dev/null 2&gt;&amp;1|grep &quot;key ID&quot;|&lt;/nowiki&gt;tr -d &quot;[:space:]&quot;&lt;nowiki&gt;|&lt;/nowiki&gt;tail -c8`;echo &quot;==== Fetching $ID ====&quot;; gpg --no-tty --keyserver wwwkeys.nl.pgp.net --recv-keys $ID<br /> |Select the signature part of a message then call this action to fetch the key from wwwkeys.nl.pgp.net<br /> |-<br /> |'''Import key from mail''' <br /> |'''GnuPG/Import Key From Mail:''' gpg --import %p <br /> |Select the message part where the public key is then import it with this action.<br /> |-<br /> |'''Insert public key in message''' <br /> |'''GnuPG/Insert My Public Key:''' gpg --export -a MYKEYID&gt;<br /> |Insert your public key in the message your are composing. Replace MYKEYID with your key id. '''Needs 0.8.6claws66 or newer'''<br /> |-<br /> |'''Reporting SPAM''' <br /> |'''Report as SPAM:''' spamassassin -r &lt; %f <br /> |Use [http://spamassassin.apache.org/ spamassassin] to report mail as spam. Redirection (&lt;) is possible only with version 0.7.7.<br /> |-<br /> |'''Check spelling''' <br /> |'''Check spelling:''' &lt;nowiki&gt;|&lt;/nowiki&gt;T=`mktemp $HOME/.sXXXXXX`; cat - &gt; $T;xterm -e ispell $T;cat $T;rm $T&lt;nowiki&gt;|&lt;/nowiki&gt; <br /> |Open a terminal and check the spelling with ispell<br /> |-<br /> |'''Search Google for selected text''' <br /> |'''Search Google:''' &lt;nowiki&gt;|&lt;/nowiki&gt;google_search.pl <br /> |Search google for the selected text. Needs the [http://www.sylpheed-claws.net/tools/sylpheed-claws-google_search.tar.gz google_search.pl] script.<br /> |-<br /> |'''Search any searchable website for the selected text''' <br /> |'''Search:''' &lt;nowiki&gt;|&lt;/nowiki&gt;multiwebsearch.pl --where=&quot;%u&quot; --what=&quot;%s&quot;<br /> |Search any searchable website for the selected text. Needs the [http://www.sylpheed-claws.net/tools/sylpheed-claws-multiwebsearch.tar.gz multiwebsearch.pl] script.<br /> |-<br /> |'''Google for message id''' <br /> |'''Google Msg ID:''' &lt;nowiki&gt;|&lt;/nowiki&gt;google_msgid.pl <br /> |Search google for the selected message ID. Needs the [http://www.sylpheed-claws.net/tools/sylpheed-claws-google_msgid.tar.gz google_msgid.pl] script. Edit the script to change the browser (default is mozilla).<br /> |-<br /> |'''Pipe a header value to a script''' <br /> |'''Get Subject:''' grep &quot;^Subject:\ &quot; %f &lt;nowiki&gt;|&lt;/nowiki&gt; cut -d\ -f 2-&lt;nowiki&gt;|&lt;/nowiki&gt; script.sh <br /> |Pipe the '''Subject:''' header value of selected message to script.sh<br /> |}<br /> <br /> &lt;div id=&quot;uudec&quot;&gt;The '''uudec''' script is to be found [http://www.sylpheed-claws.net/tools/sylpheed-claws-uudec.tar.gz here (uudec)]. It needs '''uudecode''' and Image Magick's '''display'''. The latter can be replaced by any image viewer that can get input from standard input. The script could also be modified to use temporary files instead of standard input.&lt;/div&gt;<br /> <br /> &lt;div id=&quot;tnef-claws&quot;&gt;The '''tnef-claws''' bash script was written by Shawn Lamson and is to be found [http://melvin.hadasht.free.fr/home/sylpheed/actions/tnef-claws here]. The script is well commented. You need to have the [http://sourceforge.net/projects/tnef/ tnef] package already installed.&lt;/div&gt;<br /> <br /> === Win32 Examples ===<br /> <br /> Actions are implemented in the Win32 port of Sylpheed-Claws but, because of platform restrictions, the examples above cannot be run as listed. You can find their equivalents on the [http://claws.sylpheed.org/win32/sylpheed/claws/scripts/ Sylpheed-Claws/Win32 : Actions page].</div> Fzzzzz