Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* gnus-parameters
@ 2002-09-30 13:37 Boris Daix
  0 siblings, 0 replies; 5+ messages in thread
From: Boris Daix @ 2002-09-30 13:37 UTC (permalink / raw)


Hi all and thanks for reading...

   I use Gnus coming from CVS snapshots for Debian -- I've put this in
my .gnus.el file : 

,----[ from .gnus.el ]
| [...]
| (setq gnus-parameters
|      '(
|        ("mail\\.cron" (total-expire t)
| 	              (expiry-wait 3))
|        ("mail\\.spam" (total-expire t)
| 	              (expiry-wait 3))
|        ("list\\..*" (total-expire t)
| 	            (expiry-wait 15))
|       )
| )
| [...]
`----

   I hoped it would delete spam after three days and mailing-lists
stuff after 15, but id doesn't... I have to say that I have different
kind of sources : /var/spool/mail/me and ~/spool/*.spool that are
re-splitted so that all go in place according to my fancy-splitting,
anyway, I think this shouldn't be a problem. The variable
documentation didn't help me -- any idea ?

-- 
Boris Daix

	"Feel free to be Free, or not to be..."


^ permalink raw reply	[flat|nested] 5+ messages in thread
* gnus-parameters
@ 2007-12-16 17:34 reader
  2007-12-16 18:53 ` gnus-parameters Reiner Steib
  0 siblings, 1 reply; 5+ messages in thread
From: reader @ 2007-12-16 17:34 UTC (permalink / raw)
  To: info-gnus-english

I don't know if `gnus-visible-headers' is something that can even be
delt with in `gnus-parameters' but what I have below is definitely NOT
the way to do it.  Since I don't understand/know the basic principles
of elisp... I'm just monkeying around with the parens hoping to get it
right. 

The forumulation below can be evaluated without error but gnus cannot
function with that evaluated...  Basic things like opening/closing a
group are broken by it... and give errors like (wrapped for mail):

   gnus-group-fast-parameter: Wrong type argument: \
      stringp, gnus-visible-headers


 (setq gnus-parameters
       '(("[Ss]pam[0-9]*$\\|_ex$"
          (total-expire . t)
          (expiry-wait . 18))
         (gnus-visible-headers
           ("\.bk$"
            ("^X-Spam-Report:.*_FARAWAY_")))))

Can someone tell me first off if `gnus-visible-headers' is something
that can be handled in `gnus-parameters'.  

The manual talks about it and mentions that `visible' doesn't work.
So I wasn't sure if that would include `gnus-VISIBLE-headers'.

From gnus manual:
 
     Group parameters can be set via the `gnus-parameters' variable
     too.  But some variables, such as `visible', have no effect (For
     this case see `gnus-permanently-visible-groups' as an
     alternative.). [...]

Just scanning thru various related things in the manual I couldn't
tell if `gnus-visible-headers' should work in a gnus-parameters
setting. But just going by the name of it `gnus-visible-headers' seems
like it would be considered a `gnus-parameter'

If `gnus-visible-headers' can be set for a list of groups matching a
regex in gnus-parameters maybe someone can show an example of what the
syntax would look like.

I do have `gnus-visible-headers' set globally and not sure if that
would somehow interfere. (Wrapped for mail)

(setq gnus-visible-headers 
         "^From:\\|
         ^Subject:\\|
         ^To:\\|
         ^Date:\\|
         ^Message-ID:\\|
         ^X-Spam-Status:\\|
         ^X-HP[rm].*:\\|
         ^Newsgroups:\\|
         ^Keywords:\\|
         ^Gnus-Warning:")

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

end of thread, other threads:[~2007-12-17 21:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-30 13:37 gnus-parameters Boris Daix
2007-12-16 17:34 gnus-parameters reader
2007-12-16 18:53 ` gnus-parameters Reiner Steib
2007-12-16 22:40   ` gnus-parameters reader
     [not found]   ` <mailman.5077.1197844885.18990.info-gnus-english@gnu.org>
2007-12-17 21:10     ` gnus-parameters Adam Sjøgren

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