From: Ken Hornstein Date: Tue, 15 Apr 2014 01:32:41 +0000 (-0400) Subject: It turns out that due to the changes to m_getfld() to support file X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/9eb9b47593181a3bf987eeaa0398ab5330ec12f8?ds=sidebyside It turns out that due to the changes to m_getfld() to support file position tracking, this broke the scan output from inc(1) when POPing more than one message at a time. Since a new filehandle was being passed to each call to scan(), it made the most sense to simply discard the m_getfld() state for each call to scan() when doing POP. --- diff --git a/uip/inc.c b/uip/inc.c index b76f1cd9..37db70b1 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -666,6 +666,8 @@ go_to_it: if (trnflag && pop_dele (i) == NOTOK) adios (NULL, "%s", response); + + scan_finished(); } if (pop_quit () == NOTOK)