From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82541 Path: news.gmane.org!not-for-mail From: david.goldberg6@verizon.net (Dave Goldberg) Newsgroups: gmane.emacs.gnus.general Subject: Re: couple of questions about api Date: Sun, 25 Nov 2012 21:06:11 -0500 Message-ID: <841ufhce3w.fsf@davestoy.homelinux.org> References: <87d2z4eagy.fsf@redhat.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1353895637 20632 80.91.229.3 (26 Nov 2012 02:07:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Nov 2012 02:07:17 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M30807@lists.math.uh.edu Mon Nov 26 03:07:29 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tco6a-00008R-El for ding-account@gmane.org; Mon, 26 Nov 2012 03:07:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Tco63-0007O3-Ip; Sun, 25 Nov 2012 20:06:55 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Tco62-0007Np-C2 for ding@lists.math.uh.edu; Sun, 25 Nov 2012 20:06:54 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1Tco61-0006TV-6z for ding@lists.math.uh.edu; Sun, 25 Nov 2012 20:06:54 -0600 Original-Received: from vms173007pub.verizon.net ([206.46.173.7]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Tco5z-0001nt-GC for ding@gnus.org; Mon, 26 Nov 2012 03:06:51 +0100 Original-Received: from davestoy.homelinux.org.verizon.net ([unknown] [173.48.214.182]) by vms173007.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0ME200HJLOIBZLA0@vms173007.mailsrvcs.net> for ding@gnus.org; Sun, 25 Nov 2012 20:06:21 -0600 (CST) X-Face: W!bie|rYVd43O:2CkHTb*~s5}Yzx30X<@6Tq_bnP56Hp!xX4sVl4tgYRirjRcke\wfY!JJ9 i?]VIUJicJzq2\!3%7$5R%wi!R[.]Va97q In-reply-to: <87d2z4eagy.fsf@redhat.com> (Nikola Pajkovsky's message of "Fri, 23 Nov 2012 14:05:01 +0100") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1 (gnu/linux) X-Spam-Score: -2.3 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82541 Archived-At: > I found the function gnus-fetch-field which works fine in Article > buffer, but not in Summary buffer. See code > (global-set-key (kbd "\C-xpg") 'get-message-id) > (defun get-message-id () > (car (nthcdr 1 (mail-extract-address-components > (gnus-fetch-field "message-id"))))) > What do I have to call to get message-id from mail header from Summary > buffer? Perhaps there's something that feels cleaner but I've always used something like (save-excursion (set-buffer gnus-article-buffer) ...) > And how to make it work with process markers? I'd like to mark some mail > and get message-id one by one. See the function gnus-summary-work-articles -- Dave Goldberg david.goldberg6@verizon.net