From: Lars Magne Ingebrigtsen <larsi@gnus.org>
Subject: Re: [CODE] Adding continuation line characters in headers automatically.
Date: Wed, 01 Jan 2003 21:53:34 +0100 [thread overview]
Message-ID: <m3n0mkzj5d.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <vpqsn6ck5np.fsf@montrose.imag.fr>
Matthieu Moy <Matthieu.Moy@imag.fr> 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
prev parent reply other threads:[~2003-01-01 20:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-03 18:18 Matthieu Moy
2002-04-04 7:44 ` Matthieu Moy
2003-01-01 20:53 ` Lars Magne Ingebrigtsen [this message]
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=m3n0mkzj5d.fsf@quimbies.gnus.org \
--to=larsi@gnus.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).