Gnus development mailing list
 help / color / mirror / Atom feed
* archiving expired messages
@ 1997-03-07  0:14 David Lebel
  1997-03-07  6:33 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: David Lebel @ 1997-03-07  0:14 UTC (permalink / raw)


Hello,

  my main nnml: group is getting big.  I mean, _really_ big.  In fact,
  I think I currently have 4000 emails in that group.  Needless to
  say, it takes a _long_ time to enter the group when there is no
  ticked mail in the group and Gnus fetchs the info of everything and
  then score everything and then generate the summary.

  Now, the best thing would be if Gnus would automatically move mails
  from my inbox groups to "archive" groups, where the archive groups
  would be named using months and year into them.  I don't know if I'm
  clear enough; let say, after 7 days, read mail (but not the ones
  that are ticked) can automatically move from my main nnml group
  (nnml:mail.lebel.misc) to the archiving group (let say,
  nnml+archive:archive.lebel.misc.march-1997).  This archiving step
  could occur when I leave a newsgroup, or once a day.

  Is this all possible?  I'm using Gnus 5.4.19.

  As an added bonus, how could I build a function that would archive
  every mail inside a group in the correct "archive" directory?  Mail
  dated between 1-mar-96 and 31-mar-96 would go into the march-1996
  nnml group.  This would be handy to process all the mails in my
  current inbox nnml group into the appropriate archive groups.

  Ciao,
  ...David

-- 
// d a v i d  l e b e l  <lebel@socom.com>       http://superdave.socom.com/
// analyst / system administrator / hacker          socom technologies, inc.
//    " I find your lack of faith, disturbing. " -- Darth Vader, _Star Wars_


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

* Re: archiving expired messages
  1997-03-07  0:14 archiving expired messages David Lebel
@ 1997-03-07  6:33 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 1997-03-07  6:33 UTC (permalink / raw)


David Lebel <lebel@socom.com> writes:

>   Now, the best thing would be if Gnus would automatically move mails
>   from my inbox groups to "archive" groups, where the archive groups
>   would be named using months and year into them.

You can do something like this:

(setq gnus-move-split-methods
      (lambda ()
	(concat "archive." gnus-newsgroup-name "."
		 (format-time-string "%Yw%U" (current-time)))))

When you then move articles, the default value will be a group with an
appropriate name.  This required manual intervention, but hacking up a
function to do this semi-automatically shouldn't be too hard.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@ifi.uio.no * Lars Ingebrigtsen


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

end of thread, other threads:[~1997-03-07  6:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-03-07  0:14 archiving expired messages David Lebel
1997-03-07  6:33 ` Lars Magne 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).