nmh-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nmh-commits] [SCM] The nmh Mail Handling System branch, xoauth, created


From: Eric Gillespie
Subject: [Nmh-commits] [SCM] The nmh Mail Handling System branch, xoauth, created. 1.6-branchpoint-221-gb7f1c78
Date: Wed, 10 Dec 2014 02:44:50 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The nmh Mail Handling System".

The branch, xoauth has been created
        at  b7f1c786ed9b2ad799e5cc85ede0aa213bece0bd (commit)

- Log -----------------------------------------------------------------
commit b7f1c786ed9b2ad799e5cc85ede0aa213bece0bd
Author: Eric Gillespie <address@hidden>
Date:   Mon Dec 8 23:37:51 2014 -0800

    Strip carriage returns fakehttprequest logging.

commit dada506045bed1c1cffaf06a855c7c028e128404
Author: Eric Gillespie <address@hidden>
Date:   Mon Dec 8 23:29:07 2014 -0800

    Note curl dependencies for Linux and FreeBSD.

commit b39f4c8121d05424ba133603f843b155bdf8d7f4
Author: Eric Gillespie <address@hidden>
Date:   Mon Dec 8 23:26:27 2014 -0800

    Teach mhparam about oauth support.

commit 803f254122dc757db104a4c36cf98b726be004be
Author: Eric Gillespie <address@hidden>
Date:   Mon Dec 8 23:20:01 2014 -0800

    Implement OAuth 2.0 [1] for XOAUTH2 in SMTP [2] and POP3 [3].
    
    Google defined XOAUTH2 for SMTP, and that's what we use here.  If other
    providers implement XOAUTH2 or some similar OAuth-based SMTP authentication
    protocol, it should be simple to extend this.
    
    [1] https://tools.ietf.org/html/rfc6749
    [2] https://developers.google.com/gmail/xoauth2_protocol
    [3] 
http://googleappsdeveloper.blogspot.com/2014/10/updates-on-authentication-for-gmail.html
    
    Technically, XOAUTH2 is a SASL auth mechanism, but the implementation is so
    trivial, I can't justify the code complexity or additional dependency
    requirement of using Cyrus SASL for this.  So it's completely separate.
    
    Changes:
    
    - New dependencies:
    
      - jsmn (JSON processing library) bundled directly rather than linked to as
        an external library because there is no clear winner among JSON
        libraries for C and this one is tiny
    
      - libcurl is nearly ubiquitous and too heavy-weight to bundle, so link to
        the library the user must install separately
    
    - Add oauth.h / oauth.c which do almost all the work, with quite a bit of
      help from curl and jsmn.
    
    - Add new mhlogin program to authorize nmh to use the Gmail account and
      store the access and refresh tokens.
    
    - Add new user_agent global to version.c (version.sh); not too happy with
      such a generic name, but the others had no mh_ prefix or anything...
    
    - Add XOAUTH2 support to:
      mts/smtp/smtp.c uip/post.c uip/send.c uip/popsbr.c uip/inc.c uip/msgchk.c
    
    - Split duplicated serving code out of fakepop.c and fakesmtp.c to new
      server.c and also use that for new fakehttp.c.
    
    - Add XOAUTH2 support to fakepop.c and fakesmtp.c.

commit 7f84f008c3927da991d81fc1a3add7cc07135830
Author: Eric Gillespie <address@hidden>
Date:   Mon Dec 8 21:47:58 2014 -0800

    import jsmn 86:19001fb4adb3

-----------------------------------------------------------------------


hooks/post-receive
-- 
The nmh Mail Handling System



reply via email to

[Prev in Thread] Current Thread [Next in Thread]