Automatic processing of received emailsWarning: in Storga, an email corresponds to a message received. A sent email is called a message and processed through another set of functions. Browse and organize received emailsBrowse the different emails received in a page or a sheeteach_mail each_mail sheet Access the different parts of a received emailGet the date: var DateTime dt := mail_date Obtain the sender's email address: var Str s := mail_from Obtain the email addresses of the recipients (if there are several, they will be separated by newlines): var Str s := mail_to Obtain the email address of people in copy: var Str s := mail_cc Get the subject of the current email: var Str s := mail_subject Obtain the content of the email header, in non-decoded form: var Str s := mail_header Get the content of the body of the email, in text form: var Str s := mail_body Browse the various attached files: each_attached f The parameter, here 'f', is used to identify the file in order to be able to use the various file manipulation functions of Storga. Add additional information to the emailObtain the summary associated with the current email: var Str s := mail_resume Change the summary: mail_resume := "Nouveau résumé" Determine if the email has been marked as SPAM: if mail_spam Mark the email as SPAM, or not: mail_spam := true Automatically organize received emailsMove the current received emailmove_mail ... The position options usable by 'move_mail' are the same as those usable by 'new_form'. Delete the current received emaildelete_mail |