Copyright 2008-2017 Horde LLC (http://www.horde.org/) getBaseSubject() code adapted from imap-base-subject.c (Dovecot 1.2) Original code released under the LGPL-2.1 Copyright (c) 2002-2008 Timo Sirainen <tss@iki.fi>
Copyright: | 2002-2008 Timo Sirainen |
Copyright: | 2008-2017 Horde LLC |
License: | http://www.horde.org/licenses/lgpl21 LGPL 2.1 |
File Size: | 231 lines (6 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Horde_Imap_Client_Data_BaseSubject:: (6 methods):
__construct()
__toString()
_removeSubjLeader()
_removeBlob()
_removeBlobWhenNonempty()
_removeSubjFwdHdr()
Class: Horde_Imap_Client_Data_BaseSubject - X-Ref
Determines the "base subject" of a string (RFC 5256 [2.1]).__construct($str, array $opts = array() X-Ref |
Constructor. return: string The cleaned up subject string. param: string $str The subject string. param: array $opts Additional options: |
__toString() X-Ref |
Return the "base subject" defined in RFC 5256 [2.1]. return: string The base subject. |
_removeSubjLeader(&$str, $keepblob = false) X-Ref |
Remove all prefix text of the subject that matches the subj-leader ABNF. return: boolean True if string was altered. param: string &$str The subject string. param: boolean $keepblob Remove blob information? |
_removeBlob($str, $i) X-Ref |
Remove "[...]" text. return: boolean|integer False if blob was not found, otherwise the param: string $str The subject string. param: integer $i Current position. |
_removeBlobWhenNonempty(&$str) X-Ref |
Remove "[...]" text if it doesn't result in the subject becoming empty. return: boolean True if string was altered. param: string &$str The subject string. |
_removeSubjFwdHdr(&$str) X-Ref |
Remove a "[fwd: ... ]" string. return: boolean True if string was altered. param: string &$str The subject string. |