From: Julien Cubizolles <j.cubizolles@free.fr>
To: info-gnus-english@gnu.org
Subject: Re: Set process mark according to author
Date: Mon, 20 Apr 2015 09:32:58 +0200 [thread overview]
Message-ID: <87r3rf8dat.fsf@free.fr> (raw)
In-Reply-To: <87zj63vjpm.fsf@debian.uxu>
Emanuel Berg <embe8573@student.uu.se> writes:
> This works:
>
> (defun process-sender (sender)
> (gnus-kill "From" sender '(gnus-summary-mark-as-processable 1) t) )
>
> (defun process-sender-at-point ()
> (interactive)
> (save-window-excursion ; better way
> (gnus-summary-select-article) ; to do this?
> (let ((sender (gnus-article-header-value "From")))
> (process-sender sender) )))
Indeed it does. I just had to define:
--8<---------------cut here---------------start------------->8---
(defun gnus-article-header-value (header)
"Get the value of HEADER for the current article."
(with-current-buffer gnus-original-article-buffer
(gnus-fetch-field header) ))
--8<---------------cut here---------------end--------------->8---
which seems to be a custom function of yours.
Thanks,
Julien.
next prev parent reply other threads:[~2015-04-20 7:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1091.1429448493.904.info-gnus-english@gnu.org>
2015-04-19 22:25 ` Emanuel Berg
2015-04-19 22:46 ` Emanuel Berg
2015-04-20 7:32 ` Julien Cubizolles [this message]
[not found] ` <mailman.1160.1429515196.904.info-gnus-english@gnu.org>
2015-04-20 21:08 ` Emanuel Berg
2015-04-19 13:01 Julien Cubizolles
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=87r3rf8dat.fsf@free.fr \
--to=j.cubizolles@free.fr \
--cc=info-gnus-english@gnu.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).