Save an email
Your appendable data has a maximum size of 100 KiB. You can save the emails you want to keep by adding them your root structured data (which has no size limit). After you save an email, the app deletes that email from your appendable data. Therefore, it won't show up in your inbox anymore.
Contents

Add the email to the root stuctured data
When you click on the "Save" button, the app adds the email you want to save to your saved folder and removes it from your inbox folder.
Update the root structured data
The app updates your root structured data (which now contains the email you just saved) and encrypts it using symmetric encryption.
structured_data_actions.js
Save the root structured data
The app saves your root structured data to the SAFE Network.
structured_data_actions.js
Get the appendable data of the inbox folder
The app needs to obtain an appendable data handle.
Get a data identifier handle
First, the app fetches a data identifier handle for the appendable data representing your inbox folder.
data_id_handle_actions.js
The name of the appendable data is obtained by hashing your email ID:
app_utils.js
Get an appendable data handle
The app fetches an appendable data handle using the data identifier handle representing your inbox folder.
appendable_data_actions.js
Drop the data identifier handle
The app drops the data identifier handle for the appendable data representing your inbox folder.
data_id_handle_actions.js
Remove the email from the appendable data
The app removes the email you just saved from your appendable data. This moves the email to the deleted_data field of the appendable data.
appendable_data_actions.js
Save the appendable data
The app saves your appendable data by sending a POST request to the SAFE Network.
appendable_data_actions.js
Clear the deleted data of the appendable data
The app clears the deleted_data field of your appendable data.
appendable_data_actions.js
Save the appendable data (again)
The app saves your appendable data by sending a POST request to the SAFE Network.
appendable_data_actions.js
Drop the appendable data handle
The app drops the appendable data handle and refreshes the inbox folder.
appendable_data_actions.js
Last updated
Was this helpful?