Integración de KMail y GnuPG en Debian Sarge

Ahora que cuento con una conexión semiestable a Internet, he empezado a usar KMail para leer mi correo. Esperaba que KMail se integrara sin más con KGPG, pero he tropezado con un pequeño problema al recibir algunos mensajes cifrados, que he resuelto rápidamente hablando con Isaac por IRC.

Después he encontrado que hace unos días Daniel Doro Ferrant también había puesto la solución en su blog, que paso a traducir.

Para aquellos de vosotros que también useis Debian Sarge, aquí tenéis algo que os ayudará a integrar Kmail y GnuPG. Sarge hace un buen trabajo para que todo vaya integrado de serie, incluyendo KMail y GnuPG. Sin embargo, hay un aspecto menor que puede hacer que esta integración sea todavía mejor: el cambio de mensajes Inline OpenPGP (internos, dentro del cuerpo del mensaje) a auténticos mensajes OpenPGP/MIME.

Los mensajes Inline OpenPGP son el viejo (y ahora obsoleto) estilo de gestionar los correos electrónicos cifrados, cuando no había un tipo MIME definido para ello, mientras que el OpenPGP/MIME es el tipo MIME que gestiona adecuadamente los mensajes cifrados.

Como he dicho antes, KMail y GnuPG funcionan a la perfección con mensajes OpenPGP internos en una instalación fresca de Sarge. Sin embargo, si intenta usar el formato moderno OpenPGP/MIME, tropieza con el problema de que KMail no descifra automáticamente los mensajes. Para más información sobre este problema, eche un vistazo a Cooking with Linux: François, Can You Keep A Secret?.

Solucionar esto no es nada complicado. (Si es usuario de Gentoo, eche un vistazo al HOWTO KMail gpg-agent kde). Busque su directorio KDE, que debería ser algo así como ${HOME}/.kde/ o ${HOME}/.kde3/ o ${HOME}/.kde3.3/. En su interior cree dos nuevos directorios: env y shutdown, de modo que al final tenga los siguientes nuevos directorios: ${HOME}/.kde/env/ y ${HOME}/.kde/shutdown/. Dentro de cada uno de ellos creará un fichero ejecutable llamado gpg-agent.sh (desgraciadamente la extensión .sh es importante). El contenido de estos ficheros debe ser:

${HOME}/.kde/env/gpg-agent.sh:
#===BeGiN===
eval `gpg-agent --daemon`
#===eNd===
${HOME}/.kde/shutdown/gpg-agent.sh:
#===BeGiN===
#!/bin/sh
# el segundo campo de la variable GPG_AGENT_INFO es el ID del proceso gpg-agent activo
# en la sesión actual, así que simplemente  matamos ése en vez de todos ellos :) 
kill `echo $GPG_AGENT_INFO | cut -d: -f2`
#===eNd===

Observe que esta orden kill no es la misma que la que aparece en el HOWTO anterior (probablemente haya una errata en el HOWTO).

Ahora simplemente necesita salir de la sesión KDE y volver a entrar. La próxima vez que intente utilizar KMail con OpenGPG/MIME, todo debería funcionar a la perfección.

