KMail/Værktøjer

From KDE UserBase Wiki
Revision as of 15:45, 27 September 2010 by Claus chr (talk | contribs) (Created page with '* [http://kontact.kde.org/kmail/unsupported/mail-client-QA.gz Mail-klient testfile v0.5] (55kB): Denne mbox-fil udløser nogle fejl og har meget lange feltværdier. Du kan bruge ...')

KMail: Redskaber

Advarsel

Bemærk venligst, at software og dokumentation på denne side for det meste ikke er skrevet af KMail-teamet, så vi kan ikke yde support til det. Ofte kan vi faktisk ikke engang teste disse applikationer - brug dem på eget ansvar. Nogle af disse programmer er meget gamle


Redskaber til import af mail

Du bør først prøve at importere dine gamle mails ved hjælp af KMails menu Fil > Importér breve.

Hvis du skal importere mails og mappestruktur fra Outlook, så kan du bruge Thunderbird (windows udgave) til at importere data fra Outlook og derefter bruge Kmails import fra Thunderbird og udpege den mappe, hvor Thunderbirds data blev gemt.

Hvis det ikke virker, så kan de følgende programmer måske være til hjælp:

  • readpst, et lille program, som konverterer Microsoft Outlooks mailfiler (personlige mapper) til UNIX's standard mbox-format. Tilføjet 24/1 2005
  • Outport, et program til at eksportere data fra Outlook til Evolution, hvorfra KMail kan improtere meddelelser. Tilføjet 23/7 2004
  • mozilla2kmail.pl, et simpelt bash-script til at konvertere mail fra Mozilla til KMail. Tilføjet 12/6 2004.
  • Sylpheed2Maildir, et simpelt bash-script til at konvertere en mailbox-mappe fra sylpheed til maildir-format. Tilføjet 27/5 2003
  • Eudora2Unix, en samling Python-scripts som tilsammen konverterer mail-mapper fra Qualcomm Eudora til unix- eller Linux-format. Opdateret 31/3 2003.
  • ol2mbox, konverterer Outlook Express til mbox (vedligeholdes ikke længere). Tilføjet 9/2 2002.
  • tb2kmail, et redskab til at eksportere mail fra The Bat til KMail. Tilføjet 7/1 2002.
  • xfmail2mbox.sh, et script af Jörg Reinhardt <joeyhh(at)gmx.de> som konverterer xfmail-mapper til mbox (som bruges af KMail). Bruger awk. Opdateret 12/2 2001.

Redskaber til eksport af mail

  • MHonArc, en mail-til-HTML omformer. Tilføjet 21/3 2003
  • tKMailHonArc, en brugerflade for MHonArc til at konvertere emailmapper fra KMail (mbox, maildir) til HTML. Tilføjet 31/3 2003

Redskaber til import af adressebøger

  • lookout, et lille Python-script, som lader dig konvertere dine Outlook 97 adressebogsdata til KAB. Tilføjet 31/7 2002
  • pineToKMail, et perl-script til at konvertere en pine-adressbog til en KMail-adressbog.

Udvikling og sikkerhed

  • Mail-klient testfile v0.5 (55kB): Denne mbox-fil udløser nogle fejl og har meget lange feltværdier. Du kan bruge den til at finde mulige sikkerhedsproblemer - ikke kun i KMail, men i enhver mailklient, som understøtter mbox-mapper. Kopier blot denne fil til ~/Mail og start KMail.

