mailinfo: support format=flowed
[gitweb.git] / builtin / am.c
index 2fc2d1e82c5ead598476964329b555e38de9a495..30c87c195372f1987e1db9fe7cca65da32599224 100644 (file)
@@ -1243,6 +1243,10 @@ static int parse_mail(struct am_state *state, const char *mail)
        fclose(mi.input);
        fclose(mi.output);
 
+       if (mi.format_flowed)
+               warning(_("Patch sent with format=flowed; "
+                         "space at the end of lines might be lost."));
+
        /* Extract message and author information */
        fp = xfopen(am_path(state, "info"), "r");
        while (!strbuf_getline_lf(&sb, fp)) {