
########
MIMEBase
########


ArticleFields()
===============


Returns common article fields for a MIMEBase article.


.. code-block:: perl

     my %ArticleFields = $LayoutObject->ArticleFields(
         TicketID  => 123,   # (required)
         ArticleID => 123,   # (required)
     );


Returns:


.. code-block:: perl

     %ArticleFields = (
         Sender => {                     # mandatory
             Label => 'Sender',
             Value => 'John Doe',
             Prio  => 100,
         },
         Subject => {                    # mandatory
             Label => 'Subject',
             Value => 'Article subject',
             Prio  => 200,
         },
         PGP => {
             Label => 'PGP',             # mandatory
             Value => 'Value',           # mandatory
             Class => 'Class',           # optional
             ...
         },
         ...
     );



ArticlePreview()
================


Returns article preview for a MIMEBase article.


.. code-block:: perl

     $LayoutObject->ArticlePreview(
         TicketID   => 123,     # (required)
         ArticleID  => 123,     # (required)
         ResultType => 'plain', # (optional) plain|HTML. Default HTML.
         MaxLength  => 50,      # (optional) performs trimming (for plain result only)
     );


Returns article preview in scalar form:


.. code-block:: perl

     $ArticlePreview = 'Hello, world!';


If HTML preview was requested, but HTML content does not exist for an article, this function will return undef.


HTMLBodyAttachmentIDGet()
=========================


Returns HTMLBodyAttachmentID.


.. code-block:: perl

     my $HTMLBodyAttachmentID = $LayoutObject->HTMLBodyAttachmentIDGet(
         TicketID  => 123,     # (required)
         ArticleID => 123,     # (required)
     );


Returns


.. code-block:: perl

     $HTMLBodyAttachmentID = 23;



ArticleCustomerRecipientsGet()
==============================


Get customer users from an article to use as recipients.


.. code-block:: perl

     my @CustomerUserIDs = $LayoutObject->ArticleCustomerRecipientsGet(
         TicketID  => 123,     # (required)
         ArticleID => 123,     # (required)
     );


Returns array of customer user IDs who should receive a message:


.. code-block:: perl

     @CustomerUserIDs = (
         'customer-1',
         'customer-2',
         ...
     );



