Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401]

Copyright 2012-2017 Horde LLC (http://www.horde.org/) See the enclosed file LICENSE for license information (BSD). If you did not receive this file, see http://www.horde.org/licenses/bsd.

Copyright: 2012-2017 Horde LLC
License: http://www.horde.org/licenses/bsd New BSD License
File Size: 118 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Horde_Mail_Rfc822_Identification:: (3 methods):
  __construct()
  parse()
  _parseMessageId()


Class: Horde_Mail_Rfc822_Identification  - X-Ref

Class to parse identification headers (RFC 5322 [3.6.4]): Message-ID,
References, and In-Reply-To.

__construct($value = null)   X-Ref
Constructor.

param: string $value  Identification field value to parse.

parse($value)   X-Ref
Parse an identification header.

param: string|null $value  Identification field value to parse.

_parseMessageId()   X-Ref
Message IDs are defined in RFC 5322 [3.6.4]. In short, they can only
contain one '@' character. However, Outlook can produce invalid
Message-IDs containing multiple '@' characters, which will fail the
strict RFC checks.

Since we don't care about the structure/details of the Message-ID,
just do a basic parse that considers all characters inside of angled
brackets to be valid.

return: string  A full Message-ID (enclosed in angled brackets).