I think this bug is invalid. Control-D is just a way to simulate an end
of file. In a cron job or a script, where one pipes the output of
another program into /usr/bin/mail, a real EOF occurs naturally.

Note that the last period is not needed; if you include it, it becomes
part of the message body. According to the documentation, "[i]f mail
variable dot is set, typing dot (ā€˜.ā€™) on a line alone achieves the same
effect as ā€˜C[ontrol]-Dā€™". I've tested this (adding "set dot" to
~/.mailrc before invoking the mail command) and it works (in lucid).

So:
1) if you want a single dot by itself to terminate input, set the mail variable 
"dot". This can be done in /etc/mail.rc if you want to change the system-wide 
default.
2) Terminating the message on EOF is a perfectly viable option for scripts and 
cron jobs in my experience.


** Changed in: mailutils (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/589453

Title:
  mail command in mailutiils hangs and has to be killed.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mailutils/+bug/589453/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to