From: epg <> Date: Sat, 25 Mar 2006 01:39:55 +0000 (+0000) Subject: (get_highest_msgnum): Fix minor bug, returning one less than it should X-Git-Url: https://diplodocus.org/git/minc/commitdiff_plain/03b99b32fd7e07520e044add226ab59caab8e07f?hp=7a691e7e780ebe1d3acb7e222ad751651bb916d8 (get_highest_msgnum): Fix minor bug, returning one less than it should be on the first call for a folder. This was only noticeable in -n mode because store_message loops to find a fresh number. --- diff --git a/minc b/minc index 432d090..eba819f 100755 --- a/minc +++ b/minc @@ -342,7 +342,8 @@ sub get_highest_msgnum { } } - return $msgnum_cache{$mhfolder} = $highest; + $msgnum_cache{$mhfolder} = $highest; + return $msgnum_cache{$mhfolder}++; } sub mark {