Fixed a bug that would cause bogus Message-IDs on BONE systems. It seems that our utsname structure is 8 times larger than BONE's, so all the offsets are screwed up when you try to link our headers against BONE libraries. If we're really aiming for BONE compatibility in our network stack, perhaps this should be changed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11036 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -735,18 +735,13 @@ BEmailMessage::RenderToRFC822(BPositionIO *file)
|
||||
message_id << system_time();
|
||||
message_id << "-BeMail@";
|
||||
|
||||
#if BONE
|
||||
utsname uinfo;
|
||||
uname(&uinfo);
|
||||
message_id << uinfo.nodename;
|
||||
#else
|
||||
char host[255];
|
||||
gethostname(host,255);
|
||||
message_id << host;
|
||||
#endif
|
||||
char host[255];
|
||||
gethostname(host,255);
|
||||
message_id << host;
|
||||
|
||||
message_id << ">";
|
||||
SetHeaderField("Message-ID", message_id.String());
|
||||
|
||||
SetHeaderField("Message-Id", message_id.String());
|
||||
|
||||
status_t err = BMailComponent::RenderToRFC822(file);
|
||||
if (err < B_OK)
|
||||
|
||||
Reference in New Issue
Block a user