X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fsendsbr.c;h=b2a298cd04fc87a20762d890b9aa1b8a302750e0;hp=9c335bd9885a6701d81a65f3d8ebbde2e47d48aa;hb=47a78dcb28c6a836574f73f40b05d4adc9c3ad81;hpb=869aa60129811d7b160f353892dc5956a8aaac22 diff --git a/uip/sendsbr.c b/uip/sendsbr.c index 9c335bd..b2a298c 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -30,7 +30,6 @@ int debugsw = 0; /* global */ int forwsw = 1; int inplace = 1; int pushsw = 0; -int unique = 0; int verbsw = 0; char *altmsg = NULL; /* .. */ @@ -79,7 +78,7 @@ int sendsbr(char **vec, int vecp, char *drft, struct stat *st, int rename_drft) { int status; - char buffer[BUFSIZ], file[BUFSIZ]; + char buffer[BUFSIZ]; char *original_draft; /* name of original draft file */ char *p; /* string pointer for building file name */ @@ -115,23 +114,7 @@ sendsbr(char **vec, int vecp, char *drft, struct stat *st, int rename_drft) done=armed_done; switch (setjmp(env)) { case OK: - /* - ** If given -push and -unique (which is undocumented), then - ** rename the draft file. I'm not quite sure why. - */ - if (pushsw && unique) { - char *cp = m_mktemp2(drft, invo_name, NULL, NULL); - if (cp == NULL) { - adios("sendsbr", "unable to create temporary file"); - } - if (rename(drft, strncpy(file, cp, sizeof(file))) - == NOTOK) - adios(file, "unable to rename %s to", drft); - drft = file; - } - status = sendaux(vec, vecp, drft, st) ? NOTOK : OK; - /* rename the original draft */ if (rename_drft && status == OK && rename(original_draft, strncpy(buffer,