X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffolder_addmsg.c;h=e14c7099d69099a494a29cb3cd23212df598d898;hp=7a4a982692efddf83c9a9ee9c28b26554420f01a;hb=6e9577f324bef90765a5edc02044eb111ec48072;hpb=7e3bc577e84e13a47005a706718bd6ec0e6a0e0a diff --git a/sbr/folder_addmsg.c b/sbr/folder_addmsg.c index 7a4a982..e14c709 100644 --- a/sbr/folder_addmsg.c +++ b/sbr/folder_addmsg.c @@ -6,9 +6,11 @@ ** complete copyright information. */ +#include #include #include #include +#include /* ** Link message into a folder. Return the new number @@ -85,20 +87,6 @@ folder_addmsg(struct msgs **mpp, char *msgfile, int selected, /* should we set the SELECTED bit? */ if (selected) { set_selected(mp, msgnum); - - /* check if highest or lowest selected */ - if (mp->numsel == 0) { - mp->lowsel = msgnum; - mp->hghsel = msgnum; - } else { - if (msgnum < mp->lowsel) - mp->lowsel = msgnum; - if (msgnum > mp->hghsel) - mp->hghsel = msgnum; - } - - /* increment number selected */ - mp->numsel++; } /* @@ -142,11 +130,6 @@ folder_addmsg(struct msgs **mpp, char *msgfile, int selected, } else { linkerr = errno; -#ifdef EISREMOTE - if (linkerr == EISREMOTE) - linkerr = EXDEV; -#endif /* EISREMOTE */ - /* ** Check if the file in our desired location is ** the same as the source file. If so, then just