Git commit ef8db0f4642655cfbdadc28c5f45127372a64bcc by Burkhard L?ck, on behalf of Luigi Toscano. Committed on 23/01/2013 at 21:15. Pushed by lueck into branch 'KDE/4.10'.
doc: fix the mail_translate.pl script and its related example Hypothesis: the errors came from the wiki->docbook conversion process, as they were related to sequences of < ... >. backport to branch 4.10 (cherry picked from commit 0694e33ebcfbb983b4342508f94d969c668bc715) M +3 -4 doc/kmail/faq.docbook http://commits.kde.org/kdepim/ef8db0f4642655cfbdadc28c5f45127372a64bcc diff --git a/doc/kmail/faq.docbook b/doc/kmail/faq.docbook index cb50a44..47e586a 100644 --- a/doc/kmail/faq.docbook +++ b/doc/kmail/faq.docbook @@ -820,7 +820,7 @@ my $translation_command = "translate "; my $languages_pair = "-f $from_language -t $to_language"; my $line; my $message=''; -while ($line=) +while ($line=<>) { $message.=$line; } @@ -841,8 +841,7 @@ sub rec_parts rec_parts ($part, at sub_parts); } my $type=$part->content_type; - if (( $part->content_type =~ m[text/plain]gi ) -|( $part->content_type eq '')) + if (( $part->content_type =~ m[text/plain]gi )||( $part->content_type eq '')) { my $body = $part->body; $body=~s/['"`]*//g; @@ -870,7 +869,7 @@ print $email->as_string; </para></listitem> <listitem><para>Troubleshooting </para></listitem> -<listitem><para>If the script is not working you can test it outside of &kmail; to narrow down the responsible component. Save a mail message as <filename>1.mbox</filename> file and run in the terminal <userinput>$~/bin/mail_translate.pl 2.mbox</userinput> +<listitem><para>If the script is not working you can test it outside of &kmail; to narrow down the responsible component. Save a mail message as <filename>1.mbox</filename> file and run in the terminal <userinput>$~/bin/mail_translate.pl <1.mbox >2.mbox</userinput> </para></listitem> </itemizedlist> </para></listitem>
