- * Single Message
- *
- * If ALLOW_NEW is set, then allow selecting of an
- * empty slot. If ALLOW_NEW is not set, then we
- * check if message is in-range and exists.
- */
- if (mp->msgflags & ALLOW_NEW) {
- set_select_empty (mp, first);
- } else {
- if (first > mp->hghmsg
- || first < mp->lowmsg
- || !(does_exist (mp, first))) {
- if (!strcmp (name, "cur") || !strcmp (name, "."))
- advise (NULL, "no %s message", name);
- else
- advise (NULL, "message %d doesn't exist", first);
- return 0;
- }
+ ** AFAICS, the only cases to reach here are:
+ ** f, l, p, n, c, b
+ ** But I'm not sure. --meillo
+ */
+ /*
+ ** Single Message
+ **
+ ** Check if message is in-range and exists.
+ */
+ if (first > mp->hghmsg || first < mp->lowmsg ||
+ !does_exist(mp, first)) {
+ if (strcmp(name, seq_cur)==0)
+ advise(NULL, "no current message");
+ else
+ /* this case seems to never be reached */
+ advise(NULL, "message %d doesn't exist",
+ first);
+ return 0;