> Uwe Brauer via "Announcements and discussions for GNUS, the GNU Emacs
> Usenet newsreader (in English)" <info-gnus-english@gnu.org> writes:


> Most nadvice pieces, including :before advice pieces, are passed the
> arguments that are passed to the advised function.
> `gnus-summary-followup-with-original' is always called with at least one
> argument.  You can just throw all arguments away:
> (defun my-toggle-bcc-check (&rest _) ...).  Was it that?



So the following seems to solve my issues with advice 

--8<---------------cut here---------------start------------->8---
(defun check-my-to-field (&optional arg)
  "This function will be run before you execute followup. And it
warns you if your email address is not in the To field. That
warning is a safty message if you had been only on the BCC
field!!"
  (interactive "P")
--8<---------------cut here---------------end--------------->8---


Thanks!!!


Still the function should be generalised with a more sophisticated
search, but right now it more than sufficient for my purposes and just a
couple of minutes ago I faced a situation where I was in the BCC



BTW I am still wondering that such a functionality is not implemented,
yet.

Uwe Brauer 


  • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
    • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
      • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
        • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
        • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
          • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
            • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
            • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
              • ... Christoph Groth
                • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
                • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
                • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
    • ... James Thomas
      • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
        • ... James Thomas
          • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
          • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)

Reply via email to