From ecdbbd1705d106ac42617457dbb3cdfa8d5988fc Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Fri, 1 Sep 2000 03:43:09 +0000 Subject: [PATCH] * Added 'author' command-line arg to aidepost. Closes enhancement request #71 on bugzilla. * Put the default SMTP and POP3 ports back to 25 and 110. Now that the unix domain socket bug is fixed, it's ok if these binds fail. --- citadel/ChangeLog | 7 +++++++ citadel/aidepost.c | 15 +++++++++++---- citadel/serv_imap.c | 2 +- citadel/setup.c | 4 ++-- 4 files changed, 21 insertions(+), 7 deletions(-) diff --git a/citadel/ChangeLog b/citadel/ChangeLog index e6365488f..67406c08c 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -1,4 +1,10 @@ $Log$ + Revision 572.34 2000/09/01 03:43:09 ajc + * Added 'author' command-line arg to aidepost. Closes enhancement request + #71 on bugzilla. + * Put the default SMTP and POP3 ports back to 25 and 110. Now that the + unix domain socket bug is fixed, it's ok if these binds fail. + Revision 572.33 2000/08/31 23:02:15 ajc * ig_tcp_server() and ig_uds_server() - check to make sure queue length is always at least 5. Zero-length queues can cause connection lockups. @@ -2018,3 +2024,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant Fri Jul 10 1998 Art Cancro * Initial CVS import + diff --git a/citadel/aidepost.c b/citadel/aidepost.c index 935df22b7..81fbe7784 100644 --- a/citadel/aidepost.c +++ b/citadel/aidepost.c @@ -14,7 +14,7 @@ #include "citadel.h" #include "config.h" -void make_message(FILE *fp, char *target_room) +void make_message(FILE *fp, char *target_room, char *author) { int a; long bb, cc; @@ -27,7 +27,7 @@ void make_message(FILE *fp, char *target_room) putc(0, fp); fprintf(fp, "T%ld", (long)now); putc(0, fp); - fprintf(fp, "ACitadel"); + fprintf(fp, "A%s", author); putc(0, fp); fprintf(fp, "O%s", target_room); putc(0, fp); @@ -53,6 +53,7 @@ int main(int argc, char **argv) { char tempspool[64]; char target_room[ROOMNAMELEN]; + char author[64]; FILE *tempfp, *spoolfp; int ch; int i; @@ -60,12 +61,18 @@ int main(int argc, char **argv) get_config(); strcpy(target_room, "Aide"); + strcpy(author, "Citadel"); for (i=1; i