stephenmcd/django-email-extras — pull request #3 by diegueus9 (2012-02-21 16:32:18+00:00)
Title: Adding options for trust keys

I was having this error:

[2012-02-21 10:34:53,794: DEBUG/PoolWorker-1] gpg --status-fd 2 --no-tty --homedir "/home/diegueus9/webapps/comparamejor/gpg" --version
[2012-02-21 10:34:53,812: DEBUG/PoolWorker-1] stderr reader:
[2012-02-21 10:34:53,812: DEBUG/PoolWorker-1] stdout reader:
[2012-02-21 10:34:53,896: DEBUG/PoolWorker-1] gpg: WARNING: unsafe permissions on homedir `/home/diegueus9/webapps/comparamejor/gpg'
[2012-02-21 10:34:53,897: DEBUG/PoolWorker-1] chunk: 'gpg (GnuPG) 1.4.11\nCopyright (C) 2010 Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later \nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permit'
[2012-02-21 10:34:53,916: DEBUG/PoolWorker-1] gpg --status-fd 2 --no-tty --homedir "/home/diegueus9/webapps/comparamejor/gpg" --encrypt --recipient "diego@comparamejor.com" --armor
[2012-02-21 10:34:53,920: DEBUG/PoolWorker-1] data copier: , <_io.BytesIO object at 0x99374dc>, ', mode 'wb' at 0x96aba70>
[2012-02-21 10:34:53,920: DEBUG/PoolWorker-1] sending chunk (40): 'SOAT: Nuevo prospecto con codigo DMH-2-7'
[2012-02-21 10:34:53,921: DEBUG/PoolWorker-1] stderr reader:
[2012-02-21 10:34:53,921: DEBUG/PoolWorker-1] closed output, 40 bytes sent
[2012-02-21 10:34:53,921: DEBUG/PoolWorker-1] stdout reader:
[2012-02-21 10:34:53,936: DEBUG/PoolWorker-1] gpg: WARNING: unsafe permissions on homedir `/home/diegueus9/webapps/comparamejor/gpg'
[2012-02-21 10:34:53,937: DEBUG/PoolWorker-1] gpg: E31904D0: There is no assurance this key belongs to the named user
[2012-02-21 10:34:53,937: DEBUG/PoolWorker-1] gpg: Sorry, no terminal at all requested - can't get input
[2012-02-21 10:34:53,937: DEBUG/PoolWorker-1] encrypt result: ''
[2012-02-21 10:34:53,938: DEBUG/PoolWorker-1] gpg --status-fd 2 --no-tty --homedir "/home/diegueus9/webapps/comparamejor/gpg" --encrypt --recipient "diego@comparamejor.com" --armor
[2012-02-21 10:34:53,942: DEBUG/PoolWorker-1] data copier: , <_io.BytesIO object at 0x99374dc>, ', mode 'wb' at 0x96aba70>
[2012-02-21 10:34:53,942: DEBUG/PoolWorker-1] stderr reader:
[2012-02-21 10:34:53,942: DEBUG/PoolWorker-1] sending chunk (711): '\xef\xbb\xbf\n"Lead ID";"Creado";"Nombres";"Apellidos";"Correo electr\xc3\xb3nico";"Fecha de nacimiento";"Tel\xc3\xa9fono";"Tipo de Veh\xc3\xadculo";"Subtip de Veh\xc3\xadculo";"Cilindraje";"Marca del veh\xc3\xadculo";"l\xc3\xadnea";"Modelo del veh\xc3\xadculo";"Costo de la poliza";"N\xc3\xbamero de chasis";"N\xc3\xbam'
[2012-02-21 10:34:53,943: DEBUG/PoolWorker-1] stdout reader:
[2012-02-21 10:34:53,943: DEBUG/PoolWorker-1] closed output, 711 bytes sent
[2012-02-21 10:34:53,945: DEBUG/PoolWorker-1] gpg: WARNING: unsafe permissions on homedir `/home/diegueus9/webapps/comparamejor/gpg'
[2012-02-21 10:34:53,945: DEBUG/PoolWorker-1] gpg: E31904D0: There is no assurance this key belongs to the named user
[2012-02-21 10:34:53,945: DEBUG/PoolWorker-1] gpg: Sorry, no terminal at all requested - can't get input
[2012-02-21 10:34:53,945: DEBUG/PoolWorker-1] encrypt result: ''

So, I studied a little the code and add the option ALWAYS_TRUST for fix the bug