 (require 'starttls)
 (setq starttls-use-gnutls t)
 
+;;;; Getting email
 (setq gnus-nntp-server nil)
 (setq gnus-select-method '(nnimap "outlook.office365.com"
 		      (nnimap-address "outlook.office365.com")

(setq gnus-thread-ignore-subject t)
(setq mm-text-html-renderer 'gnus-w3m)

(setq message-send-mail-function 'smtpmail-send-it
      smtpmail-auth-credentials (expand-file-name "~/.authinfo.gpg")
      smtpmail-stream-type 'starttls

		      (nnimap-authinfo-file "~/.authinfo.gpg")
      ))

;;;; Threads and topics
(add-hook 'gnus-group-mode-hook 'gnus-topic-mode)
(setq gnus-summary-thread-gathering-function
      'gnus-gather-threads-by-subject)
