gostfix.proto 493 B

123456789101112131415161718192021222324252627282930313233
  1. syntax = "proto3";
  2. package common;
  3. message MailBody {
  4. string plainText = 1;
  5. string richText = 2;
  6. repeated AttachmentHeader attachments = 3;
  7. }
  8. message MailHeader {
  9. string from = 1;
  10. string to = 2;
  11. string cc = 3;
  12. string bcc = 4;
  13. string date = 5;
  14. string subject = 6;
  15. }
  16. message Mail {
  17. MailHeader header = 1;
  18. MailBody body = 2;
  19. }
  20. message Attachment {
  21. AttachmentHeader header = 1;
  22. bytes data = 2;
  23. }
  24. message AttachmentHeader {
  25. string fileName = 1;
  26. string contentType = 2;
  27. }