aboutsummaryrefslogtreecommitdiff
path: root/tests/inject_emails.sh
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-12-27 18:33:06 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-12-27 18:33:06 +0100
commitccc9b6abb66ebda0b91b4e21f8ec2fb2e87390f7 (patch)
tree985f9d136a981ec7cc43984c976c60e9295340d5 /tests/inject_emails.sh
parent7744625c18aff5990a792bb13a44b60d8c4d4fc5 (diff)
downloadaerogramme-ccc9b6abb66ebda0b91b4e21f8ec2fb2e87390f7.tar.gz
aerogramme-ccc9b6abb66ebda0b91b4e21f8ec2fb2e87390f7.zip
add a --dev mode
Diffstat (limited to 'tests/inject_emails.sh')
-rwxr-xr-xtests/inject_emails.sh21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/inject_emails.sh b/tests/inject_emails.sh
deleted file mode 100755
index a021170..0000000
--- a/tests/inject_emails.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-
-SCRIPT=$0
-USER=$1
-SUBFOLDER=$2
-cd $(dirname $SCRIPT)
-
-function mail_lmtp_session (
- echo -e "LHLO localhost\r"
- for mail in $(find emails/$SUBFOLDER -name '*.eml' ); do
- echo -e "MAIL FROM: <alex@adnab.me>\r"
- echo -e "RCPT TO: $USER\r"
- echo -e "DATA\r"
- cat $mail
- echo -e "\r"
- echo -e ".\r"
- done
- echo -e "QUIT\r"
-)
-
-mail_lmtp_session | tee >(nc localhost 12024)