diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-05-27 11:13:06 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-05-27 11:13:06 +0530 |
| commit | 4242a01983eb57ac44d5fcfbda75339d486ea4f1 (patch) | |
| tree | 3ba2952ec94b76fcbf88f326db4abe776abeb54f /modules/email/mailbox-sync.module.nix | |
| parent | 73a49b61fddb77107cb692fa70b8dc361952e556 (diff) | |
| download | nixos-config-4242a01983eb57ac44d5fcfbda75339d486ea4f1.tar.gz nixos-config-4242a01983eb57ac44d5fcfbda75339d486ea4f1.zip | |
Refactor email setup + add email sender to notification
Diffstat (limited to '')
| -rw-r--r-- | modules/email.home/mailbox-sync.module.nix (renamed from modules/email/mailbox-sync.module.nix) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/email/mailbox-sync.module.nix b/modules/email.home/mailbox-sync.module.nix index ad5f94e..bb7ee9d 100644 --- a/modules/email/mailbox-sync.module.nix +++ b/modules/email.home/mailbox-sync.module.nix @@ -10,10 +10,10 @@ let notify-script = '' emails=$(${notmuch} search --format=json '${cfg.notify.filter}' \ - | ${jq} -r '.[0:5] | map("* " + .subject + " (tag: " + (.tags | join(" ")) + ")") | join("\n\n")'); + | ${jq} -r '.[0:5] | map("— " + .subject + "\n" + .authors + "\n(tag: " + (.tags | join(" ")) + ")") | join("\n\n")'); # Notify - ${notify-send} --app-name=notmuch "New mail baybey ($new_mail_count)" "$emails"; + ${notify-send} --app-name=notmuch "Read your mail dumbass ($new_mail_count)" "\n$emails"; ''; sync-script = '' |
