This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

mail: add mailsync script

+18 -6
+18 -6
2configs/mail.nix
··· 207 207 bind index \Cr noop 208 208 macro index \Cr \ 209 209 "<enter-command>unset wait_key<enter> \ 210 - <shell-escape>${pkgs.writeDash "muchsync" '' 211 - set -efu 212 - until ${pkgs.muchsync}/bin/muchsync -F lass@green.s; do 213 - sleep 1 214 - done 215 - ''}<enter> 210 + <shell-escape>mailsync<enter> 216 211 217 212 #killed 218 213 bind index d noop ··· 310 305 pkgs.muchsync 311 306 tag-new-mails 312 307 tag-old-mails 308 + (pkgs.writeShellApplication { 309 + name = "mailsync"; 310 + meta.description = "sync mails with muchsync with green"; 311 + runtimeInputs = [ pkgs.muchsync ]; 312 + text = '' 313 + if ping -W2 -c1 green.s; then 314 + muchsync lass@green.s 315 + elif ping -W2 -c1 green.n; then 316 + muchsync lass@green.n 317 + elif ping -W2 -c1 green.r; then 318 + muchsync lass@green.r 319 + else 320 + echo no green host reachable 321 + exit 1 322 + fi 323 + ''; 324 + }) 313 325 ]; 314 326 }