Skip to end of banner
Go to start of banner

Email Delete

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 22 Next »

In this article

Overview

You can use this Snap to delete email messages from the IMAP server.

Snap Type

Email Archive Snap is a WRITE-type Snap that passes the data to the downstream Snap.

Prerequisites

This Snap requires a valid IMAP account to handle access to this endpoint.

Clicking the "Preview" button does not read any email message if the account is IMAP and the Unread only property is checked. When unread messages are read, they are all marked as "read" in the mail server. Therefore, they should not be read during the preview. Otherwise, the execution of the Snap does not read any message.

Test this Snap in your environment to ensure it performs as expected. This may delete emails forever, not move them to "Trash" where they could be recovered.

Support for Ultra Pipelines

Works in Ultra Pipelines

Limitations and Known Issues

None.

Snap Views

Type

Format

Number of Views

Examples of Upstream and Downstream Snaps

Description

Input 

Document

  • Min: 0

  • Max: 1

Any Document Snap

This Snap can have a most one document input view. If you do not specify an input view, the Snap generates a downstream flow of one row.

Output

Document

  • Min: 1

  • Max: 1

Any Document Snap

This Snap has exactly one output view and produces documents in the view. Each document contains a Map data which represents a deleted email message. The keys in the Document are "subject", "dateSent". The value of "subject" and "dateSent" keys is a string. The following is an example of an Output Document:

{ subject: "testing Email Sender Snap", dateSent: "Thu Mar 06 09:20:06 PST 2014" }

Error

Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter while running the Pipeline by choosing one of the following options from the When errors occur list under the Views tab. The available options are:

  • Stop Pipeline Execution: Stops the current pipeline execution when the Snap encounters an error.

  • Discard Error Data and Continue: Ignores the error, discards that record, and continues with the rest of the records.

  • Route Error Data to Error View: Routes the error data to an error view without stopping the Snap execution.

Learn more about Error handling in Pipelines.

Snap Settings

  • Asterisk (*): Indicates a mandatory field.

  • Suggestion icon ((blue star)): Indicates a list that is dynamically populated based on the configuration.

  • Expression icon ((blue star)): Indicates whether the value is an expression (if enabled) or a static value (if disabled). Learn more about Using Expressions in SnapLogic.

  • Add icon ((blue star)): Indicates that you can add fields in the fieldset.

  • Remove icon ((blue star)): Indicates that you can remove fields from the fieldset.

Field Name

Field Type

Description

Label*

Default ValueEmail Delete
ExampleEmail_Delete

String

Specify the name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your Pipeline.

Mail folder*

Default Value: None
Example: Inbox

String/Expression

Enter the name of email folder from where the Snap should delete messages.

Email Category*

Default ValueAll
Example: READ

Dropdown list

Select an option to choose category of emails to delete, like READ, UNREAD and ALL corresponding to read email messages, unread email messages and all messages. Please note that POP3 servers may ignore this property and the Snap deletes all messages regardless of whether this property is checked or not.

Number of messages

Default Value: All
Example: 100

Integer

Enter the maximum number of messages to delete from the given folder. Any non-integer or negative value will lead to "All" messages to be deleted.

From

Default Value: None
Example: JohnDoe

String

Specify the sender of the email. This field is used to filter email messages to delete, based on the sender name.

Subject

Default Value: None
Example: Important Message

String

Specify the subject of the email. This field is used to filter email messages to delete based on the specified subject.

Snap Execution

Default ValueExecute only
ExampleExecute only

Dropdown list

Select one of the three modes in which the Snap executes. Available options are:

  • Validate & Execute: Performs limited execution of the Snap, and generates a data preview during Pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during Pipeline runtime.

  • Execute only: Performs full execution of the Snap during Pipeline execution without generating preview data.

  • Disabled: Disables the Snap and all Snaps that are downstream from it.

Examples

Deleting Email from the SMTP server

This example pipeline demonstrates how to delete an email residing in the SMTP server using the SMTP account.

Step 1: Configure the Email Sender Snap to send an email to the SMTP server. On validation, the Snap displays the output with the details of the email.

Step 2: Configure the Email Delete Snap to delete the email with the subject testdan323. On validation, the Snap displays the output of a confirmation message indicating that the email with the Subject testdan323 is successfully deleted.

Downloads

  1. Download and import the Pipeline into SnapLogic.

  2. Configure Snap accounts as applicable.

  3. Provide Pipeline parameters as applicable.

  File Modified
