Discussion:
automarking as "E", and auto-check of rss feeds
Sharon Kimble
2014-07-06 09:43:19 UTC
Permalink
Is there anyway in which every mailing list that I have can be set to
'auto-expire' and just delete old mails that are expirable without
intervention from myself please? I have this set in my .gnus -
╭────
│(setq nnmail-expiry-wait 35)
╰────
which doesn't seem to be working.

What I'm currently doing, as a workaround -
--8<---------------cut here---------------start------------->8---
/o RET to get all old messages, then /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". Then B-e to expire messages, and q to close the group.
--8<---------------cut here---------------end--------------->8---

What I would like is something that is auto-marking them as "E" as I've
read them, so that in the fullness of time they are expired and
deleted.

Also, when I get up in the morning and go to the gnus buffer, I press
"g" to get all available emails, which gets my pop3 emails and my imap
emails, but how can I also check for any new articles in my rss feeds
please, as this is not currently being done?

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.92.1
Jorge A. Alfaro-Murillo
2014-07-06 14:25:00 UTC
Permalink
Post by Sharon Kimble
--8<---------------cut here---------------start------------->8---
/o RET to get all old messages, then /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". Then B-e to expire messages, and q to close the group.
--8<---------------cut here---------------end--------------->8---
I do not know if there is a direct way with gnus, but since you have it
figure it out, you could use a keyboard macro.

Press 'F3' to start recording the macro, do everything you did, press
'F4' to finish recording the macro. Then do 'C-x C-k n' and give that
macro name, then go to your .emacs or .gnus and do 'M-x
insert-kbd-macro', it will ask you for a name, put the name you just
define. This will insert code something like this:

#+BEGIN_EXAMPLE
(fset 'the-name-of-the-macro
(lambda (&optional arg) "Keyboard macro." ...
#+END_EXAMPLE

then you can assign "E" to the-name-of-the-macro in the usual way.

Best,

Jorge.
Eric Abrahamsen
2014-07-06 16:04:06 UTC
Permalink
Post by Sharon Kimble
Is there anyway in which every mailing list that I have can be set to
'auto-expire' and just delete old mails that are expirable without
intervention from myself please? I have this set in my .gnus -
╭────
│(setq nnmail-expiry-wait 35)
╰────
which doesn't seem to be working.
What I'm currently doing, as a workaround -
/o RET to get all old messages, then /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". Then B-e to expire messages, and q to close the group.
What I would like is something that is auto-marking them as "E" as I've
read them, so that in the fullness of time they are expired and
deleted.
You can put (auto-expire . t) in the group parameters of any group where
you want this to happen. I think it needs to be done on a per-group
basis.
Post by Sharon Kimble
Also, when I get up in the morning and go to the gnus buffer, I press
"g" to get all available emails, which gets my pop3 emails and my imap
emails, but how can I also check for any new articles in my rss feeds
please, as this is not currently being done?
Not sure about this one. Are you not able to check the feeds at all,
ever? Or is it only troublesome right after start up? What group level
is your rss group(s)?

E
Andreas Schwab
2014-07-06 18:54:35 UTC
Permalink
Post by Sharon Kimble
Is there anyway in which every mailing list that I have can be set to
'auto-expire' and just delete old mails that are expirable without
intervention from myself please?
This is what total-expire does.

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."
Dave Goldberg
2014-07-07 02:20:53 UTC
Permalink
Post by Sharon Kimble
Is there anyway in which every mailing list that I have can be set to
'auto-expire' and just delete old mails that are expirable without
intervention from myself please? I have this set in my .gnus -
╭────
│(setq nnmail-expiry-wait 35)
╰────
which doesn't seem to be working.
Take a look at the info page for Group Parameters, in particular auto-expire and total-expire. You need one of them set for that expiry wait (which can also be set on a per group basis through parameters) to have any effect. Which you choose (auto vs total) seems to me to be a matter of taste. I prefer total-expire for what it's worth. If you use topics in the Group buffer, you can set the parameters on a topic instead of per group and all the groups in the topic get those settings. Finally, expiry only works if the expiry function gets called. I think it happens by default on group exit but I disabled that a long time ago - probably over a decade. I don't remember why.
--
Dave Goldberg
***@verizon.net
Mike Kupfer
2014-07-07 16:51:42 UTC
Permalink
Post by Sharon Kimble
Is there anyway in which every mailing list that I have can be set to
'auto-expire' and just delete old mails that are expirable without
intervention from myself please?
[...]
Post by Sharon Kimble
What I would like is something that is auto-marking them as "E" as I've
read them, so that in the fullness of time they are expired and
deleted.
I have all the folders that I read with Gnus until a top-level folder
called "readLater". I get auto-marking with "E" via

(setq gnus-auto-expirable-newsgroups "readLater")

The docs say that the string can be a regexp, so to cover all your
folders, I guess you could try setting it to ".".

The messages do stick around for awhile, but Gnus eventually removes
them.

mike
Alexander Baier
2014-07-07 18:58:31 UTC
Permalink
Post by Mike Kupfer
Post by Sharon Kimble
Is there anyway in which every mailing list that I have can be set to
'auto-expire' and just delete old mails that are expirable without
intervention from myself please?
[...]
Post by Sharon Kimble
What I would like is something that is auto-marking them as "E" as I've
read them, so that in the fullness of time they are expired and
deleted.
I have all the folders that I read with Gnus until a top-level folder
called "readLater". I get auto-marking with "E" via
(setq gnus-auto-expirable-newsgroups "readLater")
The docs say that the string can be a regexp, so to cover all your
folders, I guess you could try setting it to ".".
That regexp will only match groups with names one character long, I
would say. You probably want ".*".
Post by Mike Kupfer
The messages do stick around for awhile, but Gnus eventually removes
them.
mike
HTH,
--
Alexander Baier
Loading...