From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/58605 Path: main.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.gnus.general Subject: RFE: d/l only the header Date: Sun, 26 Sep 2004 09:49:59 -0400 Organization: disorganization Sender: ding-owner@lists.math.uh.edu Message-ID: Reply-To: sds@gnu.org NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: sea.gmane.org 1096294145 21891 80.91.229.6 (27 Sep 2004 14:09:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Sep 2004 14:09:05 +0000 (UTC) Original-X-From: ding-owner+M7142@lists.math.uh.edu Mon Sep 27 16:08:47 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CBwBL-0002M0-00 for ; Mon, 27 Sep 2004 16:08:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1CBwAa-0000L5-00; Mon, 27 Sep 2004 09:08:00 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1CBZPm-0005p8-00 for ding@lists.math.uh.edu; Sun, 26 Sep 2004 08:50:10 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1CBZPm-0008JB-Gb for ding@lists.math.uh.edu; Sun, 26 Sep 2004 08:50:10 -0500 Original-Received: from main.gmane.org (main.gmane.org [80.91.229.2]) by justine.libertine.org (Postfix) with ESMTP id 963CA3A0214 for ; Sun, 26 Sep 2004 08:50:06 -0500 (CDT) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CBZPg-00029g-00 for ; Sun, 26 Sep 2004 15:50:04 +0200 Original-Received: from 65-78-20-143.c3-0.nwt-ubr2.sbo-nwt.ma.cable.rcn.com ([65.78.20.143]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 26 Sep 2004 15:50:04 +0200 Original-Received: from sds by 65-78-20-143.c3-0.nwt-ubr2.sbo-nwt.ma.cable.rcn.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 26 Sep 2004 15:50:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Original-Lines: 29 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 65-78-20-143.c3-0.nwt-ubr2.sbo-nwt.ma.cable.rcn.com Mail-Copies-To: never X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:S7p2jOgczAL8h/VFGldsUW72Lhw= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:58605 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:58605 When reading mailing lists on gmane, I use this to mark spam: (defun sds-gmane-url (type) (concat "http://" type ".gmane.org/" (if (string-match ":\\([^:]*\\)$" gnus-newsgroup-name) (match-string 1 gnus-newsgroup-name) gnus-newsgroup-name) ":" (number-to-string (mail-header-number gnus-current-headers)))) (defun sds-gmane-article () (interactive) (let ((url (sds-gmane-url "article")) (x-select-enable-clipboard t)) (kill-new url) (message "Gmane: %s" url))) (defun sds-gmane-spam () (interactive) (browse-url (sds-gmane-url "spam"))) Very often I know the article is spam just by looking at the sender and subject, but the above code only works if I download the whole article (which may be 1,000+ lines long!) Is there a way to request just the header? -- Sam Steingold (http://www.podval.org/~sds) running w2k main(a){printf(a,34,a="main(a){printf(a,34,a=%c%s%c,34);}",34);}