Commit d775d8e3 d775d8e3c32ee0d3e7cea169c8447642711a5813 by Sergey Poznyakoff

builtin_msg(): return sequence number of the message, not its ordinal

number in mailbox.
builtin_cur(): implemented.
1 parent 1a0bcb4e
......@@ -396,14 +396,17 @@ builtin_not_implemented (char *name)
static void
builtin_msg (struct mh_machine *mach)
{
mach->reg_num = mach->msgno;
size_t msgno = mach->msgno;
mh_message_number (mach->message, &msgno);
mach->reg_num = msgno;
}
static void
builtin_cur (struct mh_machine *mach)
{
/*FIXME*/
mach->reg_num = 0;
size_t msgno = mach->msgno;
mh_message_number (mach->message, &msgno);
mach->reg_num = msgno == current_message;
}
static void
......