[prev in list] [next in list] [prev in thread] [next in thread]
List: kmail-devel
Subject: RE: Bug#17022: problems with pgp
From: Mathias Waack <mathias () atoll-net ! de>
Date: 2000-12-13 17:43:25
[Download RAW message or body]
On 13-Dec-2000 Daniel Messelken wrote:
> hello,
> trying to send pgp-encryptet messages i always get the on-screen-message that there \
> has been a problem (not more specified :-
( ).
> there are no problems with pgp-signing or using pgp on the command-line.
> ok, i hope you've understood what i mean, if not its due to my lousy english ;-)
> thanks for your fine work on kmail, kde and so !
Very funny, the knode developers just pointed me to a similar problem: they tested
the pgp integration by running pdiff as the pgp-executable. So I've changed the code
to return immediatly if running the pgp-program gives a nonzero return value. And
I'm returning the stderr output of the program in errMsg.
I always changed the last lines of all run-methods to something like:
rc = waitpid(0/*child_pid*/, &status, 0);
if (rc==-1) printf("waitpid: %s\n", strerror(errno));
if (status) {
status = ERROR;
errMsg.sprintf(info.latin1());
}
return status;
And in all methods calling run() I've changed the code to return if run() returns a
value other then OK. That works for me (we only use signing and verifying).
Mathias
_______________________________________________
Kmail Developers mailing list
Kmail@master.kde.org
http://master.kde.org/mailman/listinfo/kmail
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic