From 52d8adf3fa79c627e904b403e0cb525a30adbe0e Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sat, 19 Jun 2004 03:11:07 +0000 Subject: [PATCH] * Instead of a crufty "the topmost Internet email address will be used for outgoing email" explanation, separated it into "Primary Internet email address" and "Other email addresses" boxes. --- webcit/ChangeLog | 6 +++- webcit/static/newstartpage.html | 2 +- webcit/static/prompt_for_recipient.html | 2 +- webcit/vcard_edit.c | 40 ++++++++++++++++--------- 4 files changed, 33 insertions(+), 17 deletions(-) diff --git a/webcit/ChangeLog b/webcit/ChangeLog index 9f6713a05..7a5d7fa49 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,9 @@ $Log$ +Revision 521.10 2004/06/19 03:11:07 ajc +* Instead of a crufty "the topmost Internet email address will be used + for outgoing email" explanation, separated it into "Primary Internet + email address" and "Other email addresses" boxes. + Revision 521.9 2004/06/19 02:42:12 ajc * Removed the "aides access to mailboxes" config option, which is no longer part of the Citadel system. @@ -1908,4 +1913,3 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix - diff --git a/webcit/static/newstartpage.html b/webcit/static/newstartpage.html index 00089d913..75573cf4f 100644 --- a/webcit/static/newstartpage.html +++ b/webcit/static/newstartpage.html @@ -1,4 +1,4 @@ - +
+
Send private e-mail
diff --git a/webcit/vcard_edit.c b/webcit/vcard_edit.c index 1eec8b339..e20d29673 100644 --- a/webcit/vcard_edit.c +++ b/webcit/vcard_edit.c @@ -56,7 +56,8 @@ void do_edit_vcard(long msgnum, char *partnum, char *return_to) { char country[SIZ]; char hometel[SIZ]; char worktel[SIZ]; - char inetemail[SIZ]; + char primary_inetemail[SIZ]; + char other_inetemail[SIZ]; char extrafields[SIZ]; lastname[0] = 0; @@ -73,7 +74,8 @@ void do_edit_vcard(long msgnum, char *partnum, char *return_to) { country[0] = 0; hometel[0] = 0; worktel[0] = 0; - inetemail[0] = 0; + primary_inetemail[0] = 0; + other_inetemail[0] = 0; extrafields[0] = 0; output_headers(3); @@ -150,10 +152,15 @@ void do_edit_vcard(long msgnum, char *partnum, char *return_to) { } else if (!strcasecmp(key, "email;internet")) { - if (inetemail[0] != 0) { - strcat(inetemail, "\n"); + if (primary_inetemail[0] == 0) { + strcpy(primary_inetemail, value); + } + else { + if (other_inetemail[0] != 0) { + strcat(other_inetemail, "\n"); + } + strcat(other_inetemail, value); } - strcat(inetemail, value); } else { @@ -236,12 +243,16 @@ void do_edit_vcard(long msgnum, char *partnum, char *return_to) { "VALUE=\"%s\" MAXLENGTH=\"29\">
\n", worktel); - wprintf("
Internet e-mail addresses:
" - "For addresses in the Citadel directory, " - "the topmost address will be used in outgoing mail." - "
" - "

\n"); wprintf(" 0) { serv_printf("email;internet:%s", buf); } -- 2.39.2