gostfix.proto 682 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. sint64 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 id = 1;
  26. string fileName = 2;
  27. string contentType = 3;
  28. }
  29. message UserInfo {
  30. string user = 1;
  31. string fullName = 2;
  32. }
  33. message Frame {
  34. sint32 skip = 1;
  35. sint32 limit = 2;
  36. }
  37. message Folder {
  38. string name = 1;
  39. bool custom = 2;
  40. }