Translations:KMail/FAQs Hints and Tips/130/en: Difference between revisions

From KDE UserBase Wiki
(Importing a new version from external source)
 
(No difference)

Latest revision as of 13:40, 20 March 2018

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (KMail/FAQs Hints and Tips)
* Prerequisites, make sure you have those before starting
** libtranslate
** perl
** perl module Email::MIME
** kmail
* Setting up a pipe filter
** In '''Kmail''' go to <menuchoice>Settings -> Configure filters</menuchoice>
*** create a new filter and name it '''Translate'''
*** add a Filter Criteria that would be always true (e.g <menuchoice>Subject -> Does not equal -> "321546543"</menuchoice>)
*** add a Filter Action <menuchoice>Pipe Through</menuchoice> {{Input|1=~/bin/mail_translate.pl}}
*** open the '''Advanced''' tab and un-check everything except for <menuchoice>Add this filter to the Apply Filter menu</menuchoice>, you can also set a shortcut and an icon here.
* Putting the script in place and configuring it
** save the following script to a file named mail_translate.pl and put it in your ~/bin directory.
  • Prerequisites, make sure you have those before starting
    • libtranslate
    • perl
    • perl module Email::MIME
    • kmail
  • Setting up a pipe filter
    • In Kmail go to Settings -> Configure filters
      • create a new filter and name it Translate
      • add a Filter Criteria that would be always true (e.g Subject -> Does not equal -> "321546543")
      • add a Filter Action Pipe Through
        ~/bin/mail_translate.pl
      • open the Advanced tab and un-check everything except for Add this filter to the Apply Filter menu, you can also set a shortcut and an icon here.
  • Putting the script in place and configuring it
    • save the following script to a file named mail_translate.pl and put it in your ~/bin directory.