Fix problem where HTML listsub subscribe/unsubscribe message appears blank
authorMichael Hampton <io_error@uncensored.citadel.org>
Fri, 19 Jan 2007 16:40:13 +0000 (16:40 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Fri, 19 Jan 2007 16:40:13 +0000 (16:40 +0000)
citadel/configure.ac
citadel/serv_listsub.c

index fa8e70a8a66111069d6e5eda2c0997ef88f38cae..b322a4b00b724acfd4b1d71fc1fcda1ac9aa0265 100644 (file)
@@ -166,8 +166,11 @@ case "$host" in
                AC_MSG_RESULT([BSD/OS])
        ;;
        dnl Curses support on Mac OS X is kind of screwed at the moment.
+       dnl TCP buffering isn't ideal under OS X. This define should also be
+       dnl checked in other cases of OS X-Linux differences.
        *-*-darwin*)
                AC_DEFINE(DISABLE_CURSES)
+               AC_DEFINE(HAVE_DARWIN)
                AC_MSG_RESULT([Mac OS X])
        ;;
        dnl Digital Unix has an odd way to build for pthreads, and we can't
@@ -663,29 +666,29 @@ fi
 
 AC_REPLACE_FUNCS(snprintf getutline)
 
-AC_CACHE_CHECK([the weather], ac_cv_weather, [
-#      sleep 1
-#      echo $ECHO_N "opening your window... $ECHO_C" >&6
-#      sleep 2
-#      month=`date | cut -f 2 -d ' '`
-#      case $month in
-#      Dec | Jan | Feb)
-#              ac_cv_weather="it's cold!"
-#              ;;
-#      Mar | Apr)
-#              ac_cv_weather="it's wet!"
-#              ;;
-#      Jul | Aug)
-#              ac_cv_weather="it's hot!"
-#              ;;
-#      Oct | Nov)
-#              ac_cv_weather="it's cool"
-#              ;;
-#      May | Jun | Sep | *)
-#              ac_cv_weather="it's fine"
-#              ;;
-#      esac
-#      ])
+AC_CACHE_CHECK([the weather], ac_cv_weather, [
+       sleep 1
+       echo $ECHO_N "opening your window... $ECHO_C" >&6
+       sleep 2
+       month=`date | cut -f 2 -d ' '`
+       case $month in
+       Dec | Jan | Feb)
+               ac_cv_weather="it's cold!"
+               ;;
+       Mar | Apr)
+               ac_cv_weather="it's wet!"
+               ;;
+       Jul | Aug)
+               ac_cv_weather="it's hot!"
+               ;;
+       Oct | Nov)
+               ac_cv_weather="it's cool"
+               ;;
+       May | Jun | Sep | *)
+               ac_cv_weather="it's fine"
+               ;;
+       esac
+       ])
 
 
 
@@ -700,19 +703,7 @@ AC_CACHE_CHECK([under the bed], ac_cv_under_the_bed, [
                ;;
        esac
        ])
-AC_CANONICAL_HOST
-AC_MSG_CHECKING([for reality distorion field])
-case "$host" in
-       dnl TCP buffering isn't ideal under OS X. This define should also be
-       dnl checked in other cases of OS X-Linux differences.
-       *-*-darwin*)
-               AC_DEFINE(HAVE_DARWIN)
-               AC_MSG_RESULT([present])
-       ;;
-       *)
-               AC_MSG_RESULT([missing])
-       ;;
-esac
+
 dnl Done! Now write the Makefile and sysdep.h
 AC_SUBST(AUTH)
 AC_SUBST(CHKPWD)
index bab07a74badc7867e504ccfc39cef58c93dde047..16a0b963319b2e8c016aa316e4f364a63ac20bbf 100644 (file)
@@ -179,6 +179,7 @@ void do_subscribe(char *room, char *email, char *subtype, char *webpage) {
                "\n"
                "--__ctdlmultipart__\n"
                "Content-type: text/html\n"
+               "\n"
                "<HTML><BODY>\n"
                "Someone (probably you) has submitted a request to subscribe\n"
                "&lt;%s&gt; to the <B>%s</B> mailing list.<BR><BR>\n"
@@ -318,6 +319,7 @@ void do_unsubscribe(char *room, char *email, char *webpage) {
                "\n"
                "--__ctdlmultipart__\n"
                "Content-type: text/html\n"
+               "\n"
                "<HTML><BODY>\n"
                "Someone (probably you) has submitted a request to unsubscribe\n"
                "&lt;%s&gt; from the <B>%s</B> mailing list.<BR><BR>\n"