hi all
   I meet a problem in import PUBLIC KEY or PRIVATE KEY on sqwebmail2.1.1. I dont know 
how to import key on sqwebmail.
In file folder.c,  line 1049 to 1065 ,here is the code
#if HAVE_UNICODE
        if (has_gpg(GPGDIR) == 0)
        {
                struct rfc2045 *part;

                if (*cgi("pubkeyimport")
                    && (part=rfc2045_find(rfc, cgi("keymimeid"))) != 0)
                {
                        dokeyimport(fp, part, 0);
                }
                else if (*cgi("privkeyimport")
                    && (part=rfc2045_find(rfc, cgi("keymimeid"))) != 0)
                {
                        dokeyimport(fp, part, 1);
                }
        }
#endif

I found  that the function  *cgi("pubkeyimport") or  cgi("keymimeid") always return 
null .The reason is that the argname of pubkeyimport or keymimeid is never initialized 
by function cgi_put().So the function dokeyimport will never be executed.
Ii am not sure whether it is true.





Reply via email to