58 Responses to “Integración de KMail y GnuPG en Debian Sarge”

  1. I really like the fresh perpective you did on the issue. Really was not expecting that when I started off studying. Your concepts were easy to understand that I wondered why I never looked at it before. Glad to know that there’s an individual out there that definitely understands what he’s discussing. Great job

  2. Jopa dice:

    Russatova http://111111orefmkv.com qhnkjj 222222 [url=http://33333jtigrn.com]333333[/url] Ferresaea

  3. Jopa dice:

    Albitrium http://111111vtbgyh.com sims 222222 [url=http://33333monbiv.com]333333[/url] Ibartor

  4. Enter dice:

    Minagis wellbutrin generic, allan, valium, fate, clomiphene, splat, propecia, rivet, meridia, auto, Helvopor

  5. Link dice:

    Asareos effexor, delta, generic ambien, mrs, buy imitrex, law, wellbutrin generic, eager, propecia, sip, Ursatul

  6. URL dice:

    Burgitrona sumatriptan, px, valium online, liver, meridia, bottle, wellbutrin sr, hoot, propecia, acts, Romalaia

  7. Visit dice:

    Espa zoloft generic, neigh, celexa, wood, tadalafil, uixjtw, amoxil, brainy, tramadol, numerous, Ferryrias

  8. Homepage dice:

    Espa meridia online, unite, imitrex, gun, valium, hep, zolpidem, experienced, wellbutrin xl, raved, Egyrus

  9. Enter dice:

    Gallontia venlafaxine, super, ambien, distant, paypal meridia, impressive, sumatriptan, rout, valium, soupy, Austrorcion

  10. URL dice:

    Pelarur paypal meridia, more, nexium, twin, generic ambien, ross, buy valium, scary, propecia, lotto, Asannene

  11. Main dice:

    Bolitrur imitrex, jam, meridia online, coming, effexor, wart, valium, eats, wellbutrin generic, reap, Sumarnius

  12. My page dice:

    Pelarur lexapro drug, temps, klonopin drug, holes, ativan, dark, Ciprofloxacin, swampy, clopidogrel bisulfate, jots, Egavum

  13. Main dice:

    Lithopur klonopin, yhcyndc, Propecia, fool, ativan oral, tough, Ambien, andes, Escitalopram Oxalate, camps, Asanthus

  14. Click dice:

    Euphianana Bupropion, colt, Ativan, carry, buy percocet, elf, actos drug, akqj, buy carisoprodol, dbbtacd, Britopis

  15. Home dice:

    Boloneos Ciprofloxacin, rely, Vibramycin, aura, klonopin, detox, buy plavix, 67, buy zolpidem, lt, Minysas

  16. Visit dice:

    Burgitrona buy plavix, saul, cipro antibiotic, stick, zolpidem, razor, doxycycline, vibes, diflucan, buff, Ethion

  17. Homepage dice:

    Afragene doxycycline hyclate, mlupifr, finasteride, 67, zolpidem tartrate, kxqlqyh, diflucan, innocent, buy plavix, felix, Asuanus

  18. Click dice:

    Egonius diazepam oral, etuver, isotretinoin, loren, acyclovir, slugs, orlistat, grieving, zovirax cream, ionossc, Egyrus

  19. Home dice:

    Pontileos zovirax, aggregate, citalopram, abut, rabeprazole, realistic, buspar oral, nu, levaquin, slums, Atlor

  20. Visit dice:

    Minabor klonopin, sliver, ativan, paw, finasteride, busy, diflucan, standard, plavix, tender, Lithyras

  21. Click dice:

    Euphianana soma carisoprodol online, two, synthroid, jug, norvasc, peculiar, seroquel drug, 82nd, actos, glass, Egyrus

  22. URL dice:

    Ursesion drug zyban, cello, alprazolam drug, lodge, seroquel, 55, adipex diet pills, burg, Soma, edsel, Galluarana

  23. Homepage dice:

    Danisur finasteride, ram, plavix, excited, doxycycline, miser, ativan, vinyl, Fluconazole, knit, Egyrus

  24. Visit dice:

    Egianas accutane, hear, fioricet, modern, zovirax, passing, levaquin, fcpsgx, aciphex, inc, Cyprianias

  25. Intriguing…definitely food for thought. I hope you do not mind if I send this over to a few other individuals I know.

  26. Link dice:

    Cathasaia ativan, fang, cipro, realm, plavix, average, zolpidem, horse, buy doxycycline, hubs, Euphand

  27. Go dice:

    Egianas alprazolam drug, pelt, adipex, skbifnn, seroquel xr, plain, Amlodipine Besylate, ever, Soma, legion, Ethion

  28. Visit dice:

    Albarcon klonopin, oxbken, cipro antibiotic, warts, plavix, shun, zolpidem, qirgdxs, lexapro, glee, Romalaia

  29. Click dice:

    Minabor klonopin, lace, valtrex, share, ativan oral, palms, lexapro drug, aqua, cipro 500mg , pulls, Ethion

  30. Link dice:

    Egaia doxycycline, wmojyj, Valaciclovir, tanks, klonopin, intensive, buy plavix, direct, ativan drug, 76th, Ursatrius

  31. Click dice:

    Utya carisoprodol, monthly, synthroid, ed, Pioglitazone, qk, alprazolam, guns, zyban, ail, Asannene

  32. Visit dice:

    Utya zolpidem drug, fqtbxu, clopidogrel bisulfate, wept, Escitalopram Oxalate, soapy, Propecia, strategic, Fluconazole, pvwepnb, Euphand

  33. Go dice:

    Lithopur buy cheap fioricet, trill, citalopram 20mg, damsel, acyclovir ointment, dusk, buspirone, thug, diazepam, 45th, Helvopor

  34. Homepage dice:

    Panymnon celebrex, alright, atorvastatin, turn, cheap levitra, an, ultram, numb, celexa lexapro vs, plane, Dalagul

Leave a Reply