Bug 51895 - AEGYPTEN: pgp encryption attachment fails
Summary: AEGYPTEN: pgp encryption attachment fails
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: encryption (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-14 13:53 UTC by Thomas Vollmer
Modified: 2007-09-14 12:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Vollmer 2002-12-14 13:53:26 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 2.95.3 
OS:          Linux

I actually test kmail from CVS KDE_3_1_BRANCH (From 14.12 13:00) on my home machine and run into following trouble:

- I use relative actual gpgme (0.3.14) with opengpg cryptplug (0.3.15).
- I have a receipient configured to automaticlly encrypt.
- I send a mail with body text and attachment(s).

I acpected to get a PGP/MIME message with encrypted body _AND_ attachments without activating encryption flag for the attachment(s). After running around 20 tests I got mails with corrupted MIME boundrys, not encrypted attachments XOR unencrypted body with encrypted attachments?!?

When sending without attachment or only signing the message parts everything is fine.

I will see how CVS HEAD handles this until monday when build on the other machine is finished.

Thomas
Comment 1 Ingo Klöcker 2002-12-14 21:08:09 UTC
Subject: Re:  New: pgp encryption attachment fails

On Saturday 14 December 2002 13:53, Thomas Vollmer wrote:
> I acpected to get a PGP/MIME message with encrypted body _AND_
> attachments without activating encryption flag for the attachment(s).

Thanks for reporting this problem. I've just fixed it in KDE_3_1_BRANCH.

> After running around 20 tests I got mails with corrupted MIME
> boundrys, not encrypted attachments XOR unencrypted body with
> encrypted attachments?!?

Can you consistently produce messages with corrupted MIME boundaries? 
How?

> I will see how CVS HEAD handles this until monday when build on the
> other machine is finished.

Don't bother to test the HEAD version. The encryption stuff is exactly 
the same as in KDE_3_1_BRANCH (minus a few patches I didn't port from 
KDE_3_1_BRANCH to HEAD yet).

Comment 2 Unknown 2003-04-07 00:13:45 UTC
Hi! 
 
I think my problem relates to the same explained above. For me using gpgme 
(
Comment 3 Ingo Klöcker 2003-04-07 11:09:38 UTC
@Volker: This bug which has unfortunately crept into KMail 1.5.1 has already been fixed. 
 
@Thomas: Can you still reproduce the problems you reported? 
 
Comment 4 Marc Mutz 2003-04-13 14:37:46 UTC
> (There is another difference but this should not harm the signature verification  
> process: The incoming mail has one line added to the end compared to the mail sent.)  
 
This is a problem of kio_smtp. I've fixed it locally, though it needs some test rounds before it can 
be committed to HEAD (I don't know about KDE_3_1_BRANCH). It's part of a set of larger 
changes. 
 
Marc Mutz 
 
 
Comment 5 Marc Mutz 2003-04-20 12:22:19 UTC
Subject: Re:  pgp encryption attachment fails

On Saturday 19 April 2003 19:20, Ingo Kl
Comment 6 Ingo Klöcker 2003-04-20 23:47:07 UTC
Subject: Re:  pgp encryption attachment fails

On Sunday 20 April 2003 12:22, Marc Mutz wrote:
> Well, kio_smtp _does_ append an empty line at the end of each mail
> that ends in newline, see smtp.cc, which has
>   write( "\r\n.\r\n", 5 );
> unconditionally.

Ahh, okay. But this won't break any OpenPGP signatures.

Regards,
Ingo

Comment 7 Thomas Vollmer 2004-01-30 20:13:46 UTC
Seems to be fixed for KDE_3_2