summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2004-05-27 19:10:51 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2004-05-27 19:10:51 +0000
commit3b316a22b8df8c419d451b8b288bfff54d677a52 (patch)
tree52699c0882b118a55fbf54d1d402bf9377b74b8b /mail
parent792d52a6a67f137e1aeedbac9f44d0df55aad898 (diff)
downloadmailutils-3b316a22b8df8c419d451b8b288bfff54d677a52.tar.gz
mailutils-3b316a22b8df8c419d451b8b288bfff54d677a52.tar.bz2
(mail_send0): Check ignoreeof variable for interactive sessions only.
Diffstat (limited to 'mail')
-rw-r--r--mail/send.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/send.c b/mail/send.c
index b26442939..92c5953c6 100644
--- a/mail/send.c
+++ b/mail/send.c
@@ -340,7 +340,8 @@ mail_send0 (compose_env_t * env, int save_to)
if (!buf)
{
- if (util_getenv (NULL, "ignoreeof", Mail_env_boolean, 0) == 0)
+ if (interactive
+ && util_getenv (NULL, "ignoreeof", Mail_env_boolean, 0) == 0)
{
util_error (util_getenv (NULL, "dot", Mail_env_boolean, 0) == 0 ?
_("Use \".\" to terminate letter.") :

Return to:

Send suggestions and report system problems to the System administrator.