Re: Sendmail question

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

 



Terry Polzin <foxec208@xxxxxxxxxx> writes:
> Is there a way to configure sendmail NOT to send messages with empty
> bodies?

Sendmail is an MTA.  It isn't a good idea for the MTA to second guess
intentions.  Yes, some other OS's might do things that way, but that
isn't the un*x way.  If you have a program that sometimes generates
output that should be mailed off you can easily have it capture the
output in a file and only mail that file if the file is no-zero.

    programname > /tmp/log$$ 2>&1
    if [ -n /tmp/log$$ ]
    then
            /bin/mail -s "programname run at $(date)" username
    fi
    /bin/rm /tmp/log$$

-- 
Wolfgang S. Rupprecht      http://www.wsrcc.com/wolfgang/      (IPv6-only)
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux