 (eval-after-load "jabber"
   '(progn
      (setq tls-program '("openssl s_client -connect %h:%p -no_ssl2 -ign_eof"))
-
-     (setq jabber-account-list
-	   (list
-	    (append `(,(base64-decode-string "dmFsZXJ5LnZ2QGdtYWlsLmNvbQ==")
-		      (:connection-type . ssl))
-		    (if (work-lan-p)
-			'((:network-server . "127.0.0.1") (:port . 12345))
-		      '((:network-server . "talk.google.com"))))))
 
      ;; auto-away
      (add-hook 'jabber-post-connect-hooks 'jabber-autoaway-start)

	      (cond ((getenv "DISPLAY") 'jabber-xprintidle-get-idle-time)
		    ((null window-system) 'jabber-termatime-get-idle-time))))

     ;; Gmail
     (add-hook 'jabber-post-connect-hooks 'jabber-gmail-subscribe)
     (global-set-key (kbd "<f9> g") 'jabber-gmail-query)
     (eval-after-load "jabber-gmail"
       '(defun jabber-gmail-dothreads (threads)
	  (osd "gmail: %d" (length threads))))

     ;; on-screen notifications
     (add-hook 'jabber-alert-message-hooks
	       (defun jabber-message-osd (from buffer text proposed-alert)
		 (osd (jabber-activity-make-string-default from))))

(setq bbdb-completion-display-record nil)

(setq sendmail-program "/usr/bin/msmtp"
      message-sendmail-f-is-evil nil mail-specify-envelope-from t)

;;; --------------------------------------------------------------------
;;; Dayjob-specific stuff
