From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/17690 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Peter_M=C3=BCnster?= Newsgroups: gmane.emacs.gnus.user Subject: Re: adding a header when filing a message into a specific mailbox Date: Thu, 08 Oct 2015 15:20:00 +0200 Message-ID: <87a8rtbipr.fsf@free.fr> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1444310555 12647 80.91.229.3 (8 Oct 2015 13:22:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Oct 2015 13:22:35 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Thu Oct 08 15:22:25 2015 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from eggs.gnu.org ([208.118.235.92]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZkB9J-0006pU-GE for gegu-info-gnus-english@m.gmane.org; Thu, 08 Oct 2015 15:22:21 +0200 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkB8E-00089r-Qy for gegu-info-gnus-english@m.gmane.org; Thu, 08 Oct 2015 09:22:20 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkB8E-00088B-J5 for gegu-info-gnus-english@m.gmane.org; Thu, 08 Oct 2015 09:21:14 -0400 Original-Received: from localhost ([::1]:34636 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkB8E-0005Ib-9s for gegu-info-gnus-english@m.gmane.org; Thu, 08 Oct 2015 09:21:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkB7x-0005Cq-IK for info-gnus-english@gnu.org; Thu, 08 Oct 2015 09:21:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkB7C-000748-Rc for info-gnus-english@gnu.org; Thu, 08 Oct 2015 09:20:57 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:45388) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkB7C-000732-7c for info-gnus-english@gnu.org; Thu, 08 Oct 2015 09:20:10 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZkB7A-0004zw-Si for info-gnus-english@gnu.org; Thu, 08 Oct 2015 15:20:08 +0200 Original-Received: from arennes-651-1-323-7.w2-12.abo.wanadoo.fr ([2.12.202.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Oct 2015 15:20:08 +0200 Original-Received: from pmlists by arennes-651-1-323-7.w2-12.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Oct 2015 15:20:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: arennes-651-1-323-7.w2-12.abo.wanadoo.fr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:LuRlRUeR3mb1+XR5TCr+BDc0gKI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 Xref: news.gmane.org gmane.emacs.gnus.user:17690 Archived-At: On Thu, Oct 08 2015, Erik Colson wrote: > So I was thinking how I could achieve some kind of searching in this > specific mailbox and I got an idea: why not add a specific header > (i.e. "x-tag:") when filing messages into this specific mailbox? So I'd > need gnus to ask me a question (tags) when it detects that I want to > file messages into this specific mailbox. Then gnus can add the x-tag > header to the messages before filing them. Another option is to write a > specific function for this... Perhaps like this: --8<---------------cut here---------------start------------->8--- (defun pm/save-article (group) (interactive (list (gnus-group-completing-read nil nil nil nil nil gnus-current-move-group))) ->(if group is the special one, then add x-tag header) (let ((summary-p (string-match "Summary" (buffer-name)))) (gnus-summary-move-article nil group) (if summary-p (next-line) (gnus-summary-next-unread-article) (gnus-summary-show-article) (gnus-summary-select-article-buffer)))) --8<---------------cut here---------------end--------------->8--- -- Peter