Skip to content
Snippets Groups Projects

Issue #3357920 handle Multipart messages from mimemail

Open Issue #3357920 handle Multipart messages from mimemail
4 unresolved threads
Open Malcolm Young requested to merge issue/maillog-3357920:3357920-multipart into 8.x-1.x
4 unresolved threads

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Malcolm Young added 1 commit

    added 1 commit

    • b94bc88c - require php-mime-mail-parser/php-mime-mail-parser

    Compare with previous version

  • Malcolm Young added 1 commit

    added 1 commit

    Compare with previous version

  • Malcolm Young added 1 commit

    added 1 commit

    Compare with previous version

  • Malcolm Young resolved all threads

    resolved all threads

  • Malcolm Young added 1 commit

    added 1 commit

    Compare with previous version

  • Malcolm Young added 1 commit

    added 1 commit

    • dc53b81a - Update file MaillogController.php

    Compare with previous version

  • Malcolm Young resolved all threads

    resolved all threads

  • 175 $mail['html_headers'] = $html['headers'];
    176 $mail['html_body'] = $html['body'];
    177
    178 $output = [
    179 '#type' => 'container',
    180 ];
    181
    182 foreach ($mail as $section => $contents) {
    183 if (substr($section, 0, 5) == 'other') {
    184 continue;
    185 }
    186
    187 switch ($section) {
    188 case 'html_body':
    189 $encoded = implode('', $contents);
    190 $decoded = base64_decode($encoded);
  • 220 * True if it is a boundary line.
    221 */
    222 protected function isBoundary($line) {
    223 if (str_starts_with($line, '--')) {
    224 if (strlen($line) == 43) {
    225 return TRUE;
    226 }
    227
    228 if (strlen($line) == 45 && str_ends_with($line, '--')) {
    229 return TRUE;
    230 }
    231 }
    232
    233 return FALSE;
    234 }
    235
  • 207 ];
    208 }
    209
    210 return $output;
    211 }
    212
    213 /**
    214 * Check whether a line is a multipart boundary.
    215 *
    216 * @param string $line
    217 * The line from the email.
    218 *
    219 * @return bool
    220 * True if it is a boundary line.
    221 */
    222 protected function isBoundary($line) {
  • Malcolm Young added 12 commits

    added 12 commits

    Compare with previous version

  • Malcolm Young added 1 commit

    added 1 commit

    • da7a2a81 - update boundary check function, use details elements

    Compare with previous version

  • 4 4
    5 5 use Drupal\Component\Utility\Html;
    6 6 use Drupal\Core\Controller\ControllerBase;
    7 use Drupal\Core\Render\Markup;
  • Malcolm Young mentioned in merge request !16

    mentioned in merge request !16

  • Please register or sign in to reply
    Loading