Commit 46ff2b83 46ff2b83a84fa956f6ce08b60229486cb8547e8f by Sergey Poznyakoff

(mail_send0): Bugfix. A dot ends the message

only if it is the only character on the line. Thanks
to Thomas Esser <te@dbs.uni-hannover.de> for noticing.
1 parent efe98ec8
......@@ -193,7 +193,8 @@ mail_send0 (struct send_environ *env, int save_to)
int_cnt = 0;
if (buf[0] == '.' && util_getenv (NULL, "dot", Mail_env_boolean, 0) == 0)
if (strcmp (buf, ".") == 0
&& util_getenv (NULL, "dot", Mail_env_boolean, 0) == 0)
done = 1;
else if (util_getenv (&escape, "escape", Mail_env_string, 0) == 0
&& buf[0] == escape[0])
......