|
@@ -80,7 +80,7 @@ type MailHeader struct {
|
|
|
To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
|
|
|
Cc string `protobuf:"bytes,3,opt,name=cc,proto3" json:"cc,omitempty"`
|
|
|
Bcc string `protobuf:"bytes,4,opt,name=bcc,proto3" json:"bcc,omitempty"`
|
|
|
- Date string `protobuf:"bytes,5,opt,name=date,proto3" json:"date,omitempty"`
|
|
|
+ Date int64 `protobuf:"zigzag64,5,opt,name=date,proto3" json:"date,omitempty"`
|
|
|
Subject string `protobuf:"bytes,6,opt,name=subject,proto3" json:"subject,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-" bson:"-"`
|
|
|
XXX_unrecognized []byte `json:"-" bson:"-"`
|
|
@@ -140,11 +140,11 @@ func (m *MailHeader) GetBcc() string {
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
-func (m *MailHeader) GetDate() string {
|
|
|
+func (m *MailHeader) GetDate() int64 {
|
|
|
if m != nil {
|
|
|
return m.Date
|
|
|
}
|
|
|
- return ""
|
|
|
+ return 0
|
|
|
}
|
|
|
|
|
|
func (m *MailHeader) GetSubject() string {
|
|
@@ -295,12 +295,108 @@ func (m *AttachmentHeader) GetContentType() string {
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
+type UserInfo struct {
|
|
|
+ User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
+ FullName string `protobuf:"bytes,2,opt,name=fullName,proto3" json:"fullName,omitempty"`
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-" bson:"-"`
|
|
|
+ XXX_unrecognized []byte `json:"-" bson:"-"`
|
|
|
+ XXX_sizecache int32 `json:"-" bson:"-"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *UserInfo) Reset() { *m = UserInfo{} }
|
|
|
+func (m *UserInfo) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*UserInfo) ProtoMessage() {}
|
|
|
+func (*UserInfo) Descriptor() ([]byte, []int) {
|
|
|
+ return fileDescriptor_0ab36b6dc6e1dcaa, []int{5}
|
|
|
+}
|
|
|
+
|
|
|
+func (m *UserInfo) XXX_Unmarshal(b []byte) error {
|
|
|
+ return xxx_messageInfo_UserInfo.Unmarshal(m, b)
|
|
|
+}
|
|
|
+func (m *UserInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
+ return xxx_messageInfo_UserInfo.Marshal(b, m, deterministic)
|
|
|
+}
|
|
|
+func (m *UserInfo) XXX_Merge(src proto.Message) {
|
|
|
+ xxx_messageInfo_UserInfo.Merge(m, src)
|
|
|
+}
|
|
|
+func (m *UserInfo) XXX_Size() int {
|
|
|
+ return xxx_messageInfo_UserInfo.Size(m)
|
|
|
+}
|
|
|
+func (m *UserInfo) XXX_DiscardUnknown() {
|
|
|
+ xxx_messageInfo_UserInfo.DiscardUnknown(m)
|
|
|
+}
|
|
|
+
|
|
|
+var xxx_messageInfo_UserInfo proto.InternalMessageInfo
|
|
|
+
|
|
|
+func (m *UserInfo) GetUser() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.User
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (m *UserInfo) GetFullName() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.FullName
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+type Frame struct {
|
|
|
+ Skip int32 `protobuf:"zigzag32,1,opt,name=skip,proto3" json:"skip,omitempty"`
|
|
|
+ Limit int32 `protobuf:"zigzag32,2,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-" bson:"-"`
|
|
|
+ XXX_unrecognized []byte `json:"-" bson:"-"`
|
|
|
+ XXX_sizecache int32 `json:"-" bson:"-"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *Frame) Reset() { *m = Frame{} }
|
|
|
+func (m *Frame) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*Frame) ProtoMessage() {}
|
|
|
+func (*Frame) Descriptor() ([]byte, []int) {
|
|
|
+ return fileDescriptor_0ab36b6dc6e1dcaa, []int{6}
|
|
|
+}
|
|
|
+
|
|
|
+func (m *Frame) XXX_Unmarshal(b []byte) error {
|
|
|
+ return xxx_messageInfo_Frame.Unmarshal(m, b)
|
|
|
+}
|
|
|
+func (m *Frame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
+ return xxx_messageInfo_Frame.Marshal(b, m, deterministic)
|
|
|
+}
|
|
|
+func (m *Frame) XXX_Merge(src proto.Message) {
|
|
|
+ xxx_messageInfo_Frame.Merge(m, src)
|
|
|
+}
|
|
|
+func (m *Frame) XXX_Size() int {
|
|
|
+ return xxx_messageInfo_Frame.Size(m)
|
|
|
+}
|
|
|
+func (m *Frame) XXX_DiscardUnknown() {
|
|
|
+ xxx_messageInfo_Frame.DiscardUnknown(m)
|
|
|
+}
|
|
|
+
|
|
|
+var xxx_messageInfo_Frame proto.InternalMessageInfo
|
|
|
+
|
|
|
+func (m *Frame) GetSkip() int32 {
|
|
|
+ if m != nil {
|
|
|
+ return m.Skip
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (m *Frame) GetLimit() int32 {
|
|
|
+ if m != nil {
|
|
|
+ return m.Limit
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
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")
|
|
|
+ proto.RegisterType((*UserInfo)(nil), "common.UserInfo")
|
|
|
+ proto.RegisterType((*Frame)(nil), "common.Frame")
|
|
|
}
|
|
|
|
|
|
func init() {
|
|
@@ -308,25 +404,29 @@ func init() {
|
|
|
}
|
|
|
|
|
|
var fileDescriptor_0ab36b6dc6e1dcaa = []byte{
|
|
|
- // 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, 0x54, 0x8e, 0xa9, 0x16, 0xb1, 0x38, 0x82, 0xc5, 0x61,
|
|
|
- 0x71, 0xc8, 0xd9, 0xd9, 0x69, 0x65, 0xa3, 0x48, 0xb8, 0xc2, 0x76, 0xb3, 0xd9, 0x98, 0x48, 0x92,
|
|
|
- 0x0d, 0xc9, 0x08, 0x97, 0xce, 0x3f, 0x5d, 0x76, 0xf2, 0x93, 0x03, 0xbb, 0x79, 0xf3, 0x86, 0x79,
|
|
|
- 0x6f, 0xde, 0x2e, 0x5c, 0x7e, 0x9a, 0x86, 0x92, 0xec, 0xb4, 0xaf, 0x6a, 0x43, 0x06, 0x3d, 0x65,
|
|
|
- 0x8a, 0xc2, 0x94, 0xc1, 0xcf, 0x02, 0x56, 0xaf, 0x32, 0xcb, 0x9f, 0x4d, 0xdc, 0xe2, 0x0d, 0xac,
|
|
|
- 0xab, 0x5c, 0x66, 0xe5, 0x51, 0x9f, 0x48, 0x2c, 0xb6, 0x8b, 0xdd, 0x3a, 0x9c, 0x1a, 0x78, 0x0d,
|
|
|
- 0xab, 0x3a, 0x53, 0x29, 0x93, 0x4b, 0x26, 0x47, 0x8c, 0x8f, 0xe0, 0x4b, 0x22, 0xa9, 0xd2, 0x42,
|
|
|
- 0x97, 0xd4, 0x08, 0x67, 0xeb, 0xec, 0xfc, 0x83, 0xd8, 0x77, 0x22, 0xfb, 0xa7, 0x91, 0x7a, 0xd1,
|
|
|
- 0x32, 0xd6, 0x75, 0x38, 0x1f, 0xb6, 0x16, 0xc0, 0x5a, 0xe8,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