From 0e45eb9a6953b02d422f9d2144c8229962ac0b40 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Wed, 3 Aug 2022 16:00:44 +0200 Subject: Update documentation --- tests/inject_emails.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tests') 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: \r" - echo -e "RCPT TO: \r" + echo -e "RCPT TO: $USER\r" echo -e "DATA\r" cat $mail echo -e "\r" -- cgit v1.2.3