KMail/Eines

From KDE UserBase Wiki
Revision as of 12:06, 21 July 2011 by Abella (talk | contribs) (Created page with "* [http://kmail.kde.org/unsupported/eudorafilters2kmail.pl eudorafilters2kmail.pl], script en Perl per a filtres d'importació des de '''Eudora''', afegit el 09-05-2003.")

KMail: Eines

Atenció

Si us plau, heu d'entendre que el programari i la documentació proporcionada aquí no és en la seva majoria escrit per l'equip de KMail, pel que no podem proporcionar suport!. De fet, moltes vegades ni tan sols poden provar aquestes aplicacions -utilitzeu-les sota el vostre propi risc-. Algunes d'aquestes utilitats són molt antigues.


Eines per importar correu

En primer lloc haureu de tractar d'importar el correu antic amb KMail des del menú Fitxer -> Importa missatges...

Si necessiteu importar missatges i l'estructura de directoris des de Outlook, podeu utilitzar Thunderbird (la versió de Windows) per a la importació de dades Outlook, podeu utilitzar la importació del Kmail des de Thunderbird, i apuntar el directori on s'hagin desat les dades de Thunderbird.

Si això no funciona, els següents programes poden ser-vos útils:

  • readpst, una utilitat per a convertir fitxers de missatges de Microsoft Outlook (carpetes personals) a l'estàndard del format mbox de UNIX, afegit el 01-24-2005.
  • Outport, un programa per exportar dades des de Outlook a Evolution, des de les quals el KMail pot importar els missatges, afegit el 23-07-2004.
  • mozilla2kmail.pl, un simple script de bash per a convertir el correu de Mozilla a KMail, sfegit el 12-06-2004.
  • Sylpheed2Maildir, un simple script de bash per a convertir un directori de bústia de correu de sylpheed al format maildir. Afegit el 27-05-2003.
  • Eudora2Unix, un recull d'scripts en Python que juntament converteixen carpetes de correu de Qualcomm Eudora als directoris de correu de Unix o Linux. Actualitzat el 31-03-2003.
  • Transformador mh2maildir, un petit script de shell per a la transformació dels correus des del format MH al format Maildir. Afegit el 11-06-2002.
  • ol2mbox, convertidor Outlook Express a mbox (no és mantingut). Afegit el 09-02-2002.
  • tb2kmail, una eina per exportar correu des de The Bat a KMail. Afegit el 07-01-2002.
  • xfmail2mbox.sh, un script de shell per Jörg Reinhardt <joeyhh (at) gmx.de> per a convertir carpetes xfmail a mbox (que és utilitzat per KMail). Requereix awk. Actualitzat el 12-02-2001.

Eines per exportar correu

  • MHonArc, un convertidor de correu a HTML. Afegit el 31-03-2003.
  • tKMailHonArc, un frontat per a MHonArc per convertir carpetes de correu del KMail (mbox, maildir) a HTML. Afegit el 31-03-2003.

Eines per importar la llibreta d'adreces

  • lookout, un petit script en Python que permet convertir les dades de la llibreta d'adreces de Outlook 97 a KAB. Afegit el 31-07-2002.
  • pineToKMail, un script de perl per a convertir la llibreta d'adreces de pine a la llibreta d'adreces del KMail.

Desenvolupament i seguretat

  • Fitxer de prova del client de correu v0.5 (55kB): Aquest fitxer mbox provoca alguns errors i té els valors de camp molt llargs per a provocar desbordaments de memòria intermèdia. El podeu utilitzar per trobar possibles problemes de seguretat -no només en el KMail-, en qualsevol client de correu compatible amb carpetes mbox. Només heu de copiar aquest fitxer a ~/Mail/ i iniciar el KMail.

Eines contra el correu brossa

  • Mini Com es fa del KMail i Bogofilter, una descripció de com configurar KMail per a filtrar l'spam a través de Bogofilter (algorisme de filtrat d'auto-aprenentatge Robinson-Fischer per a missatges en anglès i no-anglès) en comptes IMAP i POP sense utilitzar procmail, afegit el 19-01-2004.
  • Mini Com es fa del KMail i SpamOracle. És una descripció de com configurar KMail per a filtrar l'spam a través de SpamOracle (algorisme de filtrat d'auto-aprenentatge bayesià per a missatges en anglès i no-anglès) en comptes IMAP i POP sense utilitzar procmail, afegit el 19-01-2004.
  • Script d'inici per a SpamAssassin (Christian Banik <christian at buschaos.de>, 11-07-2002). Es tracta d'un script d'inici per a SpamAssassin en SuSE Linux 8.0. Podeu instal·lar SpamAssassin des dels RPM. Haureu de treure l'antic script d'inici a /etc/rc.d/init.d/spamassassin i copiar aquest script a /etc/init.d/spamd. Entreu a /etc/init.d i cridei «insserv spamd». En la següent arrencada, SpamAssassin s'activarà.

Altres eines i pedaços

  • Filtre de Lyris, un script per reparar les capçaleres ID i In-Reply-To trencades produït pel producte comercial servidor de llistes de correu de Lyris (commercial listserve product Lyris), actualitzat el 16-01-2005.

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 probably 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 these 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

i tot hauria de funcionar bé. Aquí ve el qmail2kmail:

#!/bin/sh
  #
  # LEG06012001
  # Converteix els missatges en el forma ~/Maildir/ a mbox en ~/Mail/inbox
  # requerit pel 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.