about summary refs log tree commit diff
path: root/pkgs/applications/networking/msmtp
diff options
context:
space:
mode:
authorRuben Maher <ruben@maher.fyi>2022-06-13 10:13:59 +0900
committerRuben Maher <ruben@maher.fyi>2022-06-13 10:13:59 +0900
commit1a96f49e8df0345b8fa3364fa50397ddfa61020b (patch)
tree02b4d46f767d574c66e66b7ddef1b5fddbb3839e /pkgs/applications/networking/msmtp
parent7527d53617486517f4a6ce8f252ef549139c9633 (diff)
downloadnixlib-1a96f49e8df0345b8fa3364fa50397ddfa61020b.tar
nixlib-1a96f49e8df0345b8fa3364fa50397ddfa61020b.tar.gz
nixlib-1a96f49e8df0345b8fa3364fa50397ddfa61020b.tar.bz2
nixlib-1a96f49e8df0345b8fa3364fa50397ddfa61020b.tar.lz
nixlib-1a96f49e8df0345b8fa3364fa50397ddfa61020b.tar.xz
nixlib-1a96f49e8df0345b8fa3364fa50397ddfa61020b.tar.zst
nixlib-1a96f49e8df0345b8fa3364fa50397ddfa61020b.zip
msmtp: 1.8.19 -> 1.8.20
Diffstat (limited to 'pkgs/applications/networking/msmtp')
-rw-r--r--pkgs/applications/networking/msmtp/default.nix4
-rw-r--r--pkgs/applications/networking/msmtp/paths.patch9
2 files changed, 7 insertions, 6 deletions
diff --git a/pkgs/applications/networking/msmtp/default.nix b/pkgs/applications/networking/msmtp/default.nix
index 3bcbdf0cf02b..418a74a62a37 100644
--- a/pkgs/applications/networking/msmtp/default.nix
+++ b/pkgs/applications/networking/msmtp/default.nix
@@ -9,11 +9,11 @@ let
 
 in stdenv.mkDerivation rec {
   pname = "msmtp";
-  version = "1.8.19";
+  version = "1.8.20";
 
   src = fetchurl {
     url = "https://marlam.de/${pname}/releases/${pname}-${version}.tar.xz";
-    sha256 = "sha256-NKHhmBF2h02+TuZu4NkQPJCYmqTc3Ehh5N4Fzn5EUms=";
+    sha256 = "sha256-2TriqvwPSK99ydCzlN8buABYi4tOjQltizzyJTROsRE=";
   };
 
   patches = [
diff --git a/pkgs/applications/networking/msmtp/paths.patch b/pkgs/applications/networking/msmtp/paths.patch
index 707163bff0c9..26ee6976d505 100644
--- a/pkgs/applications/networking/msmtp/paths.patch
+++ b/pkgs/applications/networking/msmtp/paths.patch
@@ -21,15 +21,16 @@ index bdb4fb8..1363a67 100755
  #[ -x "$MSMTP" ] || \
  #  log -e 1 "msmtpq : can't find the msmtp executable [ $MSMTP ]"   # if not found - complain ; quit
  ##
-@@ -70,9 +70,8 @@ MSMTP=msmtp
+@@ -70,9 +70,9 @@ MSMTP=msmtp
  ##            ( chmod 0700 msmtp.queue )
  ##
  ## the queue dir - modify this to reflect where you'd like it to be  (no quotes !!)
 -Q=~/.msmtp.queue
--[ -d "$Q" ] || \
--  err '' "msmtpq : can't find msmtp queue directory [ $Q ]" ''     # if not present - complain ; quit
+-[ -d "$Q" ] || mkdir -m 0700 "$Q" || \
+-  err '' "msmtpq : can't find or create msmtp queue directory [ $Q ]" ''     # if not present - complain ; quit
 +Q=${MSMTP_QUEUE:-~/.msmtp.queue}
-+test -d "$Q" || mkdir -p "$Q"
++[ -d "$Q" ] || mkdir -m 0700 -p "$Q" || \
++   err '' "msmtpq : can't find or create msmtp queue directory [ $Q ]" ''     # if not present - complain ; quit
  ##
  ## set the queue log file var to the location of the msmtp queue log file
  ##   where it is or where you'd like it to be