Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* using format-time-string in nnimap-split-methods
@ 2013-12-06 17:06 David Bonnafous
  2013-12-25 23:40 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: David Bonnafous @ 2013-12-06 17:06 UTC (permalink / raw)
  To: info-gnus-english

Hi,

I keep the email I send in folder named "mail/inbox-year-month" with
this configuration:

(setq gnus-message-archive-group
      '((concat "mail/inbox-" (format-time-string "%Y-%m"))))

It's working.

But, I try to split my INBOX with a similar configutation:

(setq nnimap-split-methods
      '(((concat "mail\/inbox-" (format-time-string "%Y-%m")) "")))

but it doesn't work (nothing is splited).

So I use 

(setq nnimap-split-methods
      '(("mail\/inbox-2013-12" "")))

it's ok but it's bad, isn't it :(

Could you help me ?

-- 
David Bonnafous
Université de Toulouse
France
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: using format-time-string in nnimap-split-methods
  2013-12-06 17:06 using format-time-string in nnimap-split-methods David Bonnafous
@ 2013-12-25 23:40 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2013-12-25 23:40 UTC (permalink / raw)
  To: info-gnus-english

David Bonnafous <david.bonnafous@laplace.univ-tlse.fr> writes:

> But, I try to split my INBOX with a similar configutation:
>
> (setq nnimap-split-methods
>       '(((concat "mail\/inbox-" (format-time-string "%Y-%m")) "")))

That variable doesn't support doing stuff like that directly.  You need
a "fancy" split, I think...  I think that supports variable group
names...  although I'm not 100% sure.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/

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

end of thread, other threads:[~2013-12-25 23:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-06 17:06 using format-time-string in nnimap-split-methods David Bonnafous
2013-12-25 23:40 ` Lars Ingebrigtsen

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