tRemove parsing "From:" field in writeentry() - scribo - Email-based phlog generator
 (HTM) git clone git://git.z3bra.org/scribo.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 1000e3db9d904c8eddc576737f82e559d00ae9de
 (DIR) parent edd08054989a560b60a1039cd25e405a59dae81c
 (HTM) Author: Willy Goiffon <dev@z3bra.org>
       Date:   Tue,  8 Sep 2020 13:38:44 +0200
       
       Remove parsing "From:" field in writeentry()
       
       Diffstat:
         M scribo.c                            |       3 +--
       
       1 file changed, 1 insertion(+), 2 deletions(-)
       ---
 (DIR) diff --git a/scribo.c b/scribo.c
       t@@ -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;
       t@@ -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");