From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/35923 Path: main.gmane.org!not-for-mail From: lantz moore Newsgroups: gmane.emacs.gnus.general Subject: Re: Posting styles and PGP integration? Date: 19 Apr 2001 01:34:36 -0700 Sender: lmoore@maui.doit.org Message-ID: <86r8ypi8yr.fsf@tump.com> References: <87hezmnbmh.fsf@inanna.rimspace.net> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035171595 5728 80.91.224.250 (21 Oct 2002 03:39:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:39:55 +0000 (UTC) Return-Path: Original-Received: (qmail 4615 invoked by alias); 19 Apr 2001 08:34:32 -0000 Original-Received: (qmail 4607 invoked from network); 19 Apr 2001 08:34:32 -0000 Original-Received: from ns1.doit.org (HELO maui.doit.org) (root@199.184.188.17) by gnus.org with SMTP; 19 Apr 2001 08:34:32 -0000 Original-Received: (from lmoore@localhost) by maui.doit.org (8.9.3/8.9.3/Debian 8.9.3-21) id BAA07821; Thu, 19 Apr 2001 01:34:36 -0700 X-Authentication-Warning: maui.doit.org: lmoore set sender to lmoore@tump.com using -f Original-To: ding@gnus.org In-Reply-To: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Capitol Reef) Original-Lines: 38 Xref: main.gmane.org gmane.emacs.gnus.general:35923 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:35923 Andreas Fuchs writes: > That's not quite it, for when I reply to a mail by quoting it (with F or > R), the <##part...> stuff is inserted _below_ the quotation, which is > not a Good Thing, IMHO. Is there a way to move this to the first line in > a message? With message-setup-hook, perhaps? i'm having a similar problem with a similar setup. what i'd like to do is make sure to encrypt replies to encrypted mails (it's far too easy to SW, type your reply, and C-cC-c while forgetting to M-mcp first). what i tried was: (setq gnus-posting-styles '((header "content-type" "encrypted" (body "<##part encrypt=pgpmime>")))) this almost works, but i get the same result as you, the encrypt tag comes after the yanked text. mucking with message-setup-hook doesn't seem to help either because a) that's what gnus-posting-styles does, and 2) that hook seems to get run *before* the yanked text gets inserted. is there any hook that gets run *after* the yanking? hmm, maybe gnus-message-setup-hook? ok, what about this: (setq gnus-posting-styles '((header "content-type" "encrypted" (eval (save-excursion (make-local-variable 'gnus-message-setup-hook) (add-hook 'gnus-message-setup-hook `(lambda () (save-excursion (message-goto-body) (insert "<##part encrypt=pgpmime>\n\n"))))))))) this seems to do *almost* what i want, with the odd side effect of putting the encrypt tag at the top of *every* message. even just hitting m in the group buffer. ugh, back to the drawing board i suppose... -l