| 940 | } |
| 941 | |
| 942 | static enum cover_from_description parse_cover_from_description(const char *arg) |
| 943 | { |
| 944 | if (!arg || !strcmp(arg, "default")) |
| 945 | return COVER_FROM_MESSAGE; |
| 946 | else if (!strcmp(arg, "none")) |
| 947 | return COVER_FROM_NONE; |
| 948 | else if (!strcmp(arg, "message")) |
| 949 | return COVER_FROM_MESSAGE; |
| 950 | else if (!strcmp(arg, "subject")) |
| 951 | return COVER_FROM_SUBJECT; |
| 952 | else if (!strcmp(arg, "auto")) |
| 953 | return COVER_FROM_AUTO; |
| 954 | else |
| 955 | die(_("%s: invalid cover from description mode"), arg); |
| 956 | } |
| 957 | |
| 958 | static void add_header(struct format_config *cfg, const char *value) |
| 959 | { |
no test coverage detected