gostfix.proto 797 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. syntax = "proto3";
  2. option go_package = "./common";
  3. package common;
  4. message MailBody {
  5. string plainText = 1;
  6. string richText = 2;
  7. repeated AttachmentHeader attachments = 3;
  8. }
  9. message MailHeader {
  10. string from = 1;
  11. string to = 2;
  12. string cc = 3;
  13. string bcc = 4;
  14. sint64 date = 5;
  15. string subject = 6;
  16. }
  17. message Mail {
  18. MailHeader header = 1;
  19. MailBody body = 2;
  20. }
  21. message Attachment {
  22. AttachmentHeader header = 1;
  23. bytes data = 2;
  24. }
  25. message AttachmentHeader {
  26. string id = 1;
  27. string fileName = 2;
  28. string contentType = 3;
  29. }
  30. message UserInfo {
  31. string user = 1;
  32. string fullName = 2;
  33. }
  34. message Frame {
  35. sint32 skip = 1;
  36. sint32 limit = 2;
  37. }
  38. message Folder {
  39. string name = 1;
  40. bool custom = 2;
  41. }
  42. message FolderStat {
  43. string folder = 1;
  44. uint32 total = 2;
  45. uint32 unread = 3;
  46. }