dolibarr 19.0.3
emailcollector.lib.php File Reference

Library files with common functions for EmailCollector. More...

Go to the source code of this file.

Functions

 emailcollectorPrepareHead ($object)
 Prepare array of tabs for EmailCollector.
 
 getParts ($structure)
 Get parts of a message.
 
 getDParameters ($part)
 Array with joined files.
 
 getAttachments ($jk, $mbox)
 Get attachments of a given mail.
 
 getFileData ($jk, $fpos, $type, $mbox)
 Get content of a joined file from its position into a given email.
 
 saveAttachment ($path, $filename, $data)
 Save joined file into a directory with a given name.
 
 getDecodeValue ($message, $coding)
 Decode content of a message.
 

Detailed Description

Library files with common functions for EmailCollector.

Definition in file emailcollector.lib.php.

Function Documentation

◆ emailcollectorPrepareHead()

emailcollectorPrepareHead ( $object)

Prepare array of tabs for EmailCollector.

Parameters
EmailCollector$objectEmailCollector
Returns
array Array of tabs

Definition at line 31 of file emailcollector.lib.php.

References complete_head_from_modules(), and dol_buildpath().

◆ getAttachments()

getAttachments ( $jk,
$mbox )

Get attachments of a given mail.

Parameters
integer$jkNumber of email
object$mboxobject connection imaap
Returns
array type, filename, pos

Definition at line 118 of file emailcollector.lib.php.

References getDParameters(), and getParts().

◆ getDecodeValue()

getDecodeValue ( $message,
$coding )

Decode content of a message.

Parameters
string$messageMessage
integer$codingType of content
Returns
string Decoded message

Definition at line 200 of file emailcollector.lib.php.

Referenced by getFileData().

◆ getDParameters()

getDParameters ( $part)

Array with joined files.

Parameters
object$partPart of message
Returns
object|boolean Definition of message|false en cas d'erreur

Definition at line 106 of file emailcollector.lib.php.

Referenced by getAttachments().

◆ getFileData()

getFileData ( $jk,
$fpos,
$type,
$mbox )

Get content of a joined file from its position into a given email.

Parameters
integer$jknuméro du mail
integer$fposposition de la pièce jointe
integer$typetype de la pièce jointe
object$mboxobject connection imaap
Returns
mixed data

Definition at line 154 of file emailcollector.lib.php.

References getDecodeValue().

◆ getParts()

getParts ( $structure)

Get parts of a message.

Parameters
object$structureStructure of message
Returns
object|boolean Parties du message|false en cas d'erreur

Definition at line 95 of file emailcollector.lib.php.

Referenced by getAttachments().

◆ saveAttachment()

saveAttachment ( $path,
$filename,
$data )

Save joined file into a directory with a given name.

Parameters
string$pathPath to file
string$filenameName of file
mixed$datacontenu à sauvegarder
Returns
string emplacement du fichier

Definition at line 170 of file emailcollector.lib.php.

References dol_mkdir().