Commit 8247640c 8247640c2c167532db34d5d79b1359865bf66997 by Sergey Poznyakoff

(mu_mh_delim): New function

1 parent d31af55c
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001, 2004, 2005 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2001, 2004, 2005,
2006 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -142,6 +143,8 @@ extern int mu_set_default_fallback (const char *str);
extern int mu_is_proto (const char *p);
extern int mu_mh_delim (const char *str);
#ifdef __cplusplus
}
#endif
......
......@@ -1334,6 +1334,19 @@ mu_is_proto (const char *p)
return 0;
}
int
mu_mh_delim (const char *str)
{
if (str[0] == '-')
{
for (; *str == '-'; str++)
;
for (; *str == ' ' || *str == '\t'; str++)
;
}
return str[0] == '\n';
}
char *
__argp_base_name (const char *arg)
{
......