OSSP CVS Repository

ossp - Check-in [271]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 271
Date: 2001-Jan-15 17:35:06 (local)
2001-Jan-15 16:35:06 (UTC)
User:simons
Branch:
Comment: Removed the whole concept of "alien subscription". It was stupid to begin with and now that we'll have acknowledged subscriptions, it is useless, too.
Tickets:
Inspections:
Files:
ossp-pkg/petidomo/config.c      1.12 -> 1.13     1 inserted, 5 deleted
ossp-pkg/petidomo/petidomo.h      1.8 -> 1.9     1 inserted, 2 deleted
ossp-pkg/petidomo/subscribe.c      1.8 -> 1.9     1 inserted, 66 deleted
ossp-pkg/petidomo/unsubscribe.c      1.8 -> 1.9     1 inserted, 67 deleted

ossp-pkg/petidomo/config.c 1.12 -> 1.13

--- config.c     2001/01/15 16:29:11     1.12
+++ config.c     2001/01/15 16:35:06     1.13
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/Attic/config.c,v $
-   $Revision: 1.12 $
+   $Revision: 1.13 $
 
    Copyright (C) 2000 by CyberSolutions GmbH, Germany.
 
@@ -137,7 +137,6 @@
 static char*     postingfilter;
 static char*     archivepath;
 static bool      allowpubsub;
-static bool      allowaliensub;
 static bool      allowmembers;
 static char*     intro_file;
 static char*     sig_file;
@@ -163,7 +162,6 @@
         {
         { "ListType", CF_STRING, &listtype },
         { "AllowPublicSubscription", CF_YES_NO, &allowpubsub },
-        { "AllowAlienSubscription", CF_YES_NO, &allowaliensub },
         { "AllowMembersCommand", CF_YES_NO, &allowmembers },
         { "ReplyTo", CF_STRING, &reply_to },
         { "Hostname", CF_STRING, &list_fqdn },
@@ -191,7 +189,6 @@
     postingfilter    = NULL;
     archivepath      = NULL;
     allowpubsub      = TRUE;
-    allowaliensub    = TRUE;
     allowmembers     = FALSE;
     intro_file       = "introduction";
     sig_file         = "signature";
@@ -261,7 +258,6 @@
         exit(1);
         }
     ListConfig->allowpubsub = allowpubsub;
-    ListConfig->allowaliensub = allowaliensub;
     ListConfig->allowmembers = allowmembers;
     ListConfig->fqdn = (list_fqdn) ? list_fqdn : MasterConfig->fqdn;
     ListConfig->reply_to = reply_to;


ossp-pkg/petidomo/petidomo.h 1.8 -> 1.9

--- petidomo.h   2001/01/15 16:29:11     1.8
+++ petidomo.h   2001/01/15 16:35:06     1.9
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/petidomo.h,v $
-   $Revision: 1.8 $
+   $Revision: 1.9 $
 
    Copyright (C) 2000 by CyberSolutions GmbH, Germany.
 
