diff --git a/src/preferences/mail/AutoConfigView.cpp b/src/preferences/mail/AutoConfigView.cpp index 37a9d3599c..b4e57c3fba 100644 --- a/src/preferences/mail/AutoConfigView.cpp +++ b/src/preferences/mail/AutoConfigView.cpp @@ -7,6 +7,8 @@ #include "AutoConfigView.h" +#include + #include #include #include @@ -85,6 +87,10 @@ AutoConfigView::AutoConfigView(BRect rect, AutoConfig &config) B_TRANSLATE("Real name:"), "", NULL); AddChild(fNameView); fNameView->SetDivider(divider); + + struct passwd* passwd = getpwent(); + if (passwd != NULL) + fNameView->SetText(passwd->pw_gecos); }