Commit fce2344cee29

Vincent Demeester <vincent@sbr.pm>
2026-01-30 10:56:06
fix(emacs): remove unused gmail mu4e context
Remove the personal gmail (vinc.demeester@gmail.com) context from mu4e as it's no longer in use. Only icloud and redhat contexts remain. Also update all bookmarks to remove gmail maildir references. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 6e5008e
Changed files (1)
dots
.config
emacs
dots/.config/emacs/init.el
@@ -2399,18 +2399,6 @@ with quoted lines and signatures removed."
 				   (mu4e-draft-folder . "/icloud/Drafts")
 				   ;; (mu4e-get-mail-command . "mbsync icloud")
 				   ))
-			 ,(make-mu4e-context
-			   :name "gmail"
-			   :match-func (lambda (msg) (when msg
-						       (string-prefix-p "/gmail" (mu4e-message-field msg :maildir))))
-			   :vars '(
-				   (user-mail-address . "vinc.demeester@gmail.com")
-				   (mu4e-drafts-folder  . "/gmail/[Gmail]/Drafts")
-				   (mu4e-sent-folder  . "/gmail/[Gmail]/Sent Mail")
-				   ;; (mu4e-refile-folder  . "/gmail/[Gmail]/All Mail")
-				   (mu4e-trash-folder  . "/gmail/[Gmail]/Trash")
-				   ;; (mu4e-get-mail-command . "mbsync gmail")
-				   ))
 			 ,(make-mu4e-context
 			   :name "redhat"
 			   :match-func (lambda (msg) (when msg
@@ -2427,7 +2415,7 @@ with quoted lines and signatures removed."
   ;; === Priority & Unread ===
   (add-to-list 'mu4e-bookmarks
 	       '(:name "All Inboxes"
-		       :query "maildir:/icloud/Inbox OR maildir:/gmail/INBOX OR maildir:/redhat/Inbox"
+		       :query "maildir:/icloud/Inbox OR maildir:/redhat/Inbox"
 		       :key ?b))
 
   (add-to-list 'mu4e-bookmarks
@@ -2437,7 +2425,7 @@ with quoted lines and signatures removed."
 
   (add-to-list 'mu4e-bookmarks
 	       '(:name "Unread Inboxes"
-		       :query "flag:unread AND (maildir:/icloud/Inbox OR maildir:/gmail/INBOX OR maildir:/redhat/Inbox)"
+		       :query "flag:unread AND (maildir:/icloud/Inbox OR maildir:/redhat/Inbox)"
 		       :key ?U))
 
   (add-to-list 'mu4e-bookmarks
@@ -2531,12 +2519,12 @@ with quoted lines and signatures removed."
   ;; === Sent & Drafts ===
   (add-to-list 'mu4e-bookmarks
 	       '(:name "Sent (All)"
-		       :query "maildir:\"/icloud/Sent Messages\" OR maildir:\"/gmail/[Gmail]/Sent Mail\" OR maildir:\"/redhat/[Gmail]/Sent Mail\""
+		       :query "maildir:\"/icloud/Sent Messages\" OR maildir:\"/redhat/[Gmail]/Sent Mail\""
 		       :key ?S))
 
   (add-to-list 'mu4e-bookmarks
 	       '(:name "Drafts (All)"
-		       :query "maildir:/icloud/Drafts OR maildir:\"/gmail/[Gmail]/Drafts\" OR maildir:\"/redhat/[Gmail]/Drafts\""
+		       :query "maildir:/icloud/Drafts OR maildir:\"/redhat/[Gmail]/Drafts\""
 		       :key ?D))
 
   ;; === Advanced Queries ===
@@ -2552,7 +2540,7 @@ with quoted lines and signatures removed."
 
   (add-to-list 'mu4e-bookmarks
 	       '(:name "To Me Directly"
-		       :query "(to:vincent@demeester.fr OR to:vdemeest@redhat.com OR to:vinc.demeester@gmail.com) AND NOT flag:trashed AND NOT maildir:/_tracker/*"
+		       :query "(to:vincent@demeester.fr OR to:vdemeest@redhat.com) AND NOT flag:trashed AND NOT maildir:/_tracker/*"
 		       :key ?M))
 
   ;; === Recent Activity ===
@@ -2563,7 +2551,7 @@ with quoted lines and signatures removed."
 
   (add-to-list 'mu4e-bookmarks
 	       '(:name "Unread This Week (Personal)"
-		       :query "flag:unread AND date:7d..now AND (maildir:/icloud/* OR maildir:/gmail/*)"
+		       :query "flag:unread AND date:7d..now AND maildir:/icloud/*"
 		       :key ?P))
 
   ;; Custom sorting: oldest-first for active folders, newest-first for archives
@@ -2572,16 +2560,14 @@ with quoted lines and signatures removed."
 
   (defcustom vde/mu4e-oldest-first-bookmarks '(
 					       "maildir:/icloud/Inbox"
-					       "maildir:/gmail/INBOX"
 					       "maildir:/redhat/Inbox"
-					       "maildir:/icloud/Inbox OR maildir:/gmail/INBOX OR maildir:/redhat/Inbox"  ; All Inboxes
+					       "maildir:/icloud/Inbox OR maildir:/redhat/Inbox"  ; All Inboxes
 					       "maildir:/icloud/Drafts"
-					       "maildir:/gmail/[Gmail]/Drafts"
 					       "maildir:/redhat/[Gmail]/Drafts"
 					       "flag:unread AND NOT flag:trashed"  ; Unread (All)
-					       "flag:unread AND (maildir:/icloud/Inbox OR maildir:/gmail/INBOX OR maildir:/redhat/Inbox)"  ; Unread Inboxes
+					       "flag:unread AND (maildir:/icloud/Inbox OR maildir:/redhat/Inbox)"  ; Unread Inboxes
 					       "flag:flagged AND NOT flag:trashed"  ; Flagged
-					       "(to:vincent@demeester.fr OR to:vdemeest@redhat.com OR to:vinc.demeester@gmail.com) AND NOT flag:trashed AND NOT maildir:/_tracker/*"  ; To Me Directly
+					       "(to:vincent@demeester.fr OR to:vdemeest@redhat.com) AND NOT flag:trashed AND NOT maildir:/_tracker/*"  ; To Me Directly
 					       )
     "Bookmarks/folders to sort oldest-first (ascending).
 Active folders like INBOX and Drafts show oldest messages first to prioritize