Giter VIP home page Giter VIP logo

dkimverify's People

Contributors

jeremybmerrill avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

dkimverify's Issues

Mail library doesn't do well maintaining the original value of headers

It sometimes strips out leading whitespace, replaces line-breaks with whitespace and subtly modifies date formats (mikel/mail#1075). This all in particular breaks the simple header canonicalization method... I may need to switch to a lower-level mail-parsing library.

Cf. the headers via Ruby:

verify headers: [["From", "\"Raj Goyle \" <[email protected]>"], ["Subject", "Fw: Fw: DISCLOSE"], ["Date", "Wed, 30 Jun 2010 21:14:04 -0400"], ["To", "[email protected]"], ["MIME-Version", "1.0"], ["Content-type", "text/html; charset=Windows-1252"], ["DKIM-Signature", "v=1; a=rsa-sha1; d=bounce.myngp.com; s=ngpweb1; c=simple/simple; q=dns/txt; [email protected]; t=1277946313; h=From:Subject:Date:To:MIME-Version:Content-type; bh=ksBroyqrHHL45kG0qfyLInBv/5U=; b=;"]]

and via the Python reference implementation:

verify headers: [['From', ' "Raj Goyle " <[email protected]>\r\n'], ['Subject', ' Fw: Fw: DISCLOSE\r\n'], ['Date', ' Wed, 30 Jun 2010 21:14:04
-0400\r\n'], ['To', ' [email protected]\r\n'], ['MIME-Version', ' 1.0\r\n'], ['Content-type', ' text/html; charset=Windows-1252\r\n'], ('DKIM-Signature', ' v=1; a=rsa-sha1; d=bounce.myngp.com; s=ngpweb1; c=simple/simple;\r\n\tq=dns/txt; [email protected]; t=1277946313;\r\n\th=From:Subject:Date:To:MIME-Version:Content-type;\r\n\tbh=ksBroyqrHHL45kG0qfyLInBv/5U=;\r\n\tb=;')]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.