From ba8938feaac693f9e1ec05367b42ea5327a74541 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Fri, 25 Mar 2022 09:00:32 -0300 Subject: [PATCH] Add smtp() function --- dotfiles/.zshrc_aliases | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dotfiles/.zshrc_aliases b/dotfiles/.zshrc_aliases index 839c931..bda48a8 100644 --- a/dotfiles/.zshrc_aliases +++ b/dotfiles/.zshrc_aliases @@ -36,6 +36,10 @@ gac() { git commit -m "$var" } +smtp() { + cat "$1" | while read -r LINE; do sleep 0.1; echo "$LINE"; done | nc "$2" "${3:-25}" +} + alias exiftcl='exiftool -all=' alias exift='exiftool'