X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffolder_delmsgs.c;h=b145e0b8620664710eec67566f0e266defec2c93;hp=17b99bef6f857524eec1d92bb68f2e25339b38af;hb=f7d9cd4bee03230dd8839581f772bdf2bdbf3c97;hpb=8edc5aaf86f9f77124664f6801bc6c6cdf258173 diff --git a/sbr/folder_delmsgs.c b/sbr/folder_delmsgs.c index 17b99be..b145e0b 100644 --- a/sbr/folder_delmsgs.c +++ b/sbr/folder_delmsgs.c @@ -6,6 +6,8 @@ ** complete copyright information. */ +#include +#include #include /* @@ -26,7 +28,6 @@ folder_delmsgs(struct msgs *mp, int hook) /* unselect message */ unset_selected(mp, msgnum); - mp->numsel--; snprintf(msgpath, sizeof (msgpath), "%s/%d", mp->foldpath, msgnum); @@ -44,13 +45,13 @@ folder_delmsgs(struct msgs *mp, int hook) } /* If removal was successful, decrement message count */ - unset_exists(mp, msgnum); + clear_msg_flags(mp, msgnum); mp->nummsg--; } /* Sanity check */ if (mp->numsel != 0) - adios(NULL, "oops, mp->numsel should be 0"); + adios(EX_SOFTWARE, NULL, "oops, mp->numsel should be 0"); /* Mark that the sequence information has changed */ mp->msgflags |= SEQMOD;