Bug 212276 - /etc/periodic/daily/440.status-mailq exit code is 1 when mail queue is empty
Summary: /etc/periodic/daily/440.status-mailq exit code is 1 when mail queue is empty
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 10.3-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2016-08-31 01:40 UTC by Chris Stankevitz
Modified: 2016-08-31 13:47 UTC (History)
0 users

See Also:


Attachments
fix check for empty queue string (521 bytes, patch)
2016-08-31 01:40 UTC, Chris Stankevitz
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Stankevitz 2016-08-31 01:40:57 UTC
Created attachment 174238 [details]
fix check for empty queue string

mailq status returns $1 even when queue is empty.

Attached patch fixes problem on my system, which may be entirely because I use postfix instead of sendmail.  I'm not sure how postfix interacts with /usr/bin/mailq if at all.