Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Bob Newell <bobnewell@bobnewell.net>
To: info-gnus-english@gnu.org
Subject: Re: how to make Group not show "nnimap+$server:INBOX.$mailbox", just $mailbox"
Date: Mon, 19 Feb 2018 20:12:14 -1000	[thread overview]
Message-ID: <CADoYgq9FQjmRXNEQki44wASCsxEhqtyHWiPzW7__9_Ou1mRc5A@mail.gmail.com> (raw)
In-Reply-To: <87k1v9tgey.fsf@hornfels.zedat.fu-berlin.de>

You're pretty much right. Will you allow me to blame an attack of
sciatica for posting incomplete code? (Okay, it was worth at try.)

Here's my whole setup:

(setq gnus-group-line-format "%M%S%5y: %uM %D\n")

(defun gnus-user-format-function-M (arg)
  (let ((mapped-name (assoc gnus-tmp-group group-name-map)))
    (if (null mapped-name)
        gnus-tmp-group
      (cdr mapped-name))))

(setq group-name-map '(("nnimap+imap.gmail.com:INBOX" . "Inbox")
                       ("nnimap+imap.gmail.com:[Gmail]/All Mail" . "All Mail")
                       ("nnimap+imap.gmail.com:[Gmail]/Sent Mail" . "Sent Mail")
                       ("nnimap+imap.gmail.com:[Gmail]/Drafts" . "Drafts")
                       ("nnimap+imap.gmail.com:teatrader" . "Tea Trader")
                       ("nnimap+imap.gmail.com:gnusreader" . "GNUS Lists")
                       ("nnimap+imap.gmail.com:help-gnu-emacs" .
"Emacs Help List")
                       ("nnimap+imap.gmail.com:orgmode" . "Org-Mode List")
                       ("nnimap+imap.gmail.com:emms-help" . "EMMS List")
                       ("nnimap+imap.gmail.com:bbdb" . "BBDB List")
                       ("nnimap+aol:INBOX" . "AOL")
                       ("nnml:mail.misc" . "POP Mail")
                       ))

My original reference:
https://stackoverflow.com/questions/22150745/changing-the-display-name-of-a-gnus-group

-- 
Bob Newell
Honolulu, Hawai`i

Sent via Linux Mint 17.


  reply	other threads:[~2018-02-20  6:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.9363.1518975840.27995.info-gnus-english@gnu.org>
2018-02-19  9:53 ` Loris Bennett
2018-02-19 10:36   ` Loris Bennett
2018-02-20  6:12     ` Bob Newell [this message]
     [not found]   ` <mailman.9398.1519036661.27995.info-gnus-english@gnu.org>
2018-02-19 19:07     ` Rud1ger Sch1erz
2018-02-18 17:43 Bob Newell
  -- strict thread matches above, loose matches on Subject: below --
2018-02-18  8:29 Gijs Hillenius

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADoYgq9FQjmRXNEQki44wASCsxEhqtyHWiPzW7__9_Ou1mRc5A@mail.gmail.com \
    --to=bobnewell@bobnewell.net \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).