From: Art Cancro Date: Fri, 22 Feb 2013 04:00:24 +0000 (-0500) Subject: Began writing a routine to fetch the user's preferred display name for authenticated... X-Git-Tag: v8.20~92^2 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=c4697d58bd65e7118ba7a3775e1a4d9b4cf941cc Began writing a routine to fetch the user's preferred display name for authenticated-smtp mails. Couldn't test it because my citserver is crashing from another bug. --- diff --git a/citadel/modules/smtp/serv_smtp.c b/citadel/modules/smtp/serv_smtp.c index cf8f6eb74..49169b6f3 100644 --- a/citadel/modules/smtp/serv_smtp.c +++ b/citadel/modules/smtp/serv_smtp.c @@ -303,6 +303,23 @@ void smtp_hello(long offset, long which_command) } +/* + * The configuration item for the user's preferred display name for outgoing email is, unfortunately, + * stored in the account's WebCit configuration. We have to fetch it now. +void smtp_webcit_preferences_hack(void) { + char config_roomname[ROOMNAMELEN]; + + snprintf(config_roomname, sizeof config_roomname, "%010ld.%s", CC->user.usernum, USERCONFIGROOM); + if (CtdlGetRoom(&CC->room, config_roomname) != 0) { + return; + } + + // FIXME ... finish this + +} + */ + + /* * Implement HELP command. @@ -388,6 +405,7 @@ void smtp_try_plain(long offset, long Flags) if (result == login_ok) { if (CtdlTryPassword(pass, len) == pass_ok) { + /* smtp_webcit_preferences_hack(); */ smtp_auth_greeting(offset, Flags); return; }