Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Sriram Karra <karra@shakti.homelinux.net>
Subject: Re: Limiting number of Incomingxxxx mails
Date: Mon, 17 Feb 2003 10:26:51 +0530	[thread overview]
Message-ID: <xeq3heb3a4j0.fsf@desh.cisco.com> (raw)
In-Reply-To: <v91y2b0zkh.fsf@marauder.physik.uni-ulm.de>

Reiner Steib <4.uce.03.r.s@nurfuerspam.de> writes:

> On Fri, Feb 14 2003, Sriram Karra wrote:
>
> [ ~/Mail/Incomingxxx ]
>> What I am looking for is some way to tweak this feature such that it
>> will not take up too much disk space.  (Recently I noticed that these
>> files accounted for ~65% of the size of ~/Mail/ :)
>>
>> What variables should I be looking at?
>
> I'm not aware of any predefined functionality in Gnus to do this.
>

OK; in which case I guess a variant of the following could be
considered for commit?

> As you're using Unix, you may do something like this:
>
> (defun rs-gnus-remove-old-mail-source (&optional age)
>   "Remove incoming files older than AGE days."
>   (interactive "P")
>   (let ((def-age 7) cmd)
>     (setq age (number-to-string (if (and (numberp 'age) (> age 0))
> 				    age
> 				  def-age)))
>     (setq cmd
> 	  (concat "find " mail-source-directory
> 		  mail-source-incoming-file-prefix "* "
> 		  "-mtime +" age " -exec echo rm {} \\;"))

How about  ......................" -print | xargs echo rm "

That would be much faster.

But it would still be too slow to be put in some hook.  I guess a
standalone *Group* buffer command should be good enough.

Thanks,
-Sriram.

-- 
Well, all's well that ends.


      parent reply	other threads:[~2003-02-17  4:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <xeq3r8abqkpm.fsf@desh.cisco.com>
2003-02-14 13:19 ` Reiner Steib
2003-02-14 14:05   ` Frank Schmitt
2003-02-17  4:56   ` Sriram Karra [this message]

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=xeq3heb3a4j0.fsf@desh.cisco.com \
    --to=karra@shakti.homelinux.net \
    /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).