[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    Re: [PATCH] find the signature block on an email properly
From:       Ingo =?iso-8859-1?q?Kl=F6cker?= <ingo.kloecker () epost ! de>
Date:       2002-03-29 18:29:02
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Aaron J. Seigo wrote:
> On March 29, 2002 02:19 am, Aaron J. Seigo wrote:
>> there was also talk this morning on the bugs list about only checking
>> for
>> "\n--\n" if the message was clearsigned. how can one tell if a
>> message is
>> clearsigned?
> 
> i think i found the answer:
> 
>  pgpBlocks.first()->type() == Kpgp::ClearsignedBlock
> 
> is this correct? or are there other things one should check for as
> well / instead?

You should check for Kpgp::ClearsignedBlock (clearsigned message) and 
for Kpgp::PgpMessageBlock (encrypted message).

The easiest solution would probably be to set a bool inside
          if( ( block->type() == Kpgp::PgpMessageBlock ) ||
              ( block->type() == Kpgp::ClearsignedBlock ) )
in lines 636ff. and 708ff.

Regards,
Ingo

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8pLJuGnR+RTDgudgRAoKyAJ41cjqgduvRh+YfWKTByKj3PhugUACgmfa6
e5TlRWl0ZoLCamBvas0nLq4=
=dPVx
-----END PGP SIGNATURE-----
_______________________________________________
KMail Developers mailing list
kmail@mail.kde.org
http://mail.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