Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
backend-tests: Update "private message" or "PM" to "direct message".
Lauryn Menardd53b854a7c77
diff --git a/zerver/tests/test_drafts.py b/zerver/tests/test_drafts.pyindex 614a295c1ef..9fefe2560b8 100644--- a/zerver/tests/test_drafts.py+++ b/zerver/tests/test_drafts.py@@ -82,11 +82,12 @@ class DraftCreationTests(ZulipTestCase):"timestamp": 1595479019,}]+ # For direct messages, the topic should be ignored.expected_draft_dicts = [{"type": "private","to": [zoe.id],- "topic": "", # For private messages the topic should be ignored.+ "topic": "","content": "What if we made it possible to sync drafts in Zulip?","timestamp": 1595479019,}@@ -105,11 +106,12 @@ class DraftCreationTests(ZulipTestCase):"timestamp": 1595479019,}]+ # For direct messages, the topic should be ignored.expected_draft_dicts = [{"type": "private","to": [zoe.id, othello.id],- "topic": "", # For private messages the topic should be ignored.+ "topic": "","content": "What if we made it possible to sync drafts in Zulip?","timestamp": 1595479019,}@@ -129,21 +131,21 @@ class DraftCreationTests(ZulipTestCase):"topic": "sync drafts","content": "Let's add backend support for syncing drafts.","timestamp": 1595479019,- }, # Stream message draft+ },{"type": "private","to": [zoe.id],"topic": "","content": "What if we made it possible to sync drafts in Zulip?","timestamp": 1595479020,- }, # Private message draft+ },{"type": "private","to": [zoe.id, othello.id],"topic": "","content": "What if we made it possible to sync drafts in Zulip?","timestamp": 1595479021,- }, # Private group message draft+ },]self.create_and_check_drafts_for_success(draft_dicts)diff --git a/zerver/tests/test_email_mirror.py b/zerver/tests/test_email_mirror.pyindex a49c8fa1b58..6abe7000778 100644--- a/zerver/tests/test_email_mirror.py+++ b/zerver/tests/test_email_mirror.py@@ -1003,9 +1003,9 @@ class TestStreamEmailMessagesEmptyBody(ZulipTestCase):class TestMissedMessageEmailMessages(ZulipTestCase):def test_receive_missed_personal_message_email_messages(self) -> None:- # build dummy messages for message notification email reply- # have Hamlet send Othello a PM. Othello will reply via email- # Hamlet will receive the message.+ # Build dummy messages for message notification email reply.+ # Have Hamlet send Othello a direct message. Othello will+ # reply via email Hamlet will receive the message.self.login("hamlet")othello = self.example_user("othello")result = self.client_post(@@ -1045,9 +1045,10 @@ class TestMissedMessageEmailMessages(ZulipTestCase):self.assertEqual(message.recipient.type, Recipient.PERSONAL)def test_receive_missed_huddle_message_email_messages(self) -> None:- # build dummy messages for message notification email reply- # have Othello send Iago and Cordelia a PM. Cordelia will reply via email- # Iago and Othello will receive the message.+ # Build dummy messages for message notification email reply.+ # Have Othello send Iago and Cordelia a group direct message.+ # Cordelia will reply via email Iago and Othello will receive+ # the message.self.login("othello")cordelia = self.example_user("cordelia")iago = self.example_user("iago")diff --git a/zerver/tests/test_email_notifications.py b/zerver/tests/test_email_notifications.pyindex 9701e5e08c1..d59f16847a6 100644--- a/zerver/tests/test_email_notifications.py+++ b/zerver/tests/test_email_notifications.py@@ -1435,7 +1435,7 @@ class TestMissedMessages(ZulipTestCase):msg_id = self.send_personal_message(cordelia,self.example_user("hamlet"),- "Let's test PM link in email notifications",+ "Let's test a direct message link in email notifications",)encoded_name = "Cordelia,-Lear's-daughter"@@ -1483,7 +1483,7 @@ class TestMissedMessages(ZulipTestCase):assert isinstance(mail.outbox[2], EmailMultiAlternatives)assert isinstance(mail.outbox[2].alternatives[0][0], str)self.assertEqual("> Hello\n\n--\n\nReply", mail.outbox[2].body[:18])- # Sender name is not appended to message for PM missed messages+ # Sender name is not appended to message for missed direct messagesself.assertIn(">\n \n <div><p>Hello</p></div>\n",mail.outbox[2].alternatives[0][0],@@ -1816,7 +1816,7 @@ class TestMissedMessages(ZulipTestCase):[{"message_id": stream_mentioned_message_id, "trigger": "mentioned"}],)- # Private message should soft reactivate the user+ # Direct message should soft reactivate the userwith self.soft_deactivate_and_check_long_term_idle(hamlet, expected=False):# Soft reactivate the user by sending a personal messagepersonal_message_id = self.send_personal_message(othello, hamlet, "Message")diff --git a/zerver/tests/test_event_queue.py b/zerver/tests/test_event_queue.pyindex 0791bbb89ee..5455fc17f7a 100644--- a/zerver/tests/test_event_queue.py+++ b/zerver/tests/test_event_queue.py@@ -221,8 +221,8 @@ class MissedMessageHookTest(ZulipTestCase):already_notified={"email_notified": False, "push_notified": False},)- def test_PM(self) -> None:- # By default, email and push notifications should be sent for PMs+ def test_direct_message(self) -> None:+ # By default, email and push notifications should be sent for direct messagesmsg_id = self.send_personal_message(self.iago, self.user_profile)with mock.patch("zerver.tornado.event_queue.maybe_enqueue_notifications") as mock_enqueue:missedmessage_hook(self.user_profile.id, self.client_descriptor, True)@@ -239,7 +239,8 @@ class MissedMessageHookTest(ZulipTestCase):)def test_enable_offline_email_notifications_setting(self) -> None:- # When `enable_offline_email_notifications` is off, email notifications should not be sent for PMs+ # When `enable_offline_email_notifications` is off, email notifications+ # should not be sent for direct messagesdo_change_user_setting(self.user_profile, "enable_offline_email_notifications", False, acting_user=None)@@ -400,7 +401,7 @@ class MissedMessageHookTest(ZulipTestCase):)def test_wildcard_mentions_notify_global_setting_is_a_wrapper(self) -> None:- # If email notifications for PMs and mentions themselves have been turned off,+ # If email notifications for direct messages and mentions themselves have been turned off,# even turning on `wildcard_mentions_notify` should not send email notificationsdo_change_user_setting(self.user_profile, "enable_offline_email_notifications", False, acting_user=None@@ -964,7 +965,7 @@ class MissedMessageHookTest(ZulipTestCase):self.destroy_event_queue(hambot, self.client_descriptor.event_queue.id)self.client_descriptor = hamlet_client_descriptor- # Internal PMs+ # Internal direct messagesdef test_disable_external_notifications(self) -> None:# The disable_external_notifications parameter, used for messages sent by welcome bot,# should result in no email/push notifications being sent regardless of the message type.diff --git a/zerver/tests/test_events.py b/zerver/tests/test_events.pyindex dfb3dbe9738..a853fd0f739 100644--- a/zerver/tests/test_events.py+++ b/zerver/tests/test_events.py@@ -469,7 +469,7 @@ class NormalActionsTest(BaseAction):),)- # Verify private message editing - content only edit+ # Verify direct message editing - content only editpm = Message.objects.order_by("-id")[0]content = "new content"rendering_result = render_markdown(pm, content)@@ -3338,14 +3338,14 @@ class ScheduledMessagesEventsTest(BaseAction):self.verify_action(action)def test_private_scheduled_message_create_event(self) -> None:- # Create private scheduled message+ # Create direct scheduled messageaction = lambda: check_schedule_message(self.user_profile,get_client("website"),"private",[self.example_user("hamlet").id],None,- "Private message",+ "Direct message",convert_to_UTC(dateparser("2023-04-19 18:24:56")),self.user_profile.realm,)diff --git a/zerver/tests/test_import_export.py b/zerver/tests/test_import_export.pyindex 7c5c220218d..ddaf8306521 100644--- a/zerver/tests/test_import_export.py+++ b/zerver/tests/test_import_export.py@@ -558,7 +558,7 @@ class RealmImportExportTest(ExportFile):[self.example_user("cordelia"), self.example_user("ZOE"), self.example_user("othello")],)- # Create PMs+ # Create direct messagespm_a_msg_id = self.send_personal_message(self.example_user("AARON"), self.example_user("othello"))diff --git a/zerver/tests/test_message_edit.py b/zerver/tests/test_message_edit.pyindex 74d52e7f415..d57977a4663 100644--- a/zerver/tests/test_message_edit.py+++ b/zerver/tests/test_message_edit.py@@ -400,7 +400,7 @@ class EditMessageTest(EditMessageTestCase):user_profile, non_web_public_stream.name, content="non-web-public message")- # Generate a private message to use in verification.+ # Generate a direct message to use in verification.private_message_id = self.send_personal_message(user_profile, user_profile)invalid_message_id = private_message_id + 1000@@ -450,7 +450,7 @@ class EditMessageTest(EditMessageTestCase):response_dict = self.assert_json_success(result)self.assertEqual(response_dict["raw_content"], "web-public message")- # Verify private messages are rejected.+ # Verify direct messages are rejected.result = self.client_get("/json/messages/" + str(private_message_id))self.assert_json_error(result, "Not logged in: API authentication or user session required", 401diff --git a/zerver/tests/test_message_flags.py b/zerver/tests/test_message_flags.pyindex 024bff89efb..2d5ce17bfd7 100644--- a/zerver/tests/test_message_flags.py+++ b/zerver/tests/test_message_flags.py@@ -1283,7 +1283,7 @@ class MessageAccessTests(ZulipTestCase):),]- # Starring private messages you didn't receive fails.+ # Starring direct messages you didn't receive fails.self.login("cordelia")result = self.change_star(message_ids)self.assert_json_error(result, "Invalid message(s)")diff --git a/zerver/tests/test_message_send.py b/zerver/tests/test_message_send.pyindex 84ba88d94ac..6c2d7041a21 100644--- a/zerver/tests/test_message_send.py+++ b/zerver/tests/test_message_send.py@@ -840,7 +840,7 @@ class MessagePOSTTest(ZulipTestCase):def test_private_message_without_recipients(self) -> None:"""- Sending private message without recipients should fail+ Sending a direct message without recipients should fail"""self.login("hamlet")result = self.client_post(@@ -1855,7 +1855,7 @@ class PersonalMessageSendTest(ZulipTestCase):self, sender: UserProfile, receiver: UserProfile, content: str = "testcontent") -> None:"""- Send a private message from `sender_email` to `receiver_email` and check+ Send a direct message from `sender_email` to `receiver_email` and checkthat only those two parties actually received the message."""sender_messages = message_stream_count(sender)@@ -1916,7 +1916,7 @@ class PersonalMessageSendTest(ZulipTestCase):def test_non_ascii_personal(self) -> None:"""- Sending a PM containing non-ASCII characters succeeds.+ Sending a direct message containing non-ASCII characters succeeds."""self.login("hamlet")self.assert_personal(@@ -2208,15 +2208,16 @@ class TestCrossRealmPMs(ZulipTestCase):# cross-realm email, we need to hide this for now.support_bot = self.create_user(support_email)- # Users can PM themselves+ # Users can send a direct message to themselves.self.send_personal_message(user1, user1)assert_message_received(user1, user1)- # Users on the same realm can PM each other+ # Users on the same realm can send direct messages to each other.self.send_personal_message(user1, user1a)assert_message_received(user1a, user1)- # Cross-realm bots in the zulip.com realm can PM any realm+ # Cross-realm bots in the zulip.com realm can send a direct message+ # in any realm.# (They need lower level APIs to do this.)internal_send_private_message(sender=notification_bot,@@ -2225,7 +2226,8 @@ class TestCrossRealmPMs(ZulipTestCase):)assert_message_received(user2, notification_bot)- # All users can PM cross-realm bots in the zulip.com realm+ # All users can send a direct message to cross-realm bots in the+ # zulip.com realm.self.send_personal_message(user1, notification_bot)assert_message_received(notification_bot, user1)# Verify that internal_send_private_message can also successfully@@ -2236,43 +2238,48 @@ class TestCrossRealmPMs(ZulipTestCase):content="blabla",)assert_message_received(notification_bot, user2)- # Users can PM cross-realm bots on non-zulip realms.+ # Users can send a direct message to cross-realm bots on non-zulip+ # realms.# (The support bot represents some theoretical bot that we may# create in the future that does not have zulip.com as its realm.)self.send_personal_message(user1, support_bot)assert_message_received(support_bot, user1)- # Allow sending PMs to two different cross-realm bots simultaneously.+ # Allow sending direct messages to two different cross-realm bots+ # simultaneously.# (We don't particularly need this feature, but since users can- # already individually send PMs to cross-realm bots, we shouldn't- # prevent them from sending multiple bots at once. We may revisit- # this if it's a nuisance for huddles.)+ # already individually send direct messages to cross-realm bots,+ # we shouldn't prevent them from sending multiple bots at once.+ # We may revisit this if it's a nuisance for huddles.)self.send_huddle_message(user1, [notification_bot, support_bot])assert_message_received(notification_bot, user1)assert_message_received(support_bot, user1)- # Prevent old loophole where I could send PMs to other users as long- # as I copied a cross-realm bot from the same realm.+ # Prevent old loophole where I could send direct messages to other+ # users as long as I copied a cross-realm bot from the same realm.with assert_invalid_user():self.send_huddle_message(user1, [user3, support_bot])- # Users on three different realms can't PM each other,- # even if one of the users is a cross-realm bot.+ # Users on three different realms can't send direct messages to+ # each other, even if one of the users is a cross-realm bot.with assert_invalid_user():self.send_huddle_message(user1, [user2, notification_bot])with assert_invalid_user():self.send_huddle_message(notification_bot, [user1, user2])- # Users on the different realms cannot PM each other+ # Users on the different realms cannot send direct messages to+ # each other.with assert_invalid_user():self.send_personal_message(user1, user2)- # Users on non-zulip realms can't PM "ordinary" Zulip users+ # Users on non-zulip realms can't send direct messages to+ # "ordinary" Zulip users.with assert_invalid_user():self.send_personal_message(user1, self.example_user("hamlet"))- # Users on three different realms cannot PM each other+ # Users on three different realms cannot send direct messages+ # to each other.with assert_invalid_user():self.send_huddle_message(user1, [user2, user3])@@ -2477,8 +2484,8 @@ class CheckMessageTest(ZulipTestCase):self.assertEqual(ret.message.sender.id, sender.id)def test_bot_pm_feature(self) -> None:- """We send a PM to a bot's owner if their bot sends a message to- an unsubscribed stream"""+ """We send a direct message to a bot's owner if their bot sends a+ message to an unsubscribed stream"""parent = self.example_user("othello")bot = do_create_user(email="[email protected]",diff --git a/zerver/tests/test_mirror_users.py b/zerver/tests/test_mirror_users.pyindex f9930935209..2b4049434c2 100644--- a/zerver/tests/test_mirror_users.py+++ b/zerver/tests/test_mirror_users.py@@ -50,7 +50,7 @@ class MirroredMessageUsersTest(ZulipTestCase):return_value=[["sipbtest:*:20922:101:Fred Sipb,,,:/mit/sipbtest:/bin/athena/tcsh"]],)def test_zephyr_mirror_new_recipient(self, ignored: object) -> None:- """Test mirror dummy user creation for PM recipients"""+ """Test mirror dummy user creation for direct message recipients"""user = self.mit_user("starnine")sender = self.mit_user("sipbtest")new_user_email = "[email protected]"diff --git a/zerver/tests/test_muted_users.py b/zerver/tests/test_muted_users.pyindex bdcc41847e9..1c1a8b89052 100644--- a/zerver/tests/test_muted_users.py+++ b/zerver/tests/test_muted_users.py@@ -232,8 +232,8 @@ class MutedUsersTests(ZulipTestCase):# Have Cordelia send messages to Hamlet and Othello.stream_message = self.send_stream_message(cordelia, "general", "Spam in stream")huddle_message = self.send_huddle_message(cordelia, [hamlet, othello], "Spam in huddle")- pm_to_hamlet = self.send_personal_message(cordelia, hamlet, "Spam in PM")- pm_to_othello = self.send_personal_message(cordelia, othello, "Spam in PM")+ pm_to_hamlet = self.send_personal_message(cordelia, hamlet, "Spam in direct message")+ pm_to_othello = self.send_personal_message(cordelia, othello, "Spam in direct message")# These should be marked as read for Hamlet, since he has muted Cordelia.self.assert_usermessage_read_flag(hamlet, stream_message, True)@@ -259,8 +259,8 @@ class MutedUsersTests(ZulipTestCase):# Have Cordelia send messages to Hamlet and Othello.stream_message = self.send_stream_message(cordelia, "general", "Spam in stream")huddle_message = self.send_huddle_message(cordelia, [hamlet, othello], "Spam in huddle")- pm_to_hamlet = self.send_personal_message(cordelia, hamlet, "Spam in PM")- pm_to_othello = self.send_personal_message(cordelia, othello, "Spam in PM")+ pm_to_hamlet = self.send_personal_message(cordelia, hamlet, "Spam in direct message")+ pm_to_othello = self.send_personal_message(cordelia, othello, "Spam in direct message")# These messages are unreads for both Hamlet and Othello right now.self.assert_usermessage_read_flag(hamlet, stream_message, False)diff --git a/zerver/tests/test_notification_data.py b/zerver/tests/test_notification_data.pyindex 4f2d5cebaff..4f10281dc2a 100644--- a/zerver/tests/test_notification_data.py+++ b/zerver/tests/test_notification_data.py@@ -22,7 +22,7 @@ class TestNotificationData(ZulipTestCase):)self.assertFalse(user_data.is_push_notifiable(acting_user_id=acting_user_id, idle=True))- # Private message+ # Direct messageuser_data = self.create_user_notifications_data_object(user_id=user_id, pm_push_notify=True)self.assertEqual(user_data.get_push_notification_trigger(acting_user_id=acting_user_id, idle=True),@@ -162,7 +162,7 @@ class TestNotificationData(ZulipTestCase):)self.assertFalse(user_data.is_email_notifiable(acting_user_id=acting_user_id, idle=True))- # Private message+ # Direct messageuser_data = self.create_user_notifications_data_object(user_id=user_id, pm_email_notify=True)diff --git a/zerver/tests/test_push_notifications.py b/zerver/tests/test_push_notifications.pyindex 1e6cd8fd0e6..8d087ea084a 100644--- a/zerver/tests/test_push_notifications.py+++ b/zerver/tests/test_push_notifications.py@@ -1666,7 +1666,7 @@ class HandlePushNotificationTest(PushNotificationTest):{"message_id": stream_mentioned_message_id, "trigger": "mentioned"},)- # Private message should soft reactivate the user+ # Direct message should soft reactivate the userwith self.soft_deactivate_and_check_long_term_idle(self.user_profile, expected=False):# Soft reactivate the user by sending a personal messagepersonal_message_id = self.send_personal_message(othello, self.user_profile, "Message")diff --git a/zerver/tests/test_reactions.py b/zerver/tests/test_reactions.pyindex 2e14fb34409..42ff0228376 100644--- a/zerver/tests/test_reactions.py+++ b/zerver/tests/test_reactions.py@@ -608,7 +608,7 @@ class ReactionEventTest(ZulipTestCase):)self.assert_json_success(remove)- # Private message, event should go to both participants.+ # Direct message, event should go to both participants.private_message_id = self.send_personal_message(iago,hamlet,@@ -624,7 +624,7 @@ class ReactionEventTest(ZulipTestCase):event_user_ids = set(events[0]["users"])self.assertEqual(event_user_ids, {iago.id, hamlet.id})- # Group private message; event should go to all participants.+ # Group direct message; event should go to all participants.huddle_message_id = self.send_huddle_message(hamlet,[polonius, iago],diff --git a/zerver/tests/test_rocketchat_importer.py b/zerver/tests/test_rocketchat_importer.pyindex a1d8e7e893e..3ef3610c474 100644--- a/zerver/tests/test_rocketchat_importer.py+++ b/zerver/tests/test_rocketchat_importer.py@@ -852,7 +852,7 @@ class RocketChatImporter(ZulipTestCase):self.assertEqual(user_handler.get_user(zerver_attachments[0]["owner"])["email"], "[email protected]")- # TODO: Assert this for False after fixing the file permissions in PMs+ # TODO: Assert this for False after fixing the file permissions in direct messagesself.assertTrue(zerver_attachments[0]["is_realm_public"])self.assert_length(uploads_list, 1)@@ -974,7 +974,7 @@ class RocketChatImporter(ZulipTestCase):exported_usermessage_userprofiles = self.get_set(messages["zerver_usermessage"], "user_profile")- # Rocket.Cat is not subscribed to any recipient (stream/PMs) with messages.+ # Rocket.Cat is not subscribed to any recipient (stream/direct messages) with messages.self.assert_length(exported_usermessage_userprofiles, 5)exported_usermessage_messages = self.get_set(messages["zerver_usermessage"], "message")self.assertEqual(exported_usermessage_messages, exported_messages_id)diff --git a/zerver/tests/test_scheduled_messages.py b/zerver/tests/test_scheduled_messages.pyindex ccf1e1e5b80..7aeac98e71c 100644--- a/zerver/tests/test_scheduled_messages.py+++ b/zerver/tests/test_scheduled_messages.py@@ -513,7 +513,7 @@ class ScheduledMessageTest(ZulipTestCase):# Trying to edit `topic` for direct message is ignoredpayload = {- "topic": "Private message topic",+ "topic": "Direct message topic",}result = self.client_patch(f"/json/scheduled_messages/{scheduled_message_id}", payload)self.assert_json_success(result)diff --git a/zerver/tests/test_soft_deactivation.py b/zerver/tests/test_soft_deactivation.pyindex 90684267fe4..7142cb86816 100644--- a/zerver/tests/test_soft_deactivation.py+++ b/zerver/tests/test_soft_deactivation.py@@ -730,10 +730,10 @@ class SoftDeactivationMessageTest(ZulipTestCase):long_term_idle_user.save()assert_stream_message_not_sent_to_idle_user("User no email")- # Test sending a private message to soft deactivated user creates+ # Test sending a direct message to soft deactivated user creates# UserMessage row.soft_deactivated_user_msg_count = len(get_user_messages(long_term_idle_user))- message = "Test PM"+ message = "Test direct message"send_personal_message(message)assert_um_count(long_term_idle_user, soft_deactivated_user_msg_count + 1)assert_last_um_content(long_term_idle_user, message)diff --git a/zerver/tests/test_tutorial.py b/zerver/tests/test_tutorial.pyindex acfb8cbc260..c0931a5e89c 100644--- a/zerver/tests/test_tutorial.py+++ b/zerver/tests/test_tutorial.py@@ -180,6 +180,7 @@ class TutorialTests(ZulipTestCase):self.send_huddle_message(user1, [bot, user2], content)user1_messages = message_stream_count(user1)self.assertEqual(most_recent_message(user1).content, content)- # Welcome bot should still respond to initial PM after group PM.+ # Welcome bot should still respond to initial direct message+ # after group direct message.self.send_personal_message(user1, bot, content)self.assertEqual(message_stream_count(user1), user1_messages + 2)diff --git a/zerver/tests/test_upload.py b/zerver/tests/test_upload.pyindex 76d2441b884..6ee54dd6a95 100644--- a/zerver/tests/test_upload.py+++ b/zerver/tests/test_upload.py@@ -554,7 +554,7 @@ class FileUploadTest(UploadSerializeMixin, ZulipTestCase):self.assertFalse(Attachment.objects.get(path_id=d1_path_id).is_realm_public)self.assertFalse(Attachment.objects.get(path_id=d1_path_id).is_web_public)- # Then, have the owner PM it to another user, giving that other user access.+ # Then, have it in a direct message to another user, giving that other user access.body = f"Second message ...[zulip.txt](http://{host}/user_uploads/" + d1_path_id + ")"self.send_personal_message(self.example_user("hamlet"), self.example_user("othello"), body)self.assertEqual(Attachment.objects.get(path_id=d1_path_id).messages.count(), 2)diff --git a/zerver/tests/test_webhooks_common.py b/zerver/tests/test_webhooks_common.pyindex de6a6f5c66f..4acc14f649b 100644--- a/zerver/tests/test_webhooks_common.py+++ b/zerver/tests/test_webhooks_common.py@@ -82,7 +82,8 @@ class WebhooksCommonTestCase(ZulipTestCase):with self.assertRaisesRegex(JsonableError, "Malformed JSON"):my_webhook_no_notify(request)- # First verify that without the setting, it doesn't send a PM to bot owner.+ # First verify that without the setting, it doesn't send a direct+ # message to bot owner.msg = self.get_last_message()self.assertEqual(msg.id, last_message_id)self.assertNotEqual(msg.content, expected_msg.strip())