From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48505 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: [CODE] Adding continuation line characters in headers automatically. Date: Wed, 01 Jan 2003 21:53:34 +0100 Organization: Programmerer Ingebrigtsen Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1041454414 4742 80.91.224.249 (1 Jan 2003 20:53:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 1 Jan 2003 20:53:34 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Tprp-0001EF-00 for ; Wed, 01 Jan 2003 21:53:33 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18TpsC-00075L-00; Wed, 01 Jan 2003 14:53:56 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 01 Jan 2003 14:54:50 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id OAA20775 for ; Wed, 1 Jan 2003 14:54:34 -0600 (CST) Original-Received: (qmail 51629 invoked by alias); 1 Jan 2003 20:53:36 -0000 Original-Received: (qmail 51624 invoked from network); 1 Jan 2003 20:53:35 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by 66.230.238.6 with SMTP; 1 Jan 2003 20:53:35 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 18Tpsn-0002I9-00 for ; Wed, 01 Jan 2003 21:54:33 +0100 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 33 Original-NNTP-Posting-Host: quimbies.gnus.org Original-X-Trace: quimby.gnus.org 1041454473 8426 80.91.231.2 (1 Jan 2003 20:54:33 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 1 Jan 2003 20:54:33 GMT Original-To: Matthieu Moy Mail-Copies-To: never X-Now-Playing: Plunderphonics's _69-96 (2)_: "Dudley Buscase - Lune" User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2.50 (i686-pc-linux-gnu) X-Face: %Q+z7YTTw`$SBdCe\Iy1ka%L*Bj2?8LcfD&oNO&t~D^io}e^"VK0GcZG)P4-E~,2f)'P$u] ioHE(dEsV$.3Bk}y4qP:m Cancel-Lock: sha1:WdU2YaT23YoiravWOxsuym+hUgQ= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:48505 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:48505 Matthieu Moy writes: > (defun moy-gnus-check-headers () > "Checks wether there is a mistake with continuation line characters > in the mail headers" > (interactive) > (save-restriction > (widen) > (narrow-to-region (point-min) > (progn (goto-char (point-min)) > (search-forward mail-header-separator) > (beginning-of-line nil) > (point) > )) > (goto-char (point-min)) > (while (re-search-forward "^[^ \\n][^:\\n]*$" nil t) > (if (y-or-n-p "You have line in your headers without : and not \ > beginning by a continuation caracter. Add one ?") > (progn > (goto-char (match-beginning 0)) > (insert " ")) > (if (y-or-n-p "Send anyway ?") > t > (error "not sending message")))) > ) > ) I think this is a good idea. Do you have FSF copyright assignment papers on file? -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen