From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/3032 Path: news.gmane.org!not-for-mail From: Ivan Boldyrev Newsgroups: gmane.emacs.gnus.user Subject: Re: message-mail-p and message-news-p are confused Date: Sun, 28 Sep 2003 13:40:46 +0700 Organization: this field is intentionally left blank Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138669260 17375 80.91.229.2 (31 Jan 2006 01:01:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:01:00 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:31:36 2006 Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!nsc.no!nextra.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!p6.bass1.sinor.RU!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: p6.bass1.sinor.ru (217.70.108.6) Original-X-Trace: news.uni-berlin.de 1064812416 9393920 217.70.108.6 (16 [186134]) X-Orig-Path: ibhome.cgitftp.uiggm.nsc.ru!not-for-mail X-Comment-To: Erik Arneson X-Request-PGP: hkp://wwwkeys.eu.pgp.net:11371 X-PGP-KeyID: 0xA5BDD19856098673 (1024D) X-PGP-Fingerprint: 3640 E637 EE3D AA51 A59F 3306 A5BD D198 5609 8673 X-Face: PH}*k.3oBVs#UXxo9T/`6!vlSI.1C@7ht0^wH,DeRlG\)j3v:@^jABw--/o=BTWpuau^vQM ]WU)p;0L%v?QTVD%s^Cy#D User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:3173 Original-Lines: 36 X-Gnus-Article-Number: 3173 Tue Jan 17 17:31:36 2006 Xref: news.gmane.org gmane.emacs.gnus.user:3032 Archived-At: On 8514 day of my life Erik Arneson wrote: > On 26-Sep-2003, Jesper Harder wrote: >> Erik Arneson writes: >>> I am not sure exactly what is causing it, but it seems that >>> `message-mail-p' and `message-news-p' are getting very confused lately. >>> When I create a new mail message, `message-mail-p' still returns nil. >>> When I try to send mail, it acts like I am sending news. >> >> How do you create a new mail message? With `m' from the group buffer? > > Yep, I hit 'm' from a mail group summary buffer, or even 'C-u m' from > the group buffer while over a mail group. However, `message-mail-p' > still returns 'nil'. It is pretty obnoxious. I noticed: (message-mail-p) returns non-nil only if you have 'To:' header filled (probably, 'Cc:' and 'Bcc' are ok too). In my posting styles I use (not (message-news-p)). It behaves as necessary with one exception: when you press 'a' in Group buffer, both (message-news-p) and (message-mail-p) are nil. But I rarely use it. Adding in summary buffer works perfectly. As I learned from code, bot (message-mail-p) and (message-news-p) check wither mail header ('To:' etc.) or ('Newsgroups:') exist and are not empty. When you press 'a' in news group, 'Newsgroups:' is automatically filled with group name, and everything is ok. > I have `gnus-post-method' set to 'current, but I am not so sure that's > used for mail. -- Ivan Boldyrev Onions have layers. Unix has layers too.