Constructor SpamActionOccurrence
- Namespace
- MailFathom.Application.Spam.Actions
- Assembly
- MailFathom.Application.dll
SpamActionOccurrence(StoredEmailId, EmailOccurrenceId, MailFolderAlias, bool)
Where a classified email is and how it stands, which is everything an action has to know about it.
public SpamActionOccurrence(StoredEmailId Id, EmailOccurrenceId Occurrence, MailFolderAlias FolderAlias, bool IsRemotelySeen)
Parameters
IdStoredEmailIdThe local email, which is what a mutation record hangs off and what its filing history is read by.
OccurrenceEmailOccurrenceIdWhere the email is on the mail server, which is what an IMAP command is issued against. It is read now rather than derived from the classification, because a classification is a durable record and the message may have moved since.
FolderAliasMailFolderAliasMailFathom's own name for the folder the occurrence is in, which is what decides whether a filing has anywhere left to move the message to.
IsRemotelySeenboolWhether the mail server already reports the message read, as of the last synchronization. A message that is already read is not written to, which keeps the flag change an act rather than a repeated statement.
Remarks
Nothing here is mail content: a local identifier, a remote occurrence, a folder alias, and a flag are MailFathom's own or the server's own names for things. That is what lets an action be decided and written down without the message it is about being read again.