You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.
No files shared here yet.
  • Drag and drop to upload or browse for files
  • Snap Pack History

     Click here to expand...

    Release

    Snap Pack Version

    Date

    Type

    Updates

    May 2024

    main26341

    Stable

    Updated and certified against the current SnapLogic Platform release.

    February 2024

    main25112

    Stable

    Updated and certified against the current SnapLogic Platform release.

    November 2023

    main23721

    Stable

    Updated and certified against the current SnapLogic Platform release.

    August 2023

    main22460

    Stable

    Updated and certified against the current SnapLogic Platform release.

    May 2023

    main 21015

    Stable

    Upgraded with the latest SnapLogic Platform release.

    February 2023

    432patches20237

    Latest

    The JSCH library has been upgraded to version 0.2.7.

    February 2023

    main19844

    Stable

    Upgraded with the latest SnapLogic Platform release.

    November 2022

    main18944

     

    Stable

    Upgraded with the latest SnapLogic Platform release.

    August 2022

    430patches17403

    Latest

    The Email Account now does not display a null pointer exception when the Mail Properties fieldset is left blank as this is not a mandatory field. Earlier, the account displayed a null pointer exception for null values in this fieldset.

    August 2022

    main17386

    Stable

    The Email Sender Snap supports the file:/// protocol in the Attachments field.

    4.29

    main15993

     

    Stable

    Upgraded with the latest SnapLogic Platform release.

    4.28 Patch

    428patches14812

    24 Mar 2022 

    Latest

    Fixed an issue with the Email Sender Snap where SMB files were attached to an e-mail causing the Snaps to fail with a NullPointer Exception.

    4.28

    main14627

    12 Feb 2022 

    Stable

    Upgraded with the latest SnapLogic Platform release.

    4.27

    main12833

    13 Nov 2021 

    Stable

    Upgraded with the latest SnapLogic Platform release.

    4.26 Patch

    426patches11591

    21 Sep 2021 

    Latest

    Fixed the following issues with the Email Archive Snap where the Snap:

    • Failed with an error User is authenticated but not connected, as the Snap did not re-authenticate with the server after the connection expired due to the long durations in the execution of Ultra Pipelines.

    • Caused multiple copies of the same source message in the target folder when the Snap was executed multiple times in preview.

    4.26

    main11181

    14 Aug 2021 

    Stable

    Upgraded with the latest SnapLogic Platform release.

    4.25

    main9554

    08 May 2021 

    Stable

    Upgraded with the latest SnapLogic Platform release.

    4.24

    main8556

    13 Feb 2021

    Stable

    Upgraded with the latest SnapLogic Platform release.

    4.23

    main7430

    14 Nov 2020 

    Stable

    Upgraded with the latest SnapLogic Platform release.

    4.22

    422patches6730

    17 Sep 2020 

    Latest

    Fixes the connectivity issue for the Email Sender Snap by making it compatible with TLS version 1.2.

    4.22

    main6403

    12 Sep 2020 

    Stable

    Upgraded with the latest SnapLogic Platform release.

    4.21

    snapsmrc542

    -

    Stable

    Upgraded with the latest SnapLogic Platform release.

    4.20 Patch

    email8813

    -

    Latest

    Fixes an issue with the Email Sender Snap that caused the Snap to fail while uploading attachments to SMB locations when the attachment password contained a forward slash "/".

    4.20

    snapsmrc535

    -

    Stable

    Upgraded with the latest SnapLogic Platform release.

    4.19

    snaprsmrc528

    -

    Stable

    Upgraded with the latest SnapLogic Platform release.

    4.18

    snapsmrc523

    -

    Stable

    Upgraded with the latest SnapLogic Platform release.

    4.17 Patch

    ALL7402

    -

    Latest

    Pushed automatic rebuild of the latest version of each Snap Pack to SnapLogic UAT and Elastic servers.

    4.17

    snapsmrc515

    -

    Stable

    Added the Snap Execution field to all Standard-mode Snaps. In some Snaps, this field replaces the existing Execute during preview check box.

    4.16 Patch

    email6772

    -

    Latest

    Fixed an issue with the Email Delete Snap wherein the Snap fails to delete emails with multiple input documents.

    4.16

    snapsmrc508

    -

    Stable

    Upgraded with the latest SnapLogic Platform release.

    4.15 Patch

    email6267

    -

    Latest

    Fixed an issue with handling null attachments in the Email Sender and Email Reader Snaps.

    4.15

    snapsmrc500

    -

    Stable

    Upgraded with the latest SnapLogic Platform release.

    4.14 Patch

    email5740

    -

    Latest

    Fixed an issue with POP3 access in Email Reader, Archive, and Delete Snaps. IMAP specific methods are now not called during POP3 access.

    4.14 Patch

    email5662

    -

    Latest

    Fixed the Email Reader/Sender Snaps that replace the "+" symbol in attachment files with a space in the output.

    4.14

    snapsmrc490

    -

    Stable

    Upgraded with the latest SnapLogic Platform release.

    4.13 Patch

    email5368

    -

    Latest

    • Enhanced Email Reader Snap to perform read and archive functions. 

    • Fixed the Email Archive Snap that does not display sorting errors. 

    • Fixed the Email Reader Snap that slows down when renaming the downloaded attachments.

    4.13

    snapsmrc486

    -

    Stable

    Upgraded with the latest SnapLogic Platform release.

    4.12 Patch

    email4948

    -

    Latest

    Fixed an issue with the Email Reader Snap, wherein the Snap gets corrupted when a file name and content contains Unicode characters.

    4.12

    snapsmrc480

    -

    Stable

    Upgraded with the latest SnapLogic Platform release.

    4.11 Patch

    email4481

    -

    Latest

    • Resolved an issue with Email Reader Snap:

      • The Snap now reads to fetch mails from a shared mail box.

      • The Snap can now read the file attachment that has a percent sign [%], or ó.  

    • Updated the Email Delete Snap code to display the default value as zero instead of blank in the UI.

    4.11

    snapsmrc465

    -

    Stable

    Upgraded with the latest SnapLogic Platform release.

    4.10 Patch

    email4025

    -

    Latest

    Added Connection, Read, and Write timeout settings that support retries for SMTP, POP3, and IMAP email account types.

    4.10 Patch

    email3944

    -

    Latest

    Resolved an issue with the Email Reader Snap to support the shared mailbox on an Office 365 server. Email Reader did not support Office 365 shared mailbox until we explicitly disabled plaintext authentication when we specify ssl authentication. The Office server falsely reports that it supports PLAIN authentication and the snap library is happy to try it but it always fails. This is a known issue with Office 365 / Outlook.

    4.10

    snapsmrc414

    -

    Stable

    • Email Account Updated with Attachment password property (encrypted) to support the attachment function for the Email Sender and Reader Snaps.

    • Email Reader Snap updated with the Attachment folder property to store the attached files on a path.

    • Email Sender Snap extended support to SLDB, SFTP, and SMB file protocols for the attachments

    4.9.10

    snapsmrc405

    -

    Latest

    Upgraded with the latest SnapLogic Platform release.

    4.8.0 Patch

    email2816

    -

    Latest

    Addressed an issue with Email Sender Snap being unable to Handle Chinese characters.

    4.8

    -

    -

    Stable

    Upgraded with the latest SnapLogic Platform release.

    4.7.0 Patch

    email2499

    -

    Latest

    Added logic to process emails that have text files as attachments and download the files to the provided attachment location.

    4.6.0

    snapsmrc362

    -

    Latest

    • Resolved an issue in Email Sender Snap that failed when attached a file that had spaces in the file name.

    • Enhanced error handling in Email Reader Snap to appropriately route connection errors to error view.

    4.5.1

    email1564

    -

    Latest

    • BCC field added to the Email Sender Snap.

    • Retries added to the Email Sender Snap.

    -

    -

    August 7, 2015 (2015.25/4.2.1)

    -

    • Email Reader Snap now has an option to read older message first.

    • Resolved Null Pointer exception in Email Reader Snap when reading from Yahoo mailbox.

    -

    -

    June 27, 2015 (2015.22)

    -

    Email Sender now supports the ability to pass through input documents.

    -

    -

    June 6, 2015 (2015.20)

    -

    Email Reader: Resolved an error with concatenating file names in attachments

    -

    -

    Snap Updates, December 20, 2014

    -

    NEW! Email Archive introduced in this release.

    -

    -

    November 2014 Launch Updates

    -

    NEW! Email Delete Snap was introduced in this release.

    -

    -

    October 18, 2014

    -

    Email Sender now allows JSONPath expressions

    -

    -

    Fall 2014 Launch Updates

    -

    Email Sender: better handling of error messages to the error view.

    -

    -

    December 2013 Launch Updates

    -

    Email Reader Snap and Email Sender Snap were updated to handle attachments.

    -

    -

    September 2013 Updates

    -

    Email Sender & Email Reader introduced in this release. This pair of Snaps let you send and receive an email when you run a pipeline.

    Updated and certified against the current SnapLogic Platform release.


    Related Content


    • No labels