On Mon, 13 May 2013 14:01:57 -0600
Philip Prindeville <[email protected]> wrote:

> Couple of questions: Is the SHA computed over the header or the
> entirety of the message?

Entire message.

> $dkim->PRINT($entity->as_string());

I'm not sure how that would handle SMTP line endings.  It's been a while
since I wrote the code, so I can't remember if I tried what you just
wrote and it didn't work, or if I didn't try it.

> makes me wonder about this (and I've seen it elsewhere).  Why not
> just do:

>                       local $/ = "\r\n";
>                       chomp;

It's not the same thing.  My code would convert:

     foo\n      to     foo

whereas yours would leave it as foo\n

Regards,

David.
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to