|
@@ -21,11 +21,12 @@ var _ = math.Inf
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
|
|
type MailBody struct {
|
|
|
- ContentType string `protobuf:"bytes,1,opt,name=contentType,proto3" json:"contentType,omitempty"`
|
|
|
- Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
|
|
|
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
- XXX_unrecognized []byte `json:"-"`
|
|
|
- XXX_sizecache int32 `json:"-"`
|
|
|
+ PlainText string `protobuf:"bytes,1,opt,name=plainText,proto3" json:"plainText,omitempty"`
|
|
|
+ RichText string `protobuf:"bytes,2,opt,name=richText,proto3" json:"richText,omitempty"`
|
|
|
+ Attachments []*AttachmentHeader `protobuf:"bytes,3,rep,name=attachments,proto3" json:"attachments,omitempty"`
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
+ XXX_unrecognized []byte `json:"-"`
|
|
|
+ XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *MailBody) Reset() { *m = MailBody{} }
|
|
@@ -53,16 +54,23 @@ func (m *MailBody) XXX_DiscardUnknown() {
|
|
|
|
|
|
var xxx_messageInfo_MailBody proto.InternalMessageInfo
|
|
|
|
|
|
-func (m *MailBody) GetContentType() string {
|
|
|
+func (m *MailBody) GetPlainText() string {
|
|
|
if m != nil {
|
|
|
- return m.ContentType
|
|
|
+ return m.PlainText
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (m *MailBody) GetRichText() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.RichText
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
-func (m *MailBody) GetContent() []byte {
|
|
|
+func (m *MailBody) GetAttachments() []*AttachmentHeader {
|
|
|
if m != nil {
|
|
|
- return m.Content
|
|
|
+ return m.Attachments
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
@@ -193,10 +201,106 @@ func (m *Mail) GetBody() *MailBody {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
+type Attachment struct {
|
|
|
+ Header *AttachmentHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
|
|
|
+ Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
+ XXX_unrecognized []byte `json:"-"`
|
|
|
+ XXX_sizecache int32 `json:"-"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *Attachment) Reset() { *m = Attachment{} }
|
|
|
+func (m *Attachment) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*Attachment) ProtoMessage() {}
|
|
|
+func (*Attachment) Descriptor() ([]byte, []int) {
|
|
|
+ return fileDescriptor_0ab36b6dc6e1dcaa, []int{3}
|
|
|
+}
|
|
|
+
|
|
|
+func (m *Attachment) XXX_Unmarshal(b []byte) error {
|
|
|
+ return xxx_messageInfo_Attachment.Unmarshal(m, b)
|
|
|
+}
|
|
|
+func (m *Attachment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
+ return xxx_messageInfo_Attachment.Marshal(b, m, deterministic)
|
|
|
+}
|
|
|
+func (m *Attachment) XXX_Merge(src proto.Message) {
|
|
|
+ xxx_messageInfo_Attachment.Merge(m, src)
|
|
|
+}
|
|
|
+func (m *Attachment) XXX_Size() int {
|
|
|
+ return xxx_messageInfo_Attachment.Size(m)
|
|
|
+}
|
|
|
+func (m *Attachment) XXX_DiscardUnknown() {
|
|
|
+ xxx_messageInfo_Attachment.DiscardUnknown(m)
|
|
|
+}
|
|
|
+
|
|
|
+var xxx_messageInfo_Attachment proto.InternalMessageInfo
|
|
|
+
|
|
|
+func (m *Attachment) GetHeader() *AttachmentHeader {
|
|
|
+ if m != nil {
|
|
|
+ return m.Header
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *Attachment) GetData() []byte {
|
|
|
+ if m != nil {
|
|
|
+ return m.Data
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+type AttachmentHeader struct {
|
|
|
+ FileName string `protobuf:"bytes,1,opt,name=fileName,proto3" json:"fileName,omitempty"`
|
|
|
+ ContentType string `protobuf:"bytes,2,opt,name=contentType,proto3" json:"contentType,omitempty"`
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
+ XXX_unrecognized []byte `json:"-"`
|
|
|
+ XXX_sizecache int32 `json:"-"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *AttachmentHeader) Reset() { *m = AttachmentHeader{} }
|
|
|
+func (m *AttachmentHeader) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*AttachmentHeader) ProtoMessage() {}
|
|
|
+func (*AttachmentHeader) Descriptor() ([]byte, []int) {
|
|
|
+ return fileDescriptor_0ab36b6dc6e1dcaa, []int{4}
|
|
|
+}
|
|
|
+
|
|
|
+func (m *AttachmentHeader) XXX_Unmarshal(b []byte) error {
|
|
|
+ return xxx_messageInfo_AttachmentHeader.Unmarshal(m, b)
|
|
|
+}
|
|
|
+func (m *AttachmentHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
+ return xxx_messageInfo_AttachmentHeader.Marshal(b, m, deterministic)
|
|
|
+}
|
|
|
+func (m *AttachmentHeader) XXX_Merge(src proto.Message) {
|
|
|
+ xxx_messageInfo_AttachmentHeader.Merge(m, src)
|
|
|
+}
|
|
|
+func (m *AttachmentHeader) XXX_Size() int {
|
|
|
+ return xxx_messageInfo_AttachmentHeader.Size(m)
|
|
|
+}
|
|
|
+func (m *AttachmentHeader) XXX_DiscardUnknown() {
|
|
|
+ xxx_messageInfo_AttachmentHeader.DiscardUnknown(m)
|
|
|
+}
|
|
|
+
|
|
|
+var xxx_messageInfo_AttachmentHeader proto.InternalMessageInfo
|
|
|
+
|
|
|
+func (m *AttachmentHeader) GetFileName() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.FileName
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (m *AttachmentHeader) GetContentType() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.ContentType
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
func init() {
|
|
|
proto.RegisterType((*MailBody)(nil), "common.MailBody")
|
|
|
proto.RegisterType((*MailHeader)(nil), "common.MailHeader")
|
|
|
proto.RegisterType((*Mail)(nil), "common.Mail")
|
|
|
+ proto.RegisterType((*Attachment)(nil), "common.Attachment")
|
|
|
+ proto.RegisterType((*AttachmentHeader)(nil), "common.AttachmentHeader")
|
|
|
}
|
|
|
|
|
|
func init() {
|
|
@@ -204,20 +308,25 @@ func init() {
|
|
|
}
|
|
|
|
|
|
var fileDescriptor_0ab36b6dc6e1dcaa = []byte{
|
|
|
- // 230 bytes of a gzipped FileDescriptorProto
|
|
|
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x90, 0x31, 0x4f, 0xc3, 0x40,
|
|
|
- 0x0c, 0x85, 0x95, 0x34, 0x04, 0xea, 0x00, 0xaa, 0x3c, 0xdd, 0x18, 0x45, 0x0c, 0x15, 0x43, 0x86,
|
|
|
- 0xf2, 0x0f, 0x18, 0x10, 0x0b, 0xcb, 0x89, 0x81, 0x35, 0xf1, 0x5d, 0xa1, 0x88, 0xc4, 0x55, 0x6a,
|
|
|
- 0x24, 0xb2, 0xf1, 0xd3, 0x91, 0x9d, 0x54, 0x64, 0x7b, 0xef, 0x9d, 0xef, 0xdd, 0x77, 0x86, 0x9b,
|
|
|
- 0x77, 0x3e, 0xc9, 0xfe, 0xf0, 0x53, 0x1f, 0x07, 0x16, 0xc6, 0x9c, 0xb8, 0xeb, 0xb8, 0xaf, 0x9e,
|
|
|
- 0xe0, 0xea, 0xa5, 0x39, 0x7c, 0x3d, 0x72, 0x18, 0xb1, 0x84, 0x82, 0xb8, 0x97, 0xd8, 0xcb, 0xeb,
|
|
|
- 0x78, 0x8c, 0x2e, 0x29, 0x93, 0xed, 0xda, 0x2f, 0x23, 0x74, 0x70, 0x39, 0x5b, 0x97, 0x96, 0xc9,
|
|
|
- 0xf6, 0xda, 0x9f, 0x6d, 0xf5, 0x9b, 0x00, 0x68, 0xd1, 0x73, 0x6c, 0x42, 0x1c, 0x10, 0x21, 0xdb,
|
|
|
- 0x0f, 0xdc, 0xcd, 0x1d, 0xa6, 0xf1, 0x16, 0x52, 0x61, 0xbb, 0xb7, 0xf6, 0xa9, 0xb0, 0x7a, 0x22,
|
|
|
- 0xb7, 0x9a, 0x3c, 0x11, 0x6e, 0x60, 0xd5, 0x12, 0xb9, 0xcc, 0x02, 0x95, 0xda, 0x12, 0x1a, 0x89,
|
|
|
- 0xee, 0x62, 0x6a, 0x51, 0xad, 0x08, 0xa7, 0xef, 0xf6, 0x33, 0x92, 0xb8, 0xdc, 0xe2, 0xb3, 0xad,
|
|
|
- 0xde, 0x20, 0x53, 0x02, 0xbc, 0x87, 0xfc, 0xc3, 0x28, 0xec, 0xf5, 0x62, 0x87, 0xf5, 0xf4, 0xd7,
|
|
|
- 0xfa, 0x9f, 0xcf, 0xcf, 0x13, 0x78, 0x07, 0x59, 0xcb, 0x61, 0x34, 0xaa, 0x62, 0xb7, 0x59, 0x4e,
|
|
|
- 0xea, 0x4a, 0xbc, 0x9d, 0xb6, 0xb9, 0xed, 0xec, 0xe1, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x81, 0xe6,
|
|
|
- 0x8d, 0x59, 0x44, 0x01, 0x00, 0x00,
|
|
|
+ // 311 bytes of a gzipped FileDescriptorProto
|
|
|
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x52, 0xbf, 0x4b, 0xf4, 0x40,
|
|
|
+ 0x10, 0xe5, 0x2e, 0xf9, 0xf2, 0xdd, 0x4d, 0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