Usage: static object: Class::method() - This class provides only STATIC methods
class Methods
public staticfunctionencode_mime_fileurl (
STRING$y_msg_file,
STRING$y_ctrl_key
) {} :: STRING
@return: {STRING} the encoded and encrypted url segment
@param: {STRING} $y_msg_file: The relative path to the .eml message file
@param: {STRING} $y_ctrl_key: The encryption private key
Encode and Encrypts a Mime File URL using the crypto algo defined in SMART_FRAMEWORK_SECURITY_CRYPTO or 'hash/sha256' as a fallback
It takes in account if the User is Authenticated or not
This make safe using Mail Message Parts URL links sent by URL for specific and private user access
public staticfunctiondecode_mime_fileurl (
STRING$y_enc_msg_file,
STRING$y_ctrl_key
) {} :: ARRAY
@return: {ARRAY} with the decoded and decrypted url segment containing all required information to validate the email message path
@param: {STRING} $y_enc_msg_file: The encoded/encrypted path to the .eml message file
@param: {STRING} $y_ctrl_key: The decryption private key
Decode and Decrypts a Mime File URL encoded/encrypted with encode_mime_fileurl()
It takes in account if the User is Authenticated or not
@return: {STRING} the HTML view of the message linked with all sub-parts in a safe way by making use of encode_mime_fileurl() and decode_mime_fileurl()
@return: {ARRAY} with the full message structure as parts and all sub-parts in a safe way by making use of encode_mime_fileurl() and decode_mime_fileurl()
Get an Email Message (.eml) as ARRAY
This can be used to re-compose a Mime Message for Reply or Forward
class Properties
class Constants
documentation generated on: 2023-10-19 23:15:51 +0000