Commit 8247640c 8247640c2c167532db34d5d79b1359865bf66997 by Sergey Poznyakoff

(mu_mh_delim): New function

1 parent d31af55c
1 /* GNU Mailutils -- a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001, 2004, 2005 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2000, 2001, 2004, 2005,
3 2006 Free Software Foundation, Inc.
3 4
4 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public 6 modify it under the terms of the GNU Lesser General Public
...@@ -141,6 +142,8 @@ extern enum mu_iconv_fallback_mode mu_default_fallback_mode; ...@@ -141,6 +142,8 @@ extern enum mu_iconv_fallback_mode mu_default_fallback_mode;
141 extern int mu_set_default_fallback (const char *str); 142 extern int mu_set_default_fallback (const char *str);
142 143
143 extern int mu_is_proto (const char *p); 144 extern int mu_is_proto (const char *p);
145
146 extern int mu_mh_delim (const char *str);
144 147
145 #ifdef __cplusplus 148 #ifdef __cplusplus
146 } 149 }
......
...@@ -1334,6 +1334,19 @@ mu_is_proto (const char *p) ...@@ -1334,6 +1334,19 @@ mu_is_proto (const char *p)
1334 return 0; 1334 return 0;
1335 } 1335 }
1336 1336
1337 int
1338 mu_mh_delim (const char *str)
1339 {
1340 if (str[0] == '-')
1341 {
1342 for (; *str == '-'; str++)
1343 ;
1344 for (; *str == ' ' || *str == '\t'; str++)
1345 ;
1346 }
1347 return str[0] == '\n';
1348 }
1349
1337 char * 1350 char *
1338 __argp_base_name (const char *arg) 1351 __argp_base_name (const char *arg)
1339 { 1352 {
......