Discussion:
How to setup auto-expire?
Sharon Kimble
2014-06-23 18:31:59 UTC
Permalink
My "system" directory has 4511 emails in, with only a few saved with
"!" and the rest being showing as "O". Is there anyway in which I
can auto-expire them without manually going through each one and
marking them as "E" please?

Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.3.91.1
Andreas Schwab
2014-06-23 19:44:43 UTC
Permalink
Post by Sharon Kimble
My "system" directory has 4511 emails in, with only a few saved with
"!" and the rest being showing as "O". Is there anyway in which I
can auto-expire them without manually going through each one and
marking them as "E" please?
You could configure the group as total-expire.

Andreas.
--
Andreas Schwab, ***@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Mike Kupfer
2014-06-23 22:16:03 UTC
Permalink
Post by Sharon Kimble
My "system" directory has 4511 emails in, with only a few saved with
"!" and the rest being showing as "O". Is there anyway in which I
can auto-expire them without manually going through each one and
marking them as "E" please?
Here's a brute-force method:

"/ m O RET" so that you just see the "O" messages. Then go to the top
of the buffer and do "C-u 5000 E" to mark everything as "E".

mike
Andreas Schwab
2014-06-23 22:41:30 UTC
Permalink
Post by Mike Kupfer
"/ m O RET" so that you just see the "O" messages. Then go to the top
of the buffer and do "C-u 5000 E" to mark everything as "E".
M P b (gnus-uu-mark-buffer) M-& (gnus-summary-universal-argument) E

Andreas.
--
Andreas Schwab, ***@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Sharon Kimble
2014-06-24 07:29:00 UTC
Permalink
Post by Mike Kupfer
Post by Sharon Kimble
My "system" directory has 4511 emails in, with only a few saved with
"!" and the rest being showing as "O". Is there anyway in which I
can auto-expire them without manually going through each one and
marking them as "E" please?
"/ m O RET" so that you just see the "O" messages. Then go to the top
of the buffer and do "C-u 5000 E" to mark everything as "E".
mike
Thank you very much for this Mike, its worked very well in slimming
down some of my over-large mail directories. Muchos gracias :)

Sharon.
--
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.3.91.1
Sharon Kimble
2014-06-24 15:43:28 UTC
Permalink
Post by Sharon Kimble
Post by Mike Kupfer
Post by Sharon Kimble
My "system" directory has 4511 emails in, with only a few saved with
"!" and the rest being showing as "O". Is there anyway in which I
can auto-expire them without manually going through each one and
marking them as "E" please?
"/ m O RET" so that you just see the "O" messages. Then go to the top
of the buffer and do "C-u 5000 E" to mark everything as "E".
mike
Thank you very much for this Mike, its worked very well in slimming
down some of my over-large mail directories. Muchos gracias :)
Sharon.
I have just discovered that somehow a whole slew of emails in one
group have been converted to "E" and all the "!" have been lost!
This is drastic as it is one of my sources for a book that I'm
writing. Is there any way of reversing the process and getting them
back, or should I restore from backup? And if I do restore from
backup, how do I get the "!" back again please, or, in other words,
what file retains the details of "!" ?

Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.3.91.1
Mike Kupfer
2014-06-25 02:57:16 UTC
Permalink
Post by Sharon Kimble
I have just discovered that somehow a whole slew of emails in one
group have been converted to "E" and all the "!" have been lost!
This is drastic as it is one of my sources for a book that I'm
writing. Is there any way of reversing the process and getting them
back, or should I restore from backup?
Ouch. I don't know how that would have happened, since the "/ m O"
should have hidden the ticked ("!") messages, which would prevent them
from getting the "E" mark.

If you can still see the messages after doing "/ o", they're not lost,
they're just marked to be removed eventually. You can simply re-tick
them. If you can no longer see them, it does look like you'll need to
restore from backup.
Post by Sharon Kimble
And if I do restore from
backup, how do I get the "!" back again please, or, in other words,
what file retains the details of "!" ?
Well, the details of which messages have which marks are kept in
$HOME/.newsrc.eld. But I would be very cautious about hand-editing that
file, as it would be easy to mess something up. Instead, I would
restore to a folder with a different name, then move or copy the
messages that you need into the right folder, then tick those messages.

Maybe I should mention that I use the nnmh back-end with Gnus. I assume
that other back-ends will behave the same, but I've never tested that.

mike

Loading...