Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: asjo@koldfront.dk (Adam Sjøgren)
To: info-gnus-english@gnu.org
Subject: Re: possible repost: create sent folder by year
Date: Thu, 22 Sep 2016 20:24:30 +0200	[thread overview]
Message-ID: <87h997kd29.fsf@tullinup.koldfront.dk> (raw)
In-Reply-To: <87a8ezc1dc.fsf@gmail.com>

Sivaram writes:

> How do I make gnus create sent folders by year instead of the default
> archive:sent.2016.09 etc?  I want to store my sent mails by year
> instead of by year.

I do it like this:

  (setq gnus-message-archive-group
        '((if (message-news-p)
              (concat "news-" (format-time-string "%Y"))
            (concat "mail-" (format-time-string "%Y")))))

which creates yearly folders for news and mail, e.g. news-2016 and
mail-2016.


  Best regards,

    Adam

-- 
 "It will turn into pointer equality or something             Adam Sjøgren
  ghastly like that"                                     asjo@koldfront.dk


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

  reply	other threads:[~2016-09-22 18:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-22 17:04 Sivaram Neelakantan
2016-09-22 18:24 ` Adam Sjøgren [this message]
2016-09-26 15:28   ` Sivaram Neelakantan

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=87h997kd29.fsf@tullinup.koldfront.dk \
    --to=asjo@koldfront.dk \
    --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).