- 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;
- }
+ if (mp->msgflags & ALLOW_BEYOND) {
+ set_select_empty(mp, first);
+ } else if (first > mp->hghmsg || first < mp->lowmsg
+ || !does_exist(mp, first)) {
+ if (!strcmp(name, seq_cur))
+ advise(NULL, "no %s message", name);
+ else
+ advise(NULL, "message %d doesn't exist",
+ first);
+ return 0;