Gnus development mailing list
 help / color / mirror / Atom feed
From: Carlos Pita <carlosjosepita@gmail.com>
To: ding@gnus.org
Subject: Re: Using gnus with gmail: almost there
Date: Thu, 31 Jul 2014 17:27:22 -0300	[thread overview]
Message-ID: <87tx5xl1ed.fsf@gmail.com> (raw)
In-Reply-To: <CAELgYhfJw89tSa3b7HGsseQY5wZiVsQ6eGerfswokbH-5uOnDA@mail.gmail.com>


Here's another alternative (similar to the one I posted a couple of days
ago):

(setq gnus-message-archive-group
      (lambda (g)
	(when (message-mail-p)
	  (concat "nnimap+gmail:" g))))

If I'm not wrong this is more or less equivalent to:

(setq gnus-parameters
      '(("^[^:]+$" (gcc-self . t)
	("^[^:]+:.+$" (gcc-self . none)))))

The first one has a more flexible matching mechanism, as it let's you
pass a lambda expression. But it can't set anything besides the
group. It would be nice that gnus-parameters worked more like
gnus-message-archive-groups, allowing one to passed a dotted pair list
but also a function or expression.

Regards
--
Carlos




  reply	other threads:[~2014-07-31 20:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-29 13:09 Carlos
2014-07-31  5:56 ` Tassilo Horn
2014-07-31  7:19   ` gcc to remote groups (was: Using gnus with gmail: almost there) Alberto Luaces
2014-07-31  9:05     ` gcc to remote groups Tassilo Horn
2014-07-31  9:27       ` Tassilo Horn
2014-07-31  9:35         ` Alberto Luaces
2014-07-31 19:18   ` Using gnus with gmail: almost there Carlos Pita
2014-07-31 19:44     ` Carlos Pita
2014-07-31 20:27       ` Carlos Pita [this message]
2014-07-31 20:36     ` Adam Sjøgren
2014-08-01  9:01     ` Tassilo Horn
  -- strict thread matches above, loose matches on Subject: below --
2014-07-29  4:00 carlosjosepita

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=87tx5xl1ed.fsf@gmail.com \
    --to=carlosjosepita@gmail.com \
    --cc=ding@gnus.org \
    /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).