Re: [courier-users] More on OpenBSD 4.1

This is a discussion on Re: [courier-users] More on OpenBSD 4.1 within the Courier-Imap forums, part of the Mail Servers and Related category; This is a MIME GnuPG-signed message. If you see this text, it means that your E-mail or Usenet ...


Go Back   Usenet Forums > Mail Servers and Related > Courier-Imap

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-03-2007
Sam Varshavchik
 
Posts: n/a
Default Re: [courier-users] More on OpenBSD 4.1

This is a MIME GnuPG-signed message. If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.

--===============0538862858==
Content-Type: multipart/signed;
boundary="=_mimegpg-commodore.email-scan.com-20909-1183501259-0004";
micalg=pgp-sha1; protocol="application/pgp-signature"

This is a MIME GnuPG-signed message. If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.

--=_mimegpg-commodore.email-scan.com-20909-1183501259-0004
Content-Type: text/plain; format=flowed; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
X-Mime-Autoconverted: from 8bit to quoted-printable by mimegpg

Heh, my first try got mangled. Time to squish a bug=E2=80=A6

Steve Shockley writes:

> When building on OpenBSD 4.1, I get the following:
>=20
> gmake[4]: Leaving directory=20
> `/usr/ports/mystuff/mail/courier/w-courier-0.56.0/build-i386/courier/mo=

dule.dsn'
>
> [ =E2=80=A6 ]


I'm not sure what's the problem with some of these. It's complaining abou=
t=20
perfectly valid code.

I'm going to have to guess here. Try applying this patch:

Index: courier/webmlmd.C
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D
RCS file: /cvsroot/courier/courier/courier/courier/webmlmd.C,v
retrieving revision 1.15
diff -U3 -r1.15 webmlmd.C
--- courier/webmlmd.C=0930 Jun 2007 03:49:11 -0000=091.15
+++ courier/webmlmd.C=093 Jul 2007 11:04:34 -0000
@@ -606,7 +606,11 @@
=09cmdset(args_array, false);
=20
=09{
-=09=09std::istringstream i(std::string(cgi("optheaderadd")) + "\n");
+=09=09std::string key=3Dcgi("optheaderadd");
+
+=09=09key +=3D "\n";
+
+=09=09std::istringstream i(key);
=20
=09=09std::ofstream ofs(HEADERADD ".new");
=20
@@ -623,7 +627,10 @@
=09}
=20
=09{
-=09=09std::istringstream i(std::string(cgi("optheaderdel")) + "\n");
+=09=09std::string key=3Dcgi("optheaderdel");
+=09=09key +=3D "\n";
+
+=09=09std::istringstream i(key);
=20
=09=09std::ofstream ofs(HEADERDEL ".new");
=20
@@ -953,10 +960,10 @@
=20
=09if (ctlmsg.start(ext, address, "ctlmsg"))
=09{
-=09=09FILE *stdin=3Dctlmsg.stdinptr();
+=09=09FILE *stdinptr=3Dctlmsg.stdinptr();
=20
=09=09ctlmsg.mk_received_header();
-=09=09fprintf(stdin, "\nSubscription request received.\n");
+=09=09fprintf(stdinptr, "\nSubscription request received.\n");
=20
=09=09if (ctlmsg.wait())
=09=09{
@@ -1100,10 +1107,10 @@
=09=09=09if (confirm.start(method + "-" + token, "",
=09=09=09=09=09 "ctlmsg"))
=09=09=09{
-=09=09=09=09FILE *stdin=3Dconfirm.stdinptr();
+=09=09=09=09FILE *stdinptr=3Dconfirm.stdinptr();
=20
=09=09=09=09confirm.mk_received_header();
-=09=09=09=09fprintf(stdin,
+=09=09=09=09fprintf(stdinptr,
=09=09=09=09=09"Subject: yes -- confirmed by WebMLM\n"
=09=09=09=09=09"\n"
=09=09=09=09=09"Confirmed\n");
@@ -1117,9 +1124,9 @@
=09=09=09=09char buf[1024];
=09=09=09=09bool isfirst=3Dtrue;
=20
-=09=09=09=09FILE *stdout=3Dconfirm.stdoutptr();
+=09=09=09=09FILE *stdoutptr=3Dconfirm.stdoutptr();
=20
-=09=09=09=09while (fgets(buf, sizeof(buf), stdout))
+=09=09=09=09while (fgets(buf, sizeof(buf), stdoutptr))
=09=09=09=09{
=09=09=09=09=09if (isfirst)
=09=09=09=09=09{
Index: courier/webmlmdmod.C
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D
RCS file: /cvsroot/courier/courier/courier/courier/webmlmdmod.C,v
retrieving revision 1.3
diff -U3 -r1.3 webmlmdmod.C
--- courier/webmlmdmod.C=0930 Jun 2007 03:49:11 -0000=091.3
+++ courier/webmlmdmod.C=093 Jul 2007 11:04:34 -0000
@@ -286,10 +286,10 @@
=20
=09if (ctlmsg.start("moderate", "", "ctlmsg"))
=09{
-=09=09FILE *stdin=3Dctlmsg.stdinptr();
+=09=09FILE *stdinptr=3Dctlmsg.stdinptr();
=20
=09=09ctlmsg.mk_received_header();
-=09=09fprintf(stdin, "Subject: yes\n\n"
+=09=09fprintf(stdinptr, "Subject: yes\n\n"
=09=09=09"=3D=3DCUT HERE=3D=3D\n\n=3D=3DCUT HERE=3D=3D\n\n"
=09=09=09"[%s]\n"
=09=09=09"[%s]\n",
@@ -329,10 +329,10 @@
=20
=09if (ctlmsg.start("moderate", "", "ctlmsg"))
=09{
-=09=09FILE *stdin=3Dctlmsg.stdinptr();
+=09=09FILE *stdinptr=3Dctlmsg.stdinptr();
=20
=09=09ctlmsg.mk_received_header();
-=09=09fprintf(stdin, "Subject: %s\n\n"
+=09=09fprintf(stdinptr, "Subject: %s\n\n"
=09=09=09"=3D=3DCUT HERE=3D=3D\n\n%s=3D=3DCUT HERE=3D=3D\n\n"
=09=09=09"[%s]\n"
=09=09=09"[%s]\n",


--=_mimegpg-commodore.email-scan.com-20909-1183501259-0004
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQBGisvLx9p3GYHlUOIRAuWCAJ9dnCS+9kSJAPt40pl3wh zib815AQCfRAhr
KEu0zY2gUO62nL1RwwwG7+0=
=3+4L
-----END PGP SIGNATURE-----

--=_mimegpg-commodore.email-scan.com-20909-1183501259-0004--


--===============0538862858==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
--===============0538862858==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users

--===============0538862858==--

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:10 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0