Commit Graph

217 Commits

Author SHA1 Message Date
Peter Simons
ea35e3f74d Mailing list config files may now have the suffix ".config" or
".conf". Similarly, if the list config file is in a separate
directory, it may be called <listname>/config or <listname>/conf.
2001-01-19 13:12:46 +00:00
Peter Simons
e1fe9b9d4b Added code that will set the real user id of the process equal to the
effective user id.
2001-01-19 13:05:13 +00:00
Peter Simons
1745aa4250 - Word-wrapped long lines to fit into 80 characters per line.
- Updated dependencies.
- Removed BINDIR from FLAGS_TO_PASS as it isn't needed anymore.
2001-01-19 12:50:55 +00:00
Peter Simons
1440285340 Petidomo needs to know the path to the executable in order to write
the ack-spool file, which starts Petidomo again to process the
acknowledged command or posting. I used BINDIR for that, but realized
that this sucks when somebody manually moves the binary. Hence, I am
using the contents of argv[0] now, normalized to an absolute path.
This value is stored in the global variable who_am_i, which the
queue_*() routines now use.
2001-01-19 12:49:44 +00:00
Ralf S. Engelschall
60a0658b81 Get rid of the following GCC complains:
generate_cookie.c: In function `generate_cookie':
generate_cookie.c:58: warning: implicit declaration of function `strlen'
generate_cookie.c: In function `MD5Update':
generate_cookie.c:245: warning: declaration of `index' shadows global declaration
generate_cookie.c:260: warning: implicit declaration of function `memcpy'
generate_cookie.c: In function `MD5Final':
generate_cookie.c:286: warning: declaration of `index' shadows global declaration
generate_cookie.c:303: warning: implicit declaration of function `memset'
2001-01-19 08:31:14 +00:00
Ralf S. Engelschall
2976c607a6 As GCC complained: There is an ISO 9899:1990 (``ISO C'') function
clock(3), so we have a symbol conflict here. Get rid of this by renaming
our symbol.
2001-01-19 08:27:49 +00:00
Ralf S. Engelschall
80f283f8ee Do not use C++ comments in ANSI C 2001-01-19 08:23:11 +00:00
Ralf S. Engelschall
24bae40be7 As we agreed today, Petidomo is now open because licensed under GPL and
always will be licensed under GPL, so use "Petidomo" as the program name
everywhere and consistently.
2001-01-18 20:30:50 +00:00
Ralf S. Engelschall
8cd52f167e Install petidomo-xxxx tools 2001-01-18 20:22:13 +00:00
Ralf S. Engelschall
3a55ccec61 Show were we are operating 2001-01-18 20:20:02 +00:00
Ralf S. Engelschall
f55b087348 Start filling ChangeLog... 2001-01-18 20:07:58 +00:00
Ralf S. Engelschall
7ac5933aa1 *** empty log message *** 2001-01-18 15:43:57 +00:00
Ralf S. Engelschall
b130cb26de *** empty log message *** 2001-01-18 15:43:34 +00:00
Peter Simons
a7691cdfaa Add old RSE admin scripts 2001-01-18 15:31:30 +00:00
Ralf S. Engelschall
f6fbe740a0 ListACLFile -> ACLFile 2001-01-18 14:41:28 +00:00
Ralf S. Engelschall
18c9619303 New layout 2001-01-18 13:17:11 +00:00
Ralf S. Engelschall
6d86950750 New layout 2001-01-18 13:10:18 +00:00
Ralf S. Engelschall
6352e0499d Switch to GNU shtool 2001-01-18 12:54:56 +00:00
Ralf S. Engelschall
5ac9e217db Remove obsolete install-sh 2001-01-18 12:50:47 +00:00
Ralf S. Engelschall
df6412f7d9 Add GNU shtool 2001-01-18 12:45:42 +00:00
Ralf S. Engelschall
e9aa5c16f3 fix install-testlist target 2001-01-18 12:28:24 +00:00
Peter Simons
a620bf4593 When a request for confirmation is required, the originator of the
command will receive a short mail, telling him that this is so, so
that he knows what's going on.
2001-01-16 12:09:12 +00:00
Peter Simons
95ea9d1899 Delayed the processing of the acknowledgment-requirement so that you
don't have to ack commands that will fail anyways.
2001-01-16 11:57:51 +00:00
Peter Simons
04d4355c3f Implemented the acked-once feature. 2001-01-16 11:33:36 +00:00
Peter Simons
e4beacc940 Added new action keyword to the Access Control Language: approve. This
keyword will -- unlike to "pass" -- not only pass the mail, but will
also make sure that the mail passes all other authorization controls.
This means, the mail will be treated as if the Petidomo master
password had been given in the header.
2001-01-16 10:49:08 +00:00
Peter Simons
cf31a9325c Added include of sys/types.h. Required on some systems to be able to
include regex.h.
2001-01-16 10:47:15 +00:00
Peter Simons
5f6df01b4e Moved the call to checkACL() before anything else is tested regarding
authorization. Combined with the new "approve" action in the ACL file,
this allows to pass all other authentication mechanisms with the ACL.
2001-01-16 10:45:21 +00:00
Peter Simons
5df03932d0 Added code that will request confirmation when posting to a list that
is set to "acknowledged".
2001-01-15 19:18:49 +00:00
Peter Simons
2fcd50d4c4 Implemented the approve mode, where incoming mails are searched for
confirmation cookies and the apropriate queue entries will be
executed.
2001-01-15 18:48:49 +00:00
Peter Simons
859f5e9887 The call to queue_command() had the command wrong. 2001-01-15 18:47:32 +00:00
Peter Simons
0cfd7e405e Added code that will send the "request for confirmation" mail out when
apropriate.
2001-01-15 17:56:33 +00:00
Peter Simons
afe1f3f231 Cosmetic change: Reformatted the source. 2001-01-15 17:23:25 +00:00
Peter Simons
56addb6b2f - ListType is no longer a required parameter; it now defaults to "open". 2001-01-15 17:19:36 +00:00
Peter Simons
cce2222de3 Had to make is_approved a global variable, because it is actually
tested in subroutines of listserv_main() and hermes_main(), like
subscribe(), which's parameter list I don't want to change.
2001-01-15 17:06:48 +00:00
Peter Simons
228e6c443c queue_command() and queue_posting() will now return the cookie used as
filename, so that the calling code can mail back the request for
confirmation.
2001-01-15 16:58:58 +00:00
Peter Simons
fd3bf06a8a List's "AllowPublicSubscripiton" does not exist anymore. Now we have
"SubscriptionType" with valid values "public", "admin" or
"acknowledged".
2001-01-15 16:55:45 +00:00
Peter Simons
6168ea3bec - Added Ack_Queue_Dir keyword.
- Changed default of List_Directory from LOCALSTATEDIR to
  LOCALSTATEDIR/lists.
