Commit Graph

156 Commits

Author SHA1 Message Date
Peter Simons
3dcc6e0441 Since we never tested the return codes of *_main() anyway, don't
pretend we do: Made listsern_main(), hermes_main() and approve_main()
officially return "void".
2001-01-20 14:29:28 +00:00
Ralf S. Engelschall
97a01bc9a5 Provide both "make dist" and "make snap". 2001-01-20 14:27:11 +00:00
Ralf S. Engelschall
fd3b775a56 Provide commands for increasing or updating version information in version.c:
# update the date, but keep version number
$ make update-version

# interactively specify new version number
$ make new-version

# batch specify new version version number
$ make new-version VERSION=0.8.15
2001-01-20 14:17:48 +00:00
Ralf S. Engelschall
220dc26a96 Religious cosmetics: Use upper-case for MD5 cookies because it
typographically looks better because the lower-case MD5 cookies looked
too jagged ;)
2001-01-20 14:10:43 +00:00
Ralf S. Engelschall
dc87681766 More information in message 2001-01-20 14:08:25 +00:00
Ralf S. Engelschall
ceeb9ca9c3 Add three GNU standard files we later want anyway... 2001-01-20 14:00:32 +00:00
Peter Simons
e632aade82 Following my quest against underscores in file names, I renamed the
default acknowledgment queue directory from "ack_queue" to
"ack-queue".
2001-01-20 13:58:45 +00:00
Peter Simons
a00353949c Updated the sample config files to the modified tag names. 2001-01-20 13:53:45 +00:00
Ralf S. Engelschall
a047399b38 First bunch of cosmetic adjustments to text messages. Additionally
--masterconf=FILE is also passed through to files created in acknowledge
directory.
2001-01-20 13:52:41 +00:00
Peter Simons
9b1f51ab81 Accidently added this dependent file; corrected the mistake. :-( 2001-01-20 13:45:21 +00:00
Peter Simons
333488e3f9 Renamed acl_scan.c and acl_scan.h to acl-scan.c and acl-scan.h
respectively.
2001-01-20 13:43:30 +00:00
Peter Simons
37d2f1c693 Underscores in file names suck, because you need an extra key-press to
type them compared to the hyphen. For this reason (and for
consistency) I corrected this horrible, horrible mistake of the past
and renamed those files.
2001-01-20 13:42:01 +00:00
Ralf S. Engelschall
7d6693572e Add first cut for a petidomo(1) manual page. 2001-01-20 13:34:57 +00:00
Peter Simons
84ea53543a Renamed the followings tags in petidomo.conf
MTA_Options         --> MTAOptions
    List_Directory      --> ListDirectory
    Ack_Queue_Directory --> AckQueueDirectory

for consistency reasons. While I was at it, I also renamed the source
file from config.c to config-files.c, because the module config.c is
generally associated with GNU autoconf and this has nothing to do with
it.
2001-01-20 13:26:00 +00:00
Ralf S. Engelschall
a333ce43a6 Be careful, listname can be NULL in global operation mode and not
all printf implementations are as smart as BSD's variant. Instead of
printing "(null)" others just dump core.
2001-01-20 11:19:14 +00:00
Ralf S. Engelschall
0e34ed74d9 Ignore LaTeX generated files 2001-01-20 11:00:17 +00:00
Peter Simons
1426a7c640 Cosmetic change. 2001-01-19 21:42:34 +00:00
Peter Simons
70f3d043b4 Updated dependencies. 2001-01-19 21:39:49 +00:00
Peter Simons
2785a387a3 Enhanced portability. This commit also contains an older
change made by Ralf, which I have to re-commit after
screwing up with the "cvs admin" command. Sorry!!!
2001-01-19 21:21:41 +00:00
Peter Simons
cd24ac475e Minor change to enhance portability. 2001-01-19 21:16:25 +00:00
Peter Simons
f651fa8224 The module contains the static variable MasterConfig, which all other
Petidomo routines can access via getMasterConfig(). The routine
getListConfig(), which is defined in config.c, too, used the "correct"
mechanism to access MasterConfig, even though it could access it
directly. Since I chose the same name ("MasterConfig" :->) for the
local copy of the pointer, gcc warns that this variable shadows the
static one. To get rid of this warning, and since it doesn't make one
bit a difference, getListConfig() accessse the static variable
directly now.
2001-01-19 20:51:11 +00:00
Peter Simons
ac901a4e1c Changed ACL semantics: The ACL is processed only if the posting didn't
have a valid password. If it did, the mail is going through in any
case and the ACL is not tested.
2001-01-19 16:46:25 +00:00
Peter Simons
73ed1ee547 In case no index file is installed, "make install" will create an
example file at the correct location so that the admininstrator
hopefully figures out that there is some work to be done.
2001-01-19 16:19:59 +00:00
Peter Simons
c9033a31a7 - Added a warning message to be logged when no global ACL file exists.
- Reordered tests in check_local_acl_file: When no listname has been
  given, we don't need to initialize the lexer at all.
2001-01-19 16:08:51 +00:00
Peter Simons
c9eddba714 Petidomo used the mail's envelope to deliver the request for
confirmation. I have changed this to either reply-to or from (if
reply-to is unset), because sendmail will destroy the original
envelope under obscure circumstances.
2001-01-19 16:02:22 +00:00
Peter Simons
65727bdc47 Removed unnecessary cast. 2001-01-19 15:27:58 +00:00
Peter Simons
4b7563f263 Due to a mix-up in the variable names, Petidomo expanded all list
config file paths incorrectly when the list has a flat hierarchy. That
is fixed now.
2001-01-19 15:26:53 +00:00
Ralf S. Engelschall
5e5d16e5f3 Provide "make dist" command for rolling distribution tarball. 2001-01-19 15:09:12 +00:00
Peter Simons
1d2ace552e Added version information to the start-up log message. 2001-01-19 15:08:26 +00:00
Ralf S. Engelschall
a63cdcd16b First step in GNu shtool version support:
Add version.c and use it for "petidomo --version".
Support for handling version.c in Makefile.in is coming later.
2001-01-19 15:01:19 +00:00
Ralf S. Engelschall
00eb2b8fc0 Get rid of all complaints from GCC 2.97
(except for two things which I do not want to change on my own)
2001-01-19 14:56:33 +00:00
Peter Simons
727cb694ec Incorporated the cookie into the end-of-mail-marker used in the
ack-script, so that the whole mechanism doesn't break when somebody
has the words '[end-of-mail-marker]' in the mail body itself.
2001-01-19 14:53:23 +00:00
Peter Simons
c2fde848d9 Fixed the spelling of the newly added syslog messages. 2001-01-19 14:28:08 +00:00
Peter Simons
89c8fa617c Moved the initial startup log message up so that it is logged before
the main config file is parsed. Also added the path of the main config
file to the message so that people can see where Petidomo locks for it
in case parsing fails.
2001-01-19 14:26:48 +00:00
Peter Simons
0b219dd569 Greatly enhanced the log messages Petidomo writes. Made the existing
messages more helpful, added lots of new ones, generally made things
real perfect. Remember: Life is BEAUTIFUL.
2001-01-19 14:18:43 +00:00
Ralf S. Engelschall
cff3b98e7f Do not show subdir walking commands 2001-01-19 14:14:18 +00:00
Peter Simons
dfa298ce19 Added a message that is logged every time Petidomo starts up. This
message will "dump" the configuration of Petidomo so that the user has
a clue which Petidomo instance is doing what.
2001-01-19 14:09:48 +00:00
Peter Simons
0670963e12 When a un-/subscribe command needs confirmation, the request for
confirmation is sent to the address that is supposed to added to or
removed from the list. If, and only if, this address is different than
the one from which the request came, a short mail is sent to the
requestor to inform him what is going on.
2001-01-19 13:31:11 +00:00
Peter Simons
5cffe86638 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:20:34 +00:00
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