dot/gnus-local.el.distorted: Fix Gnus configuration after upgrade.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 17 Jul 2017 11:18:33 +0000 (12:18 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 17 Jul 2017 11:18:33 +0000 (12:18 +0100)
I'm dropping compatibility with old Gnuses.

  * Use `starttls' where possible for communicating with IMAP servers.
    Alas, that doesn't include Gmail.

  * Remove the attempt to use separate authentication files for
    different accounts.  Everything is now in `~/.gnus.authinfo', and
    IMAP credentials are keyed by server label, not address, for some
    reason.

  * Note that chiark doesn't have a proper certificate.  For some
    reason, `starttls-extra-arguments' in IMAP server stanze is a list,
    while in SMTP server stanze, it's a string.

dot/gnus-local.el.distorted

index 175b443..7407e89 100644 (file)
 (setq gnus-secondary-select-methods
       '((nnimap "distorted"
                (nnimap-address "mail.distorted.org.uk")
-               (nnimap-stream tls)
-               (nnimap-authinfo-file "~/.gnus.authinfo")
+               (nnimap-stream starttls)
                (nnimap-inbox "INBOX")
                (nnimap-unsplittable-articles (%Deleted)))
        (nnimap "markw-distorted"
                (nnimap-address "mail.distorted.org.uk")
-               (nnimap-stream tls)
-               (nnimap-authinfo-file "~/.gnus.authinfo.markw")
+               (nnimap-stream starttls)
                (nnimap-inbox "INBOX")
                (nnimap-unsplittable-articles (%Deleted)))
        (nnimap "mwooding-chiark"
                (nnimap-address "imap.dovecot.chiark.greenend.org.uk")
-               (nnimap-stream tls)
-               (nnimap-authinfo-file "~/.gnus.authinfo")
+               (nnimap-stream starttls)
+               (starttls-extra-arguments ("--insecure"))
                (nnimap-inbox "INBOX")
                (nnimap-unsplittable-articles (%Deleted)))
        (nnimap "google"
                (nnimap-address "imap.gmail.com")
                (nnimap-stream tls)
-               (nnimap-authinfo-file "~/.gnus.authinfo")
                (nnimap-inbox "INBOX")
                (nnimap-unsplittable-articles (%Deleted)))))