@szimszon: I was hoping to hear from you ... you are a gem for replying so
quickly. The doc says to do the import, which is why I'm doing that. How
about these other settings -- are they necessary?
mail.settings.cipher_type = 'gpg'
mail.settings.sign = True
mail.settings.encrypt = True
mail.settings.sign_passphrase = 'my_secret_passphrase'
On Tuesday, April 24, 2012 2:53:49 PM UTC+8, szimszon wrote:
>
> If I remember well you don't have to import in your code anything the
> framework do that.
>
> If you would like to test that python can do it just try in python
> interpreter:
>
> >>> from pyme import core, errors
> >>> from pyme.constants.sig import mode
> That is what web2py use.
>
> In debian based system:
>
> apt-get install python-pyme libgpgme11
>
> should do the trick...
>
> 2012. április 24., kedd 6:57:48 UTC+2 időpontban weheh a következőt írta:
>>
>> I admit this is probably not the right forum for this question, but I'm
>> trying to get pgp working with the web2py mail package and I can't seem to
>> get gpgme or pgp installed properly on linux. When I do "from gpgme import
>> pgp" I get "ImportError: cannot import name pgp"
>>
>> Anybody have some suggestions for how to do a proper install?
>>
>