Remove extra space from 'From' line when writing to mbox
authorVasily Kolobkov <>
Thu, 9 Jun 2016 12:30:30 +0000 (14:30 +0200)
committerPhilipp Takacs <philipp@bureaucracy.de>
Thu, 21 Jul 2016 14:37:05 +0000 (16:37 +0200)
uip/dropsbr.c

index 45451f8..e105884 100644 (file)
@@ -131,7 +131,7 @@ mbox_copy(int to, int from)
                                        fp = strchr(ep + 1, '\n');
                                tp = dctime(dlocaltimenow());
                                        snprintf(buffer, sizeof(buffer),
-                                                       "From %.*s  %s",
+                                                       "From %.*s %s",
                                                        (int)(fp-ep), ep, tp);
                        } else if (strncmp(buffer, "X-Envelope-From:",
                                        16)==0) {
@@ -158,7 +158,7 @@ mbox_copy(int to, int from)
                                ep = "nobody@nowhere";
                                tp = dctime(dlocaltimenow());
                                snprintf(buffer, sizeof(buffer),
-                                               "From %s  %s%s", ep, tp,
+                                               "From %s %s%s", ep, tp,
                                                tmpbuffer);
                        }
                }