From 9eb9b47593181a3bf987eeaa0398ab5330ec12f8 Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Mon, 14 Apr 2014 21:32:41 -0400 Subject: [PATCH] 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. --- uip/inc.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.56.0