So, here is how I solved the problem. Firstly, many thanks to abiessu for pointing me in the right direction with his comments.
(setq gnus-group-line-format "%M%S%5y/%-5t: %uG %D\n") (defun gnus-user-format-function-G (arg) (let ((mapped-name (assoc gnus-tmp-group group-name-map))) (if (null mapped-name) gnus-tmp-group (cdr mapped-name))))
This little function just searches for the current group name on the map that I define, and if there is a “translation”, it displays it instead of the actual name. Some examples that I use in my configuration:
(setq group-name-map '(("nnimap+uwindsor:INBOX" . "School-Inbox") ("nnimap+uwindsor:[Gmail]/Starred" . "School-Starred") ("nnimap+uwindsor:[Gmail]/Sent Mail" . "School-Sent")))
Using only an alista is good, because I can create mappings anyway, I don't want to resort to regular expressions, patterns, etc.
bstamour
source share