revert to include sender, but no sent folder
This commit is contained in:
parent
eb910923e9
commit
b9794d13c4
@ -1,5 +1,4 @@
|
|||||||
#include "mail.h"
|
#include "mail.h"
|
||||||
#include <cstdio>
|
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
|
||||||
mail::mail(std::string filename, std::string subject) :
|
mail::mail(std::string filename, std::string subject) :
|
||||||
@ -41,6 +40,7 @@ json mail::mailToJson()
|
|||||||
|
|
||||||
jsonfile["id"] = this->id;
|
jsonfile["id"] = this->id;
|
||||||
jsonfile["timestamp"] = this->timestamp;
|
jsonfile["timestamp"] = this->timestamp;
|
||||||
|
jsonfile["sender"] = this->sender;
|
||||||
jsonfile["recipient"] = this->recipient;
|
jsonfile["recipient"] = this->recipient;
|
||||||
jsonfile["subject"] = this->subject;
|
jsonfile["subject"] = this->subject;
|
||||||
jsonfile["filename"] = this->filename;
|
jsonfile["filename"] = this->filename;
|
||||||
|
|||||||
@ -17,6 +17,7 @@ struct mail {
|
|||||||
/* metadata */
|
/* metadata */
|
||||||
u_int id;
|
u_int id;
|
||||||
int64_t timestamp;
|
int64_t timestamp;
|
||||||
|
std::string sender;
|
||||||
std::string recipient;
|
std::string recipient;
|
||||||
std::string subject;
|
std::string subject;
|
||||||
|
|
||||||
|
|||||||
@ -25,6 +25,7 @@ user::user(fs::path user_data_json) : m()
|
|||||||
mail_json["subject"]
|
mail_json["subject"]
|
||||||
);
|
);
|
||||||
mail->id = mail_json["id"];
|
mail->id = mail_json["id"];
|
||||||
|
mail->sender = mail_json["sender"];
|
||||||
mail->recipient = mail_json["recipient"];
|
mail->recipient = mail_json["recipient"];
|
||||||
mail->deleted = mail_json["deleted"];
|
mail->deleted = mail_json["deleted"];
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user