TF-3349 Add integration test for forward email
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
Return-Path: <emma@example.com>
|
||||
MIME-Version: 1.0
|
||||
References: <Mime4j.4c.b3b452d18f0d0ef9.192d67aaafc@example.com>
|
||||
Subject: Fwd: Forward email to Bob
|
||||
From: emma@example.com
|
||||
To: "bob@example.com" <bob@example.com>
|
||||
Cc: "alice@example.com" <alice@example.com>
|
||||
Bcc: "brian@example.com" <brian@example.com>
|
||||
Reply-To: emma@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
|
||||
|
||||
Forward email to Bob
|
||||
|
||||
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=-
|
||||
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=---
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Define users and folders
|
||||
users=("alice" "bob" "brian" "charlotte" "david" "emma")
|
||||
bobFolders=("Search Emails" "Forward Emails")
|
||||
|
||||
# Add users
|
||||
for user in "${users[@]}"; do
|
||||
james-cli AddUser "$user@example.com" "$user"
|
||||
done
|
||||
|
||||
# Create folders for user Bob
|
||||
for folderName in "${bobFolders[@]}"; do
|
||||
echo "Creating $folderName folder for user bob"
|
||||
james-cli CreateMailbox \#private "bob@example.com" "$folderName" &
|
||||
done
|
||||
|
||||
# For test search email with sort order
|
||||
# Import emails into 'Search Emails' folder for user Bob
|
||||
for eml in {0..4}; do
|
||||
echo "Importing $eml.eml into 'Search Emails' folder for user bob"
|
||||
james-cli ImportEml \#private "bob@example.com" "Search Emails" "/root/conf/integration_test/eml/search_email_with_sort_order/$eml.eml" &
|
||||
done
|
||||
|
||||
# For test forward email
|
||||
# Import emails into 'Forward Emails' folder for user Bob
|
||||
echo "Importing 0.eml into 'Forward Emails' folder for user bob"
|
||||
james-cli ImportEml \#private "bob@example.com" "Forward Emails" "/root/conf/integration_test/eml/forward_email/0.eml"
|
||||
@@ -1,18 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Define users and folders
|
||||
users=("alice" "bob" "brian" "charlotte" "david" "emma")
|
||||
|
||||
# Add users
|
||||
for user in "${users[@]}"; do
|
||||
james-cli AddUser "$user@example.com" "$user"
|
||||
done
|
||||
|
||||
# Create search folder for user Bob
|
||||
james-cli CreateMailbox \#private "bob@example.com" "search"
|
||||
|
||||
# Import emails into search folder for user Bob
|
||||
for eml in {0..4}; do
|
||||
echo "Importing $eml.eml into search folder for user bob"
|
||||
james-cli ImportEml \#private "bob@example.com" "search" "/root/conf/integration_test/search_email_with_sort_order/eml/$eml.eml" &
|
||||
done
|
||||
Reference in New Issue
Block a user