From: Ivan Boldyrev <boldyrev+nospam@cgitftp.uiggm.nsc.ru>
Subject: Re: message-mail-p and message-news-p are confused
Date: Sun, 28 Sep 2003 13:40:46 +0700 [thread overview]
Message-ID: <fcci41xlqk.ln2@ibhome.cgitftp.uiggm.nsc.ru> (raw)
In-Reply-To: <m3llsabzmv.fsf@monkey.x6.aarg.net>
On 8514 day of my life Erik Arneson wrote:
> On 26-Sep-2003, Jesper Harder <harder@myrealbox.com> wrote:
>> Erik Arneson <g.e.gnus@erik.aarg.net> 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.
next prev parent reply other threads:[~2003-09-28 6:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <lyllsbl257.fsf@sif.musiciansfriend.com>
2003-09-27 1:53 ` Jesper Harder
2003-09-27 4:53 ` Erik Arneson
2003-09-28 6:40 ` Ivan Boldyrev [this message]
2003-09-29 2:56 ` Jesper Harder
2003-09-29 17:27 ` Erik Arneson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fcci41xlqk.ln2@ibhome.cgitftp.uiggm.nsc.ru \
--to=boldyrev+nospam@cgitftp.uiggm.nsc.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).