aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-08-03 16:00:44 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-08-03 16:00:44 +0200
commit0e45eb9a6953b02d422f9d2144c8229962ac0b40 (patch)
treed36ef9398c191ea1015c51622ad7a100be0dc734 /tests
parent5015b98db8bd231f2facc5692b881f78194af8e9 (diff)
downloadaerogramme-0e45eb9a6953b02d422f9d2144c8229962ac0b40.tar.gz
aerogramme-0e45eb9a6953b02d422f9d2144c8229962ac0b40.zip
Update documentation
Diffstat (limited to 'tests')
-rwxr-xr-xtests/inject_emails.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/inject_emails.sh b/tests/inject_emails.sh
index 1b1f5c7..a021170 100755
--- a/tests/inject_emails.sh
+++ b/tests/inject_emails.sh
@@ -1,12 +1,15 @@
#!/bin/sh
-cd $(dirname $0)
+SCRIPT=$0
+USER=$1
+SUBFOLDER=$2
+cd $(dirname $SCRIPT)
function mail_lmtp_session (
echo -e "LHLO localhost\r"
- for mail in $(find emails -name '*.eml'); do
+ for mail in $(find emails/$SUBFOLDER -name '*.eml' ); do
echo -e "MAIL FROM: <alex@adnab.me>\r"
- echo -e "RCPT TO: <lx@staging.deuxfleurs.org>\r"
+ echo -e "RCPT TO: $USER\r"
echo -e "DATA\r"
cat $mail
echo -e "\r"