@@ -74,7 +74,6 @@
     {
     unsigned int  listtype;
     int           allowpubsub;
-    int           allowaliensub;
     int           allowmembers;
     char *        fqdn;
     char *        admin_password;


ossp-pkg/petidomo/subscribe.c 1.8 -> 1.9

--- subscribe.c  2001/01/10 17:12:40     1.8
+++ subscribe.c  2001/01/15 16:35:06     1.9
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/subscribe.c,v $
-   $Revision: 1.8 $
+   $Revision: 1.9 $
 
    Copyright (C) 2000 by CyberSolutions GmbH, Germany.
 
@@ -164,71 +164,6 @@
                 text_wordwrap(buffer, 70);
                 fprintf(fh, "%s\n\n", buffer);
                 fprintf(fh, "password <AdminPassword>\n");
-                fprintf(fh, "subscribe %s %s\n", address, listname);
-                CloseMailer(fh);
-                }
-            else
-                {
-                syslog(LOG_ERR, "Failed to send email to \"%s\"!", owner);
-                return -1;
-                }
-            return 0;
-            }
-
-        if (ListConfig->allowaliensub == FALSE &&
-            (MailStruct->From == NULL || !strcasecmp(address, MailStruct->From) == FALSE) &&
-            (MailStruct->Reply_To == NULL || !strcasecmp(address, MailStruct->Reply_To) == FALSE))
-            {
-            /* Trying to subscribe something different than himself. */
-
-            syslog(LOG_INFO, "\"%s\" tried to subscribe \"%s\" to list \"%s\", but the list " \
-                   "type doesn't allow this.", originator, address, listname);
-
-            fh = vOpenMailer(envelope, originator, NULL);
-            if (fh != NULL)
-                {
-                fprintf(fh, "From: %s-request@%s (Petidomo Mailing List Server)\n",
-                        listname, ListConfig->fqdn);
-                fprintf(fh, "To: %s\n", originator);
-                fprintf(fh, "Subject: Petidomo: Your request \"subscribe %s %s\"\n", address, listname);
-                if (MailStruct->Message_Id != NULL)
-                    fprintf(fh, "In-Reply-To: %s\n", MailStruct->Message_Id);
-                fprintf(fh, "Precedence: junk\n");
-                fprintf(fh, "Sender: %s\n", envelope);
-                fprintf(fh, "\n");
-                buffer = text_easy_sprintf(
-                                           "The mailing list \"%s\" does not allow to automatically subscribe or unsubscribe an " \
-                                           "address not equal to the one, you are mailing from. Your request has been forwarded " \
-                                           "to the list administrator, so please don't send any futher mail. You will be notified " \
-                                           "as soon as possible.", listname);
-                text_wordwrap(buffer, 70);
-                fprintf(fh, "%s\n", buffer);
-                CloseMailer(fh);
-                }
-            else
-                syslog(LOG_ERR, "Failed to send email to \"%s\" concerning his request.",
-                       originator);
-
-            /* Notify the owner. */
-
-            fh = vOpenMailer(envelope, owner, NULL);
-            if (fh != NULL)
-                {
-                fprintf(fh, "From: %s-request@%s (Petidomo Mailing List Server)\n",
-                        listname, ListConfig->fqdn);
-                fprintf(fh, "To: %s\n", owner);
-                fprintf(fh, "Subject: Petidomo: APPROVE %s@%s: Unauthorized request from \"%s\"\n", listname, ListConfig->fqdn, originator);
-                fprintf(fh, "Precedence: junk\n");
-                fprintf(fh, "Sender: %s\n", envelope);
-                fprintf(fh, "\n");
-                buffer = text_easy_sprintf(
-                                           "\"%s\" tried to subscribe the address \"%s\" to the \"%s\" mailing list. " \
-                                           "The list type does not allow subscribing addresses not equal to the From: " \
-                                           "address, though, so the request has been denied. To subscribe this person " \
-                                           "manually, send the following commands to the server:", originator, address, listname);
-                text_wordwrap(buffer, 70);
-                fprintf(fh, "%s\n\n", buffer);
-                fprintf(fh, "password <AdminPassword>\n");
                 fprintf(fh, "subscribe %s %s\n", address, listname);
                 CloseMailer(fh);
                 }


ossp-pkg/petidomo/unsubscribe.c 1.8 -> 1.9

--- unsubscribe.c        2001/01/11 14:10:57     1.8
+++ unsubscribe.c        2001/01/15 16:35:07     1.9
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/unsubscribe.c,v $
-   $Revision: 1.8 $
+   $Revision: 1.9 $
 
    Copyright (C) 2000 by CyberSolutions GmbH, Germany.
 
@@ -166,72 +166,6 @@
                 text_wordwrap(buffer, 70);
                 fprintf(fh, "%s\n\n", buffer);
                 fprintf(fh, "password <AdminPassword>\n");
-                fprintf(fh, "unsubscribe %s %s\n", address, listname);
-                CloseMailer(fh);
-                }
-            else
-                {
-                syslog(LOG_ERR, "Failed to send email to \"%s\"!", owner);
-                return -1;
-                }
-            return 0;
-            }
-        if (ListConfig->allowaliensub == FALSE &&
-            (MailStruct->From == NULL || !strcasecmp(address, MailStruct->From) == FALSE) &&
-            (MailStruct->Reply_To == NULL || !strcasecmp(address, MailStruct->Reply_To) == FALSE))
-            {
-
-            /* Trying to unsubscribe something different than himself. */
-
-            syslog(LOG_INFO, "\"%s\" tried to unsubscribe \"%s\" from list \"%s\", but the " \
-                   "list type doesn't allow this.", originator, address, listname);
-
-            fh = vOpenMailer(envelope, originator, NULL);
-            if (fh != NULL)
-                {
-                fprintf(fh, "From: %s-request@%s (Petidomo Mailing List Server)\n",
-                        listname, ListConfig->fqdn);
-                fprintf(fh, "To: %s\n", originator);
-                fprintf(fh, "Subject: Petidomo: Your request \"unsubscribe %s %s\"\n",
-                        address, listname);
-                if (MailStruct->Message_Id != NULL)
-                    fprintf(fh, "In-Reply-To: %s\n", MailStruct->Message_Id);
-                fprintf(fh, "Precedence: junk\n");
-                fprintf(fh, "Sender: %s\n", envelope);
-                fprintf(fh, "\n");
-                buffer = text_easy_sprintf(
-                                           "The mailing list \"%s\" does not allow to automatically subscribe or unsubscribe an " \
-                                           "address not equal to the one, you are mailing from. Your request has been forwarded " \
-                                           "to the list administrator, so please don't send any futher mail. You will be notified " \
-                                           "as soon as possible.", listname);
-                text_wordwrap(buffer, 70);
-                fprintf(fh, "%s\n", buffer);
-                CloseMailer(fh);
-                }
-            else
-                syslog(LOG_ERR, "Failed to send email to \"%s\" concerning his request.",
-                       originator);
-
-            /* Notify the owner. */
-
-            fh = vOpenMailer(envelope, owner, NULL);
-            if (fh != NULL)
-                {
-                fprintf(fh, "From: %s-request@%s (Petidomo Mailing List Server)\n",
-                        listname, ListConfig->fqdn);
-                fprintf(fh, "To: %s\n", owner);
-                fprintf(fh, "Subject: Petidomo: APPROVE %s@%s: Unauthorized request from \"%s\"\n", listname, ListConfig->fqdn, originator);
-                fprintf(fh, "Precedence: junk\n");
-                fprintf(fh, "Sender: %s\n", envelope);
-                fprintf(fh, "\n");
-                buffer = text_easy_sprintf(
-                                           "\"%s\" tried to unsubscribe the address \"%s\" from the \"%s\" mailing list. " \
-                                           "The list type does not allow unsubscribing addresses not equal to the From: " \
-                                           "address, though, so the request has been denied. To unsubscribe this person " \
-                                           "manually, send the following commands to the server:", originator, address, listname);
-                text_wordwrap(buffer, 70);
-                fprintf(fh, "%s\n\n", buffer);
-                fprintf(fh, "password <AdminPassword>\n");
                 fprintf(fh, "unsubscribe %s %s\n", address, listname);
                 CloseMailer(fh);
                 }

CVSTrac 2.0.1