I read News using GNUS and save the interesting articles into MH
folders all starting with +usenet.  When I later want to review these
articles, I use mh-e to read them.  However, with bbdb, when I visit
these messages in the folder, a bbdb entry is made because I set
bbdb/mail-auto-create-p to 'bbdb-ignore-some-messages.  I don't want
this to happen on my News (+usenet) folders.

My first attempt to fix this was to create a new hook that would check
the mh-show-buffer to see the buffer name.  Any buffer name matching
"show-+usenet/" (where the News folders are) would be ignored.  I
tried this:

(defun rlt-bbdb-ignore-some-messages-hook ()
  ;; If mh-show-buffer starts with +show-usenet, ignore this message
  (cond ((string-match "show-\\+usenet/" mh-show-buffer)
         nil)
        (t
         (bbdb-ignore-some-messages-hook))))

This doesn't quite work because mh-show-buffer is buffer local and
when this is called, the current buffer is not an mh buffer.

Can someone show me how to get the correct value of mh-show-buffer?
Alternatively, is there another way to do this?

Thanks,

Ray

Ray -----> [EMAIL PROTECTED]
Toy -----> Ericsson-GE RTP x7480

Reply via email to