Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* possible repost: create sent folder by year
@ 2016-09-22 17:04 Sivaram Neelakantan
  2016-09-22 18:24 ` Adam Sjøgren
  0 siblings, 1 reply; 3+ messages in thread
From: Sivaram Neelakantan @ 2016-09-22 17:04 UTC (permalink / raw)
  To: info-gnus-english

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.

Not quite sure what to tweak.

sivaram
-- 



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: possible repost: create sent folder by year
  2016-09-22 17:04 possible repost: create sent folder by year Sivaram Neelakantan
@ 2016-09-22 18:24 ` Adam Sjøgren
  2016-09-26 15:28   ` Sivaram Neelakantan
  0 siblings, 1 reply; 3+ messages in thread
From: Adam Sjøgren @ 2016-09-22 18:24 UTC (permalink / raw)
  To: info-gnus-english

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: possible repost: create sent folder by year
  2016-09-22 18:24 ` Adam Sjøgren
@ 2016-09-26 15:28   ` Sivaram Neelakantan
  0 siblings, 0 replies; 3+ messages in thread
From: Sivaram Neelakantan @ 2016-09-26 15:28 UTC (permalink / raw)
  To: info-gnus-english

On Thu, Sep 22 2016,Adam Sjøgren wrote:

> 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.

Thanks.  I've used the code above and it created folders in the same
way. 

[snipped 6 lines]



sivaram
-- 


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-09-26 15:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-22 17:04 possible repost: create sent folder by year Sivaram Neelakantan
2016-09-22 18:24 ` Adam Sjøgren
2016-09-26 15:28   ` Sivaram Neelakantan

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).