From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87393 Path: news.gmane.org!.POSTED!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.gnus.general Subject: SOLVED (was: ignore bcc when followup) Date: Wed, 22 Feb 2017 19:10:27 +0000 Message-ID: <87o9xu6nz0.fsf@mat.ucm.es> References: <87y3wy8hd0.fsf@mat.ucm.es> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1487790708 29650 195.159.176.226 (22 Feb 2017 19:11:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 22 Feb 2017 19:11:48 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+m35614@lists.math.uh.edu Wed Feb 22 20:11:43 2017 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from mxfilter-048034.atla03.us.yomura.com ([107.189.48.34]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgcKB-0006o2-BP for ding-account@gmane.org; Wed, 22 Feb 2017 20:11:39 +0100 X-Yomura-MXScrub: 1.0 Original-Received: from lists1.math.uh.edu (unknown [129.7.128.208]) by mxfilter-048034.atla03.us.yomura.com (Halon) with ESMTPS id be22874c-f932-11e6-b719-b499baa2b07a; Wed, 22 Feb 2017 19:11:42 +0000 (UTC) Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.87) (envelope-from ) id 1cgcJQ-0001HS-7H; Wed, 22 Feb 2017 13:10:52 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1cgcJN-0001Go-J1 for ding@lists.math.uh.edu; Wed, 22 Feb 2017 13:10:49 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.87) (envelope-from ) id 1cgcJM-0001ss-E5 for ding@lists.math.uh.edu; Wed, 22 Feb 2017 13:10:49 -0600 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1cgcJL-00077K-17 for ding@gnus.org; Wed, 22 Feb 2017 20:10:47 +0100 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cgcJ2-0000wj-3n for ding@gnus.org; Wed, 22 Feb 2017 20:10:28 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 32 Original-X-Complaints-To: usenet@blaine.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:uOunEm4qsB71Xd3qm40w4I2owAs= List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87393 Archived-At: >>> "Uwe" == Uwe Brauer writes: > Hi > as longer as I think about it: At least optionally the BCC field should > be ignored in the reply even when calling followup. > I look into the code, looks difficult to modify. Any ideas? > Regards > Uwe Brauer The following code does this (add-hook 'gnus-message-setup-hook 'my-check-bcc) (defun my-check-bcc () "Try to avoid painful situations when using followup, and there is a Bcc field." (interactive) (cond ((and gnus-article-reply (message-with-reply-buffer (re-search-forward "^Bcc:\\|BCC:\\|bcc:" nil t))) (condition-case nil (progn (message-remove-header "cc") (message-goto-body) (message "There is a BCC field, we have deleted it!!!")) (error (progn (message "Followup??")))))))