Remove Email Classification Filters

Verb: emailRemoveClassificationFilters

Available from: <Standard>

Removes the email classification filters previously applied by the Apply Classification Filters command.

Syntax

emailRemoveClassificationFilters --connection(EmailConnection)

Inputs

Script Designer Required AcceptedTypes Description
--connection Connection Required Email Connection Variable with the collection containing the email messages to remove the classification filter. > The variable of type "Email Connection" is obtained through the commands:
  • Connect to IMAP Email Server;
  • Connect to SMTP Server;
  • Connect to Outlook Server;
  • Connect to Exchange Email Server.
  • Example

    After establishing a connection with the email server, the Remove Email Classification Filters command removes all the classification filters previously applied by the Apply Classification Filters command.

    defVar --name currentMessage --type EmailMessage
    defVar --name sender --type String
    defVar --name emailConnection --type EmailConnection
    defVar --name emailSubject --type String
    defVar --name emailBody --type String
    imapConnect --mailhost "outlook.office365.com" --mailport 993 --usessl  --username "useremail@email.com" --mailusername "useremail@email.com" --mailpassword userpassword --enableLog  emailConnection=value
    // Classify all messages with the informed filters, with Ascending or Descending order of the messages.
    emailApplyClassificationFilters --dateordering "Ascending" --fromordering "Ascending" --toordering "Ascending" --subjectordering "Descending" --sizeordering "Ascending" --limit 25 --offset 1 --connection ${emailConnection}
    foreach --collection "${emailConnection}" --variable "${currentMessage}"
    // Removes the classification filter previously applied to all email messages, covered by the command "foreach".
        emailRemoveClassificationFilters --connection ${emailConnection}
        emailRead --message ${currentMessage} emailSubject=subject emailBody=body sender=from
    endFor
    emailDisconnect --connection ${emailConnection}
    
    For the example to run, it is necessary to inform the IMAP server connection, initiated by the Connect to IMAP Email Server command, the user's email and password, in addition to the host and port settings of the server used.

    See Also

  • Apply Classification Filters
  • Apply Search Filters
  • Connect to Exchange Email Server
  • Connect to IMAP Email Server
  • Connect to Outlook Server
  • Connect to SMTP Server
  • Count Emails
  • Delete Email
  • Disconnect from Email Server
  • Download Email Attachments
  • Move Email
  • Read Email
  • Remove Search Filters from Email
  • Reply Email
  • Send Email
  • Split Email Conversations
  • Update Email Information