{"action":"created","issue":{"url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/404","repository_url":"https://api.github.com/repos/OfflineIMAP/offlineimap","labels_url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/404/labels{/name}","comments_url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/404/comments","events_url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/404/events","html_url":"https://github.com/OfflineIMAP/offlineimap/pull/404","id":190059114,"number":404,"title":"GMail: Add ability to set a custom host/port/ssl etc.","user":{"login":"avar","id":45301,"avatar_url":"https://avatars.githubusercontent.com/u/45301?v=3","gravatar_id":"","url":"https://api.github.com/users/avar","html_url":"https://github.com/avar","followers_url":"https://api.github.com/users/avar/followers","following_url":"https://api.github.com/users/avar/following{/other_user}","gists_url":"https://api.github.com/users/avar/gists{/gist_id}","starred_url":"https://api.github.com/users/avar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avar/subscriptions","organizations_url":"https://api.github.com/users/avar/orgs","repos_url":"https://api.github.com/users/avar/repos","events_url":"https://api.github.com/users/avar/events{/privacy}","received_events_url":"https://api.github.com/users/avar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-17T14:17:20Z","updated_at":"2016-11-17T16:59:13Z","closed_at":"2016-11-17T16:59:13Z","pull_request":{"url":"https://api.github.com/repos/OfflineIMAP/offlineimap/pulls/404","html_url":"https://github.com/OfflineIMAP/offlineimap/pull/404","diff_url":"https://github.com/OfflineIMAP/offlineimap/pull/404.diff","patch_url":"https://github.com/OfflineIMAP/offlineimap/pull/404.patch"},"body":"> This v1.0 template stands in `.github/`.\r\n\r\n### Peer reviews\r\n\r\nTrick to [fetch the pull\r\nrequest](https://help.github.com/articles/checking-out-pull-requests-locally):\r\nthere is a (read-only) `refs/pull/` namespace.\r\n\r\n``` bash\r\ngit fetch OFFICIAL_REPOSITORY_NAME pull/PULL_ID/head:LOCAL_BRANCH_NAME\r\n```\r\n\r\n### This PR\r\n\r\n> Add character x `[x]`.\r\n\r\n- [X] I've read the [DCO](http://www.offlineimap.org/doc/dco.html).\r\n- [X] I've read the [Coding Guidelines](http://www.offlineimap.org/doc/CodingGuidelines.html)\r\n- [X] The relevant informations about the changes stands in the commit message, not here in the message of the pull request.\r\n- [X] Code changes follow the style of the files they change.\r\n- [X] Code is tested (provide details).\r\n\r\n### Additional information\r\n\r\n\r\n\r\nThe GMail repository added in 81b86fb has the restriction that you\r\ncan't override the host/port/ssl etc. There's no good reason for this,\r\nand I'd like to use some of the defaults while connecting to GMail via\r\nan stunnel, i.e.:\r\n\r\n    $ grep -v -e ^# -e ^$ .stunnel.work-gmail-imap\r\n    foreground = yes\r\n    debug = info\r\n    pid =\r\n    [work-imap-gmail-ssl-tunnel]\r\n    client = yes\r\n    accept = 127.0.0.1:1431\r\n    connect = imap.gmail.com:993\r\n    delay = yes\r\n\r\nAnd then in my .offlineimaprc:\r\n\r\n    type = Gmail\r\n    remotehost = localhost\r\n    remoteport = 1431\r\n    ssl = no\r\n\r\nWhile I was at it I also allowed overriding all the other previously\r\nhardcoded options, e.g. the \"oauth2_request_url\" can now be overridden\r\nto e.g. a local non-https proxy to sniff & debug the traffic going\r\nover the wire.\r\n\r\nThis doesn't break any existing configuration, since we still use the\r\nprovided defaults. It just allows odd uses like my own to use this\r\nrepository while e.g. not having to supply \"trashfolder\", \"spamfolder\"\r\n& \"oauth2_request_url\". While I'm at it document in the\r\nofflineimap.conf that we're setting those options to defaults in this\r\nrepository.\r\n\r\nSigned-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>"},"comment":{"url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/comments/261303827","html_url":"https://github.com/OfflineIMAP/offlineimap/pull/404#issuecomment-261303827","issue_url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/404","id":261303827,"user":{"login":"nicolas33","id":90065,"avatar_url":"https://avatars.githubusercontent.com/u/90065?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolas33","html_url":"https://github.com/nicolas33","followers_url":"https://api.github.com/users/nicolas33/followers","following_url":"https://api.github.com/users/nicolas33/following{/other_user}","gists_url":"https://api.github.com/users/nicolas33/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas33/subscriptions","organizations_url":"https://api.github.com/users/nicolas33/orgs","repos_url":"https://api.github.com/users/nicolas33/repos","events_url":"https://api.github.com/users/nicolas33/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas33/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T16:59:13Z","updated_at":"2016-11-17T16:59:13Z","body":"Applied into the *next* branch. Thank you!"}}
{"actor":{"display_login":"nicolas33"}}