Anonymous | Login | 2024-09-17 01:33 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Type | Date Submitted | Last Update | ||
0001367 | [1003.1(2016/18)/Issue7+TC2] Shell and Utilities | Editorial | Enhancement Request | 2020-07-08 22:55 | 2024-06-11 09:08 | ||
Reporter | steffen | View Status | public | ||||
Assigned To | |||||||
Priority | normal | Resolution | Accepted As Marked | ||||
Status | Closed | ||||||
Name | Steffen Nurpmeso | ||||||
Organization | |||||||
User Reference | |||||||
Section | Vol. 3: Shell and Utilities, mailx | ||||||
Page Number | 2943, 2944 | ||||||
Line Number | 97431, 97471 ff. | ||||||
Interp Status | --- | ||||||
Final Accepted Text | Note: 0005162 | ||||||
Summary | 0001367: mailx: add -E option to discard (not send) empty messages | ||||||
Description |
The mailx variants of Apple, NetBSD, OpenBSD as well as other Open Source incarnations, support a command line option -E that rejects sending empty messages, successfully. This is very helpful in scripted use cases since possible error notifications will only be send out if necessary. The backing value ("INTERNAL VARIABLE") is different (skipemptybody, dontsendempty, skipempty, to name a few), but the behaviour of the -E option itself is identical. The only known mailx incarnation which does not support -E is Solaris (OpenIndiana inspected), but the implementation is simplicistic since mailx warns on empty messages, the code change would need to turn if (fsize(mtf) == 0 && hp->h_subject == NOSTR) { printf(gettext("No message !?!\n")); goto out; } into if (fsize(mtf) == 0) { if (value("dontsendempty") != NOSTR) goto jout; if (hp->h_subject == NOSTR) { printf(gettext("No message !?!\n")); goto out; } } |
||||||
Desired Action |
On page 2943, line 97431, change mailx [−s subject] address... into mailx [-E] [−s subject] address... On page 2944, insert after line 97471 -E Discard messages with an empty message body, successfully. |
||||||
Tags | issue8 | ||||||
Attached Files | |||||||
|
Relationships | ||||||
|
Issue History | |||
Date Modified | Username | Field | Change |
2020-07-08 22:55 | steffen | New Issue | |
2020-07-08 22:55 | steffen | Name | => Steffen Nurpmeso |
2020-07-08 22:55 | steffen | Section | => Vol. 3: Shell and Utilities, mailx |
2020-07-08 22:55 | steffen | Page Number | => 2943, 2944 |
2020-07-08 22:55 | steffen | Line Number | => 97431, 97471 ff. |
2020-07-09 08:01 | geoffclare | Note Added: 0004895 | |
2020-07-09 08:01 | geoffclare | Note Edited: 0004895 | |
2020-07-09 08:02 | geoffclare | Relationship added | related to 0001368 |
2020-07-09 13:25 | steffen | Note Added: 0004896 | |
2020-12-10 17:23 | rhansen | Note Added: 0005162 | |
2020-12-10 17:24 | rhansen | Interp Status | => --- |
2020-12-10 17:24 | rhansen | Final Accepted Text | => Note: 0005162 |
2020-12-10 17:24 | rhansen | Status | New => Resolved |
2020-12-10 17:24 | rhansen | Resolution | Open => Accepted As Marked |
2020-12-10 17:24 | rhansen | Tag Attached: issue8 | |
2020-12-16 16:41 | geoffclare | Note Added: 0005182 | |
2020-12-16 16:41 | geoffclare | Status | Resolved => Applied |
2024-06-11 09:08 | agadmin | Status | Applied => Closed |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |