I jus modified my sqwebmail adding some lines on dosendmsg()


char   *borfile;..
..
..
                                unlink(draftfile);
                                free(draftfile);
                        }
                }
            if (!pref_savesent) {
            borfile=maildir_find(SENT, filename);
            unlink(borfile);
            free(borfile);
                                }


pref_savesent is defined and set as pref_showhtml, just copy al
routines that use pref_showhtml and defined NOSAVE,
NOSAVESENT_PREF so i can now call with [#i#] display_savesent()

My question is:

I could have any problem with the unlink() or is this O.K.? Are
there some other checks that i should do.? To delete the sent
message...

Reply via email to