BEmailMessage: added missing const, Date() returns time_t.

* Added missing const to some getter methods.
* Date() now tries to parse the date of the mail, and return it as
  a time_t; you can still retrieve the actual string via
  HeaderField("Date") if you have to.
* Mail now shows the time in the local time zone, and with the
  current locale.
This commit is contained in:
Axel Dörfler
2015-09-04 17:33:17 +02:00
parent 66078c7911
commit 7bdee8beab
5 changed files with 46 additions and 19 deletions
+7 -7
View File
@@ -55,13 +55,13 @@ public:
// addresses the message appropriately, but ForwardMessage()
// leaves it unaddressed.
const char* To();
const char* From();
const char* ReplyTo();
const char* CC();
const char* Subject();
const char* Date();
int Priority();
const char* To() const;
const char* From() const;
const char* ReplyTo() const;
const char* CC() const;
const char* Subject() const;
time_t Date() const;
int Priority() const;
void SetSubject(const char* to,
uint32 charset = B_MAIL_NULL_CONVERSION,