scribo

Email-based phlog generator
git clone git://git.z3bra.org/scribo.git
Log | Files | Refs

commit 1000e3db9d904c8eddc576737f82e559d00ae9de
parent edd08054989a560b60a1039cd25e405a59dae81c
Author: Willy Goiffon <dev@z3bra.org>
Date:   Tue,  8 Sep 2020 13:38:44 +0200

Remove parsing "From:" field in writeentry()

Diffstat:
Mscribo.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/scribo.c b/scribo.c @@ -124,7 +124,7 @@ writeentry(FILE *in, char *dir, struct headers *head) FILE *out; struct tm tm = {.tm_isdst = -1}; char stamp[BUFSIZ]; - char *subject, *date, *from; + char *subject, *date; char entry[PATH_MAX]; ssize_t len; @@ -132,7 +132,6 @@ writeentry(FILE *in, char *dir, struct headers *head) subject = header(head, "Subject"); date = header(head, "Date"); - from = header(head, "From"); snprintf(entry, sizeof(entry), "%s/%s.txt", dir, sanitize(subject)); out = fopen(entry, "w");