TF-3674 Add integration test for reply email
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
Return-Path: <emma@example.com>
|
||||
MIME-Version: 1.0
|
||||
References: <Mime4j.4c.b3b452d18f0d0ef9.192d67aaafc@example.com>
|
||||
Subject: Reply all email
|
||||
From: emma@example.com
|
||||
To: "bob" <bob@example.com>
|
||||
Cc: "alice" <alice@example.com>
|
||||
Bcc: "brian" <brian@example.com>
|
||||
Reply-To: emma-reply-to@example.com
|
||||
Date: Tue, 17 Dec 2024 16:31:00 +0000
|
||||
Message-ID: <Mime4j.4e.728b2b72b23cc182.192d67ae03c@example.com>
|
||||
User-Agent: Twake-Mail/0.13.2 Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15;
|
||||
rv:131.0) Gecko/20100101 Firefox/131.0
|
||||
Content-Type: multipart/alternative;
|
||||
boundary="-=Part.4f.450e1cfbcd355387.192d67ae03d.c367d8042fea24dd=-"
|
||||
List-Post: <mailto:emma-reply-to-list@example.com>
|
||||
|
||||
---=Part.4f.450e1cfbcd355387.192d67ae03d.c367d8042fea24dd=-
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
Accept-Language: fr-FR, en-US, vi-VN, ru-RU, ar-TN, it-IT
|
||||
Content-Language: en-US
|
||||
|
||||
Reply all email
|
||||
|
||||
Invite you in to a meeting: Event OPEN TECH TALK: INNOVATION FOR THE TWAKE WORKPLACE
|
||||
|
||||
Our 3rd Open Tech Talk in 2024!
|
||||
|
||||
► Topic: "Enhancing Multi-Tenancy Security"
|
||||
► Topic: "Bringing Desktop Synchronization into TDrive"
|
||||
► Topic: "Websocket: Real-time Update
|
||||
|
||||
We are waiting for you!
|
||||
|
||||
---=Part.4f.450e1cfbcd355387.192d67ae03d.c367d8042fea24dd=---
|
||||
@@ -0,0 +1,35 @@
|
||||
Return-Path: <emma@example.com>
|
||||
MIME-Version: 1.0
|
||||
References: <Mime4j.4c.b3b452d18f0d0ef9.192d67aaafc@example.com>
|
||||
Subject: Reply to list email
|
||||
From: emma@example.com
|
||||
To: "bob" <bob@example.com>
|
||||
Cc: "alice" <alice@example.com>
|
||||
Bcc: "brian" <brian@example.com>
|
||||
Date: Tue, 17 Dec 2024 16:31:00 +0000
|
||||
Message-ID: <Mime4j.4e.728b2b72b23cc182.192d67ae03c@example.com>
|
||||
User-Agent: Twake-Mail/0.13.2 Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15;
|
||||
rv:131.0) Gecko/20100101 Firefox/131.0
|
||||
Content-Type: multipart/alternative;
|
||||
boundary="-=Part.4f.450e1cfbcd355387.192d67ae03d.c367d8042fea24dd=-"
|
||||
List-Post: <mailto:emma-reply-to-list@example.com>
|
||||
|
||||
---=Part.4f.450e1cfbcd355387.192d67ae03d.c367d8042fea24dd=-
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
Accept-Language: fr-FR, en-US, vi-VN, ru-RU, ar-TN, it-IT
|
||||
Content-Language: en-US
|
||||
|
||||
Reply to list email
|
||||
|
||||
Invite you in to a meeting: Event OPEN TECH TALK: INNOVATION FOR THE TWAKE WORKPLACE
|
||||
|
||||
Our 3rd Open Tech Talk in 2024!
|
||||
|
||||
► Topic: "Enhancing Multi-Tenancy Security"
|
||||
► Topic: "Bringing Desktop Synchronization into TDrive"
|
||||
► Topic: "Websocket: Real-time Update
|
||||
|
||||
We are waiting for you!
|
||||
|
||||
---=Part.4f.450e1cfbcd355387.192d67ae03d.c367d8042fea24dd=---
|
||||
@@ -0,0 +1,36 @@
|
||||
Return-Path: <emma@example.com>
|
||||
MIME-Version: 1.0
|
||||
References: <Mime4j.4c.b3b452d18f0d0ef9.192d67aaafc@example.com>
|
||||
Subject: Reply email with Reply-To
|
||||
From: emma@example.com
|
||||
To: "bob" <bob@example.com>
|
||||
Cc: "alice" <alice@example.com>
|
||||
Bcc: "brian" <brian@example.com>
|
||||
Reply-To: emma-reply-to@example.com
|
||||
Date: Tue, 17 Dec 2024 16:31:00 +0000
|
||||
Message-ID: <Mime4j.4e.728b2b72b23cc182.192d67ae03c@example.com>
|
||||
User-Agent: Twake-Mail/0.13.2 Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15;
|
||||
rv:131.0) Gecko/20100101 Firefox/131.0
|
||||
Content-Type: multipart/alternative;
|
||||
boundary="-=Part.4f.450e1cfbcd355387.192d67ae03d.c367d8042fea24dd=-"
|
||||
List-Post: <mailto:emma-reply-to-list@example.com>
|
||||
|
||||
---=Part.4f.450e1cfbcd355387.192d67ae03d.c367d8042fea24dd=-
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
Accept-Language: fr-FR, en-US, vi-VN, ru-RU, ar-TN, it-IT
|
||||
Content-Language: en-US
|
||||
|
||||
Reply email with Reply-To
|
||||
|
||||
Invite you in to a meeting: Event OPEN TECH TALK: INNOVATION FOR THE TWAKE WORKPLACE
|
||||
|
||||
Our 3rd Open Tech Talk in 2024!
|
||||
|
||||
► Topic: "Enhancing Multi-Tenancy Security"
|
||||
► Topic: "Bringing Desktop Synchronization into TDrive"
|
||||
► Topic: "Websocket: Real-time Update
|
||||
|
||||
We are waiting for you!
|
||||
|
||||
---=Part.4f.450e1cfbcd355387.192d67ae03d.c367d8042fea24dd=---
|
||||
@@ -0,0 +1,34 @@
|
||||
Return-Path: <emma@example.com>
|
||||
MIME-Version: 1.0
|
||||
References: <Mime4j.4c.b3b452d18f0d0ef9.192d67aaafc@example.com>
|
||||
Subject: Reply email without Reply-To
|
||||
From: emma@example.com
|
||||
To: "bob" <bob@example.com>
|
||||
Cc: "alice" <alice@example.com>
|
||||
Bcc: "brian" <brian@example.com>
|
||||
Date: Tue, 17 Dec 2024 16:31:00 +0000
|
||||
Message-ID: <Mime4j.4e.728b2b72b23cc182.192d67ae03c@example.com>
|
||||
User-Agent: Twake-Mail/0.13.2 Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15;
|
||||
rv:131.0) Gecko/20100101 Firefox/131.0
|
||||
Content-Type: multipart/alternative;
|
||||
boundary="-=Part.4f.450e1cfbcd355387.192d67ae03d.c367d8042fea24dd=-"
|
||||
|
||||
---=Part.4f.450e1cfbcd355387.192d67ae03d.c367d8042fea24dd=-
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
Accept-Language: fr-FR, en-US, vi-VN, ru-RU, ar-TN, it-IT
|
||||
Content-Language: en-US
|
||||
|
||||
Reply email without Reply-To
|
||||
|
||||
Invite you in to a meeting: Event OPEN TECH TALK: INNOVATION FOR THE TWAKE WORKPLACE
|
||||
|
||||
Our 3rd Open Tech Talk in 2024!
|
||||
|
||||
► Topic: "Enhancing Multi-Tenancy Security"
|
||||
► Topic: "Bringing Desktop Synchronization into TDrive"
|
||||
► Topic: "Websocket: Real-time Update
|
||||
|
||||
We are waiting for you!
|
||||
|
||||
---=Part.4f.450e1cfbcd355387.192d67ae03d.c367d8042fea24dd=---
|
||||
@@ -30,11 +30,4 @@ Our 3rd Open Tech Talk in 2024!
|
||||
|
||||
We are waiting for you!
|
||||
|
||||
---=Part.4f.450e1cfbcd355387.192d67ae03d.c367d8042fea24dd=-
|
||||
Content-Type: text/html; charset=UTF-8
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
Accept-Language: fr-FR, en-US, vi-VN, ru-RU, ar-TN, it-IT
|
||||
Content-Language: en-US
|
||||
|
||||
|
||||
---=Part.4f.450e1cfbcd355387.192d67ae03d.c367d8042fea24dd=---
|
||||
|
||||
@@ -30,11 +30,4 @@ Our 3rd Open Tech Talk in 2024!
|
||||
|
||||
We are waiting for you!
|
||||
|
||||
---=Part.4f.450e1cfbcd355387.192d67ae03d.c367d8042fea24dd=-
|
||||
Content-Type: text/html; charset=UTF-8
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
Accept-Language: fr-FR, en-US, vi-VN, ru-RU, ar-TN, it-IT
|
||||
Content-Language: en-US
|
||||
|
||||
|
||||
---=Part.4f.450e1cfbcd355387.192d67ae03d.c367d8042fea24dd=---
|
||||
|
||||
@@ -30,11 +30,4 @@ Our 3rd Open Tech Talk in 2024!
|
||||
|
||||
We are waiting for you!
|
||||
|
||||
---=Part.4f.450e1cfbcd355387.192d67ae03d.c367d8042fea24dd=-
|
||||
Content-Type: text/html; charset=UTF-8
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
Accept-Language: fr-FR, en-US, vi-VN, ru-RU, ar-TN, it-IT
|
||||
Content-Language: en-US
|
||||
|
||||
|
||||
---=Part.4f.450e1cfbcd355387.192d67ae03d.c367d8042fea24dd=---
|
||||
|
||||
@@ -30,11 +30,4 @@ Our 3rd Open Tech Talk in 2024!
|
||||
|
||||
We are waiting for you!
|
||||
|
||||
---=Part.4f.450e1cfbcd355387.192d67ae03d.c367d8042fea24dd=-
|
||||
Content-Type: text/html; charset=UTF-8
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
Accept-Language: fr-FR, en-US, vi-VN, ru-RU, ar-TN, it-IT
|
||||
Content-Language: en-US
|
||||
|
||||
|
||||
---=Part.4f.450e1cfbcd355387.192d67ae03d.c367d8042fea24dd=---
|
||||
|
||||
@@ -30,11 +30,4 @@ Our 3rd Open Tech Talk in 2024!
|
||||
|
||||
We are waiting for you!
|
||||
|
||||
---=Part.4f.450e1cfbcd355387.192d67ae03d.c367d8042fea24dd=-
|
||||
Content-Type: text/html; charset=UTF-8
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
Accept-Language: fr-FR, en-US, vi-VN, ru-RU, ar-TN, it-IT
|
||||
Content-Language: en-US
|
||||
|
||||
|
||||
---=Part.4f.450e1cfbcd355387.192d67ae03d.c367d8042fea24dd=---
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Define users and folders
|
||||
users=("alice" "bob" "brian" "charlotte" "david" "emma")
|
||||
bobFolders=("Search Emails" "Forward Emails" "Disposition" "MailBase64" "Calendar")
|
||||
bobFolders=("Search Emails" "Forward Emails" "Disposition" "MailBase64" "Calendar" "Reply Emails")
|
||||
|
||||
# Add users
|
||||
for user in "${users[@]}"; do
|
||||
@@ -66,4 +66,13 @@ james-cli ImportEml \#private "bob@example.com" "MailBase64" "/root/conf/integra
|
||||
# For test calendar event
|
||||
# Import email into 'Calendar' folder for user Bob
|
||||
echo "Importing calendar eml into 'Calendar' folder for user bob"
|
||||
james-cli ImportEml \#private "bob@example.com" "Calendar" "/root/conf/integration_test/eml/calendar/calendar_counter.eml"
|
||||
james-cli ImportEml \#private "bob@example.com" "Calendar" "/root/conf/integration_test/eml/calendar/calendar_counter.eml"
|
||||
|
||||
# For test reply email
|
||||
# Import emails into 'Reply Emails' folder for user Bob
|
||||
replyEmailsEML=("reply-all.eml" "reply-to-list.eml" "with-reply-to.eml" "without-reply-to.eml")
|
||||
|
||||
for eml in "${replyEmailsEML[@]}"; do
|
||||
echo "Importing $eml into 'Reply Emails' folder for user bob"
|
||||
james-cli ImportEml \#private "bob@example.com" "Reply Emails" "/root/conf/integration_test/eml/reply_email/$eml"
|
||||
done
|
||||
Reference in New Issue
Block a user