Gnus development mailing list
 help / color / mirror / Atom feed
From: Didier Verna <didier@xemacs.org>
To: Ted Zlatanov <tzz@lifelogs.com>
Cc: ding@gnus.org
Subject: Re: M-d in an imap summary
Date: Tue, 04 Nov 2008 14:54:48 +0100	[thread overview]
Message-ID: <muxhc6n4mvr.fsf@uzeb.lrde.epita.fr> (raw)
In-Reply-To: <86od0w3fb3.fsf@lifelogs.com> (Ted Zlatanov's message of "Mon, 03 Nov 2008 11:11:28 -0600")

Ted Zlatanov <tzz@lifelogs.com> wrote:

> On Mon, 03 Nov 2008 17:02:20 +0100 Didier Verna <didier@xemacs.org> wrote: 
>
> dvl> I'd like to be able to M-d some articles in an nnimap summary buffer,
> dvl> and have it do the ExpectedThing(tm), which would be to do the
> dvl> equivalent of my gmail account function "Report Spam".
>
> dvl> Does anybody have a ready-made recipe for this ?
>
> What is the ExpectedThing?

  This (don't bother; I ended up doing it myself):

(defadvice gnus-summary-mark-as-spam (around gnus activate)
  "Wrapper around the original `gnus-summary-mark-as-spam' function.
Detect calls within a GMail IMAP group, and move the article directly to the
spam folder."
  (let ((method (gnus-find-method-for-group gnus-newsgroup-name)))
    (if (and (eq (car method) 'nnimap)
	     (string= (cadr method) "gmail"))
	(gnus-summary-move-article n "nnimap+gmail:[Gmail]/Spam")
      ad-do-it)))

-- 
Resistance is futile. You will be jazzimilated.

Scientific site:   http://www.lrde.epita.fr/~didier
Music (Jazz) site: http://www.didierverna.com

EPITA/LRDE, 14-16 rue Voltaire, 94276 Le Kremlin-Bicêtre, France
Tel. +33 (0)1 44 08 01 85       Fax. +33 (0)1 53 14 59 22



  reply	other threads:[~2008-11-04 13:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-03 16:02 Didier Verna
2008-11-03 17:11 ` Ted Zlatanov
2008-11-04 13:54   ` Didier Verna [this message]
2008-11-04 18:20     ` Ted Zlatanov
2008-11-04 20:06       ` Didier Verna

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=muxhc6n4mvr.fsf@uzeb.lrde.epita.fr \
    --to=didier@xemacs.org \
    --cc=ding@gnus.org \
    --cc=tzz@lifelogs.com \
    /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).