EmailStateEnum.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. namespace qdr.app.studiou.orders2printpack.EmailStorage
  2. {
  3. /// <summary>
  4. /// Enumeration representing the various states an email item can be in during processing.
  5. /// These states track the progression of an email item through the complete workflow
  6. /// from initial discovery to final delivery.
  7. /// </summary>
  8. public enum EmailStateEnum
  9. {
  10. /// <summary>
  11. /// Initial state when an email item is discovered and ready for processing.
  12. /// Items in this state have their directory scanned and metadata populated,
  13. /// but no processing operations have begun.
  14. /// </summary>
  15. Ready,
  16. /// <summary>
  17. /// The email item is currently being processed.
  18. /// This includes file compression and preparation for upload.
  19. /// Items in this state should not be modified by other operations.
  20. /// </summary>
  21. Processing,
  22. /// <summary>
  23. /// The compressed file is being uploaded to the Temporary Shared Storage.
  24. /// This state indicates active network operation in progress.
  25. /// Items in this state should not be reset or reprocessed.
  26. /// </summary>
  27. Uploading,
  28. /// <summary>
  29. /// The email is being prepared and sent to the recipient.
  30. /// This includes email template processing, personalization,
  31. /// and actual SMTP transmission.
  32. /// </summary>
  33. Sending,
  34. /// <summary>
  35. /// The email has been successfully sent to the recipient.
  36. /// This is a terminal success state - processing is complete.
  37. /// Files are typically moved to the "sent" directory.
  38. /// </summary>
  39. Sent,
  40. /// <summary>
  41. /// An error occurred during processing at any stage.
  42. /// Items in this state require manual intervention or can be reset
  43. /// to retry processing. The ErrorMessage property should contain
  44. /// details about what went wrong.
  45. /// </summary>
  46. Error
  47. }
  48. }