[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

patch for mailx



merge 26757 40424
thanks

Hi,

 the patch should correct bugs #26757 and #40424 against
 mailx (mail -u user doesn't work).

 The bug is related to an undocumented "feature" of mailx:
 mailx makes use of the environment variable "MAIL", if it is
 set (should be set on any Debian system).

 The patch simply unsets this variable if the program is called
 with '-u'.

 'Undocumented' refers to the man page, btw.

 I prepared an NMU, which I can upload if needed.
 Apparently there was no work on mailx for a long time, so this
 should'nt be much of a problem.

 Thanks,
  Ulf

--- mailx-8.1.1.orig/main.c
+++ mailx-8.1.1/main.c
@@ -114,6 +134,7 @@
 			 * Next argument is person to pretend to be.
 			 */
 			myname = optarg;
+			unsetenv("MAIL");
 			break;
 		case 'i':
 			/*


Reply to: