Displaying 1 result from an estimated 1 matches for "mailasgpg".
2013 Feb 10
1
Patch to add gpg support to logcheck.
...==========================================================
RCS file: /usr/sbin/logcheck,v
retrieving revision 1.1
diff -u -r1.1 /usr/sbin/logcheck
--- /usr/sbin/logcheck 2013/02/10 04:17:53 1.1
+++ /usr/sbin/logcheck 2013/02/10 05:11:26
@@ -83,6 +83,7 @@
LOGCHECKDEBUG=0
MAILOUT=0
MAILASATTACH=0
+MAILASGPG=0
NOCLEANUP=0
REBOOT=0
FQDN=0
@@ -174,7 +175,13 @@
$(export)
EOF
- } | eval mime-construct $MIMECONSTRUCTARGS \
+ } | if [ "$MAILASGPG" -eq 1 ]; then
+ debug "Sending error as gpg"
+ mime-construct $MIMECONSTRUCTARGS --subpart \
+ --file - | {
+ gpg --encrypt --b...