[rt-devel] RT3: mail UTF-8 automatic conversion and GPG verification

Rasmus Brøgger Rasmus.Brogger at uni-c.dk
Thu Aug 14 14:19:49 EDT 2003


On Thu, Aug 14, 2003 at 08:09:34PM +0200, Guillaume Perréal wrote:
> Hi.
> 
> I'm (re)writing a GPG email authentication plug-in based on Jesse's 
> enhanced-mailgate.
> 
> For now, this plug-in should only handle RFC3156 compliant messages (see "5. 
> OpenPGP signed messages"), that is MIME "multipart/signed" messages composed 
> of exactly two parts : the "signed" data (usualy "text/plain") and the 
> armored signature ("application/pgp-signature").
> 
> As I always got "BAD signature", I looked at what is passed to gpg for 
> verification :
> 
> [start of signed data]
> content-type: text/plain; charset="utf-8"; format="flowed"
> Content-Transfer-Encoding: 7bit
> X-RT-Original-Encoding: ISO-8859-15
> 
> test
> [end of signed data]
> 
> DOH ! I forgot RT converts all text parts to UTF-8, "corrupting" the data 
> before verification happens.
> 
> Any idea to work around this "feature" ?
> 
> Thanks,
> -- 
> _______________________________________________
> rt-devel mailing list
> rt-devel at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-devel

Handle mail decryption with procmail/maildrop before it reaches RT, and
forward the decrypted mail into the mailgate.

/rhb



More information about the Rt-devel mailing list