From 4b58ea23a8dc0a350eccd7cee08ef258f2f14663 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@freedombone.net>
Date: Tue, 13 Feb 2018 19:21:14 +0000
Subject: [PATCH] bdsmail file permissions

---
 src/freedombone-app-bdsmail | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/freedombone-app-bdsmail b/src/freedombone-app-bdsmail
index 5a756e3eb..7e407ca38 100755
--- a/src/freedombone-app-bdsmail
+++ b/src/freedombone-app-bdsmail
@@ -356,6 +356,7 @@ function install_bdsmail {
     echo "    to_username=\$(echo \"\$to_line\" | awk -F ' ' '{print \$2}' | awk -F '@' '{print \$1}')" >> /usr/bin/bdsmail_distribute
     echo '    if [ -d /home/$to_username/Maildir/i2p/new ]; then' >> /usr/bin/bdsmail_distribute
     echo '        chown $to_username:$to_username $filename' >> /usr/bin/bdsmail_distribute
+    echo '        chmod 600 $filename' >> /usr/bin/bdsmail_distribute
     echo '        mv $filename /home/$to_username/Maildir/i2p/new' >> /usr/bin/bdsmail_distribute
     echo '    fi' >> /usr/bin/bdsmail_distribute
     echo 'done' >> /usr/bin/bdsmail_distribute
-- 
GitLab