2001-01-15 16:37:33 +00:00
Peter Simons
3ad4ad6931 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.
2001-01-15 16:35:06 +00:00
Peter Simons
f5a3d6dbe8 Implemented spooling mechanism for requests and postings that need an
acknowledgement to be processed. The code is there, it just isn't
called yet.
2001-01-15 16:29:11 +00:00
Peter Simons
40c7ea336b Added --approved command line parameter, which is treated as a
boolean. Whether it is set or not will be passed through to
listserv_main() and to hermes_main(). The parameter will be used by
the spooling mechanism.
2001-01-15 16:27:52 +00:00
Peter Simons
8625cea8e4 Added config entry "AcknowledgementFile" to the mailing list's config file. 2001-01-11 14:17:53 +00:00
Peter Simons
48563f8faa Added generate_cookie() routine taken from mapSoN. 2001-01-11 14:11:33 +00:00
Peter Simons
1ee5bff1c4 The requestor will now receive a mail telling him something went wrong
when he tries to unsubscribe an address without specifying a list
name.
2001-01-11 14:10:57 +00:00
Peter Simons
99aaaee119 Set the right margin for word-wrapping to 70 characters instead of 75. 2001-01-10 17:12:40 +00:00
Peter Simons
5bd861dd77 The requestor will now receive a mail telling him something went wrong
when he tries to subscribe an address without specifying a list name.
2001-01-10 17:08:22 +00:00
Peter Simons
0224f8ad6b When running in listserv mode, there is no 'listname' which can be
used to get the mailing list's configuration. Thus, the routine
shouldn't try to got one. Fixed it.
2001-01-10 17:07:19 +00:00
Peter Simons
6ff1663900 Removed debugging output. 2001-01-10 16:34:00 +00:00
Peter Simons
7104ded04d Changed the ACL code to use the configured locations of the list's ACL
file rather than the hard-coded one.
2001-01-08 20:49:52 +00:00
Peter Simons
c0d14afc86 Completed the install-testlist target. 2001-01-08 20:40:24 +00:00
Peter Simons
88ffd53ded Rewrote Petidomo so that virtually any file's path can be configured
at run-time now.
2001-01-08 20:36:19 +00:00