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) ...@@ -193,7 +193,8 @@ mail_send0 (struct send_environ *env, int save_to)
193 193
194 int_cnt = 0; 194 int_cnt = 0;
195 195
196 if (buf[0] == '.' && util_getenv (NULL, "dot", Mail_env_boolean, 0) == 0) 196 if (strcmp (buf, ".") == 0
197 && util_getenv (NULL, "dot", Mail_env_boolean, 0) == 0)
197 done = 1; 198 done = 1;
198 else if (util_getenv (&escape, "escape", Mail_env_string, 0) == 0 199 else if (util_getenv (&escape, "escape", Mail_env_string, 0) == 0
199 && buf[0] == escape[0]) 200 && buf[0] == escape[0])
......