Anti-Spam Tools

  • KMail and Bogofilter Mini HOWTO, a description of how to configure KMail to filter spam using Bogofilter (Robinson-Fischer self-learning algorithm filtering for English and non-English messages) on IMAP and POP accounts without using procmail, Added 2004-01-19
  • KMail and SpamOracle Mini HOWTO This is a description of how to configure KMail to filter spam using SpamOracle (Bayesian self-learning algorithm filtering for English and non-English messages) on IMAP and POP accounts without using procmail, Updated 2004-01-19
  • Startup script for SpamAssassin (Christian Banik <christian at buschaos.de>, 2002-07-11) This is a startup script for SpamAssassin in SuSE Linux 8.0. You can install SpamAssassin from the RPMs. You have to remove the old startup script /etc/rc.d/init.d/spamassassin and copy this script to /etc/init.d/spamd. cd to /etc/init.d and call insserv spamd. On the next bootup, SpamAssassin will be activated.

Other Tools and Patches

  • Lyris Filter, a script to repair broken IDs and In-Reply-To headers produced by the commercial listserve product Lyris, Updated 2005-01-16

Script to filter by header (by Marc Mutz)

This perl script can be used with a pipe through filter action after a remove header -> Reply-To action. It's useful for people who want to change certain headers based on the content of other headers. This is something KMail filters currently do not support, but is useful here and there.

This particular script replaces (if used in conjunction with the remove header -> Reply-To action) the Reply-To header of mails sent from a Debian-style bugtracking system with <bugno>@bugs.kde.org. This is useful if bug reports are delivered to developers through a mailinglist that overwrites the Reply-To header with its post address:

#!/usr/bin/perl
    $endOfHeader = 0;
    while (<>) {
        if ( $endOfHeader == 0 )
        {
            if ( /^(?i:Subject):\s+Bug\#(\d{4,5}):/ )
            {
                $_ = "Reply-To: $1\@bugs.kde.org\n".$_;
            }
            elsif ( /^$/ )
            {
                $endOfHeader = 1;
            }
        }
        print;
    };
  • uniqmail, a small bash/sed script that removes mail duplicates from mbox files.
  • Using KMail and Maildir (by Georg Lehner, jorge(at)toa.magma.com.ni):

qmail delivers (with standard Maildir setup) Mail into the subdirectories of ~/Maildir/, that means, personal mail never goes to a "public" directory (e.g. /var/spool/mail/) as is the case with traditional mail transport agents.

qmail provides a command: maildir2mbox, to re-"deliver" mail from ~/Maildir/ to this namely public directory, we wrap this command into a script: qmail2kmail.

KMail is set up to read mail from the "traditional" place, but qmail2kmail is run before checking mail via the precommand directive in the configuration, so it finds all incoming mail where it is supposed to find it in a traditional setup.

Setup: My qmail binaries reside in /var/qmail/bin, which is most propably not the "right" place to put them, so fix this on your system and in the qmail2kmail script.

I installed qmail2kmail in /usr/local/bin, I suppose it should be world executable, or at least by the qmail-groups, if you are concerned about security you should know how to figure out and rewrite this instructions.

In the KMail configuration you should have something similar to:

[Account 1]
  Folder=inbox
  Name=Mi correo en TOA
  Type=local
  check-exclude=false
  check-interval=0
  precommand=/usr/local/bin/qmail2kmail

and everything should work fine. Here comes qmail2kmail:

#!/bin/sh
  #
  # LEG06012001
  # Convert Mails in Maildir format in ~/Maildir/ to mbox format in ~/Mail/inbox
  #   as required by Kmail.

  MAILDIR=~/Maildir/
  MAILTMP=tmpdir
  MAIL=/var/mail/$USER
  export MAILDIR MAILTMP MAIL

  /var/qmail/bin/maildir2mbox

Note that "tmpdir" is a scratchfile and will be overwritten, so if you happen to have a file tmpdir in the place where maildir2mbox wants to create it, you will get in trouble.

A solution would be to use the tempfile command, but it happens to not exist on every Unix, so a local solution will have to be found if necessary. If qmail2kmail doesn't run in the $USER's homedirectory (which I did not check out) I would strongly recommend to use at least:

MAILTMP=$USER/.qmailtemp

Note that I also successfully installed qmail-pop3d and fetched mail via POP3 from the local host, but it is slower and clumsier.