From c4697d58bd65e7118ba7a3775e1a4d9b4cf941cc Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 21 Feb 2013 23:00:24 -0500 Subject: [PATCH] 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. --- citadel/modules/smtp/serv_smtp.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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; } -- 2.30.2