@social-mail/social-mail-client 1.2.67 → 1.2.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21873,8 +21873,15 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
21873
21873
  const {
21874
21874
  textBody
21875
21875
  } = email;
21876
- if (textBody) {
21877
- email.subject || (email.subject = textBody.split("\n")[0].substring(0, 80));
21876
+ if (textBody && !email.subject) {
21877
+ const lines = textBody.split("\n");
21878
+ for (const line of lines) {
21879
+ if (!line.trim()) {
21880
+ continue;
21881
+ }
21882
+ email.subject || (email.subject = line.substring(0, 80));
21883
+ break;
21884
+ }
21878
21885
  }
21879
21886
  for (const iterator of email.recipients) {
21880
21887
  if (iterator.emailAddressText) {