From 9a3426d99baf85d4f61e0e9e0c3dd1295d62cbdc Mon Sep 17 00:00:00 2001 From: gxlin Date: Thu, 24 Jun 2021 13:27:08 +0800 Subject: Add more mail config --- .authinfo | Bin 0 -> 95 bytes .emacs.d/init-mu4e.el | Bin 1675 -> 1996 bytes .emacs.d/init.el | 7 +------ .gitattributes | 1 + .offlineimap.py | 9 +++++++++ .offlineimaprc | Bin 886 -> 995 bytes 6 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 .authinfo create mode 100644 .offlineimap.py diff --git a/.authinfo b/.authinfo new file mode 100644 index 0000000..0da1a79 Binary files /dev/null and b/.authinfo differ diff --git a/.emacs.d/init-mu4e.el b/.emacs.d/init-mu4e.el index 513a9bf..02835a5 100644 Binary files a/.emacs.d/init-mu4e.el and b/.emacs.d/init-mu4e.el differ diff --git a/.emacs.d/init.el b/.emacs.d/init.el index d37cb3b..bac98b0 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -38,7 +38,7 @@ (require 'init-evil-mode) (require 'init-org-mode) (require 'init-lsp-mode) -(require 'init-mu4e nil 'noerror) +(require 'init-mu4e) ;; ledger-mode (use-package ledger-mode @@ -106,8 +106,3 @@ :hook ((go-mode . (lambda () (setq tab-width 4))))) (use-package avy) - -(use-package paredit - :hook ((emacs-lisp-mode . enable-paredit-mode) - (lisp-mode . enable-paredit-mode) - (scheme-mode . enable-paredit-mode))) diff --git a/.gitattributes b/.gitattributes index 3753a88..25a9039 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,4 @@ .emacs.d/init-mu4e.el filter=git-crypt diff=git-crypt .offlineimaprc filter=git-crypt diff=git-crypt .muttrc filter=git-crypt diff=git-crypt +.authinfo filter=git-crypt diff=git-crypt diff --git a/.offlineimap.py b/.offlineimap.py new file mode 100644 index 0000000..e868861 --- /dev/null +++ b/.offlineimap.py @@ -0,0 +1,9 @@ +import re + +def gmail_nametrans(foldername): + return re.sub('^\[gmail\].', '', + re.sub('all_mail', 'archive', + re.sub('sent_mail', 'sent', + re.sub('starred', 'flagged', + re.sub('bin', 'trash', + re.sub(' ', '_', foldername.lower())))))) diff --git a/.offlineimaprc b/.offlineimaprc index eaa225a..dc1f623 100644 Binary files a/.offlineimaprc and b/.offlineimaprc differ -- cgit v1.2.3