]>
git.ipfire.org Git - thirdparty/mlmmj.git/log
mmj [Tue, 8 Feb 2005 18:40:07 +0000 (05:40 +1100)]
TUNABLES update
mmj [Tue, 8 Feb 2005 18:21:48 +0000 (05:21 +1100)]
Alternate listaddresses
mmj [Tue, 8 Feb 2005 18:13:14 +0000 (05:13 +1100)]
Tunable port to connect to
mmj [Tue, 8 Feb 2005 09:34:33 +0000 (20:34 +1100)]
1.2.3 updates
mmj [Mon, 7 Feb 2005 19:37:40 +0000 (06:37 +1100)]
Add .filename.lock file to lock against. Only allow addresses with a @ in them. 1.2.3
mmj [Thu, 3 Feb 2005 16:20:32 +0000 (03:20 +1100)]
Last fix, DSN is confirmed to work
mmj [Thu, 3 Feb 2005 15:47:51 +0000 (02:47 +1100)]
Remember / after listdir
mmj [Thu, 3 Feb 2005 15:39:40 +0000 (02:39 +1100)]
Init struct before usage
mmj [Thu, 3 Feb 2005 15:18:52 +0000 (02:18 +1100)]
We need this in CVS
mmj [Thu, 3 Feb 2005 15:03:40 +0000 (02:03 +1100)]
README enhancements
mmj [Thu, 3 Feb 2005 14:53:15 +0000 (01:53 +1100)]
Make mlmmj-bounce able to extract addresses from DSN's as specified in RFC1891
mmj [Thu, 3 Feb 2005 14:34:31 +0000 (01:34 +1100)]
a zero sized verp string should still enable verp
mmj [Tue, 1 Feb 2005 15:00:56 +0000 (02:00 +1100)]
Date: rfc conformance
mmj [Tue, 1 Feb 2005 09:18:21 +0000 (20:18 +1100)]
1.2.2 update
mmj [Tue, 1 Feb 2005 09:16:55 +0000 (20:16 +1100)]
Remove THANKS, awfully out of date
mmj [Tue, 1 Feb 2005 09:14:01 +0000 (20:14 +1100)]
Bugfixes and 1.2.2
mmj [Mon, 31 Jan 2005 13:14:08 +0000 (00:14 +1100)]
Forgot control/noget
mmj [Fri, 28 Jan 2005 13:03:55 +0000 (00:03 +1100)]
mlmmj-make-ml.sh will now know where the listtexts where installed
in the system, and use that as default.
mmj [Fri, 28 Jan 2005 13:02:29 +0000 (00:02 +1100)]
1.2.1 README commit
mmj [Fri, 28 Jan 2005 13:01:33 +0000 (00:01 +1100)]
VERSION changed
mmj [Wed, 26 Jan 2005 18:03:57 +0000 (05:03 +1100)]
Move nosubonlydenymails check to the right place
mmj [Mon, 24 Jan 2005 15:24:17 +0000 (02:24 +1100)]
Add switches to control whether or not mlmmj sends out mails explaining
that posts got denied.
mmj [Mon, 24 Jan 2005 14:44:40 +0000 (01:44 +1100)]
FreeBSD 4 compilation fix
mmj [Sun, 23 Jan 2005 11:39:40 +0000 (22:39 +1100)]
1.2.0
mmj [Sun, 23 Jan 2005 09:41:29 +0000 (20:41 +1100)]
#if 0 for debug info
mmj [Wed, 19 Jan 2005 19:22:14 +0000 (06:22 +1100)]
- subswitch, NULL);
+ subswitch, (char *)NULL);
To shut up gcc-4
mmj [Tue, 18 Jan 2005 13:25:55 +0000 (00:25 +1100)]
RC2 update
mmj [Tue, 18 Jan 2005 13:24:40 +0000 (00:24 +1100)]
1.2.0-RC2
mmj [Tue, 18 Jan 2005 13:22:44 +0000 (00:22 +1100)]
Lets init the strlist before starting to use it
mmj [Tue, 18 Jan 2005 10:47:42 +0000 (21:47 +1100)]
Fix off by one error
mmj [Tue, 18 Jan 2005 08:03:47 +0000 (19:03 +1100)]
Logging
mmj [Tue, 18 Jan 2005 07:52:47 +0000 (18:52 +1100)]
log unsubs from mlmmj-maintd to log_oper
mmj [Tue, 18 Jan 2005 07:39:14 +0000 (18:39 +1100)]
Lets only rotate log if it exists
mmj [Mon, 17 Jan 2005 23:47:16 +0000 (10:47 +1100)]
Don't send the rest of the batch inside the while() loop
mmj [Sun, 16 Jan 2005 18:43:48 +0000 (05:43 +1100)]
VERP support
mmj [Sun, 16 Jan 2005 14:21:51 +0000 (01:21 +1100)]
char c, not int c
mmj [Sat, 15 Jan 2005 11:04:08 +0000 (22:04 +1100)]
1.1.1-RC2
mmj [Sat, 15 Jan 2005 10:53:52 +0000 (21:53 +1100)]
Removed discardedname var since we don't need it anymore
mmj [Sat, 15 Jan 2005 10:46:24 +0000 (21:46 +1100)]
Lets add Message-Id: and Date:
mmj [Sat, 15 Jan 2005 10:46:12 +0000 (21:46 +1100)]
Add declaration of genmsgid() and gendatestr()
mmj [Fri, 14 Jan 2005 15:37:18 +0000 (02:37 +1100)]
log_oper is now varargs capable, which is much nicer.
mmj [Fri, 14 Jan 2005 08:07:04 +0000 (19:07 +1100)]
Typo in ChangeLog and distribute listtexts/da
mmj [Thu, 13 Jan 2005 22:19:56 +0000 (09:19 +1100)]
s/size_t/off_t/
mmj [Thu, 13 Jan 2005 22:16:39 +0000 (09:16 +1100)]
1.1.1-RC1 for the gentoo guys to test
mmj [Thu, 13 Jan 2005 22:15:38 +0000 (09:15 +1100)]
Remove logging for now. The function itself is ok, it's more about the
conventions.
mmj [Thu, 13 Jan 2005 22:06:41 +0000 (09:06 +1100)]
Never ever discard stuff from the queue/. Let the admin worry about that.
mmj [Thu, 13 Jan 2005 21:37:34 +0000 (08:37 +1100)]
Fixup mlmmj-bounce to get the parameters correctly and everything.
mmj [Thu, 13 Jan 2005 19:39:12 +0000 (06:39 +1100)]
Make sure we don't shadow some vars
mmj [Thu, 13 Jan 2005 19:37:11 +0000 (06:37 +1100)]
Remove call to myunlock, since it's closed right after
mmj [Thu, 13 Jan 2005 19:35:22 +0000 (06:35 +1100)]
Make the envelope from match the new order (VERP prep) and also remove
superflous call to myunlock().
mmj [Thu, 13 Jan 2005 19:32:18 +0000 (06:32 +1100)]
Remove call to myunlock, since it's closed right after
mmj [Thu, 13 Jan 2005 19:31:15 +0000 (06:31 +1100)]
Remove call to myunlock, since it's closed right after
mmj [Thu, 13 Jan 2005 19:29:39 +0000 (06:29 +1100)]
Fix unlocking. It doesn't really matter, since the locks are released before
this call, or will be shortly after due to a close(fd);
mmj [Thu, 13 Jan 2005 18:40:31 +0000 (05:40 +1100)]
Now it at least compiles
mmj [Thu, 13 Jan 2005 16:35:40 +0000 (03:35 +1100)]
ChangeLog forgotten stuff
mmj [Thu, 13 Jan 2005 16:34:46 +0000 (03:34 +1100)]
Header file for new Log Operation function
mmj [Thu, 13 Jan 2005 16:33:54 +0000 (03:33 +1100)]
--- ChangeLog 29 Nov 2004 08:10:47 -0000 1.95
+++ ChangeLog 14 Dec 2004 10:11:59 -0000
@@ -1,3 +1,7 @@
+ o Danish listtexts, thanks Jesper Lund
+ o Add control/noget to turn of listname+get-INDEX
+ o Rearrange envelope from to be listname+bounces-index-user=domain.tld@ instead
+ of listname+bounces-user=domain.tld-index@ to prepare for VERP support
1.1.0
o If mlmmj-recieve was invoked with a uid not root or not the owner of listdir
inform about the uid actually invoked with
This describes the last commits nicely.
mmj [Thu, 13 Jan 2005 16:32:35 +0000 (03:32 +1100)]
New log operation file.
mmj [Thu, 13 Jan 2005 16:31:08 +0000 (03:31 +1100)]
Remove a comment to get a log message which was missing before:
1.30 -> 1.31 had the following changes:
LISTDIR/control/noget option for disabling +get- command.
Reshuffle the way bounces look.
mmj [Thu, 13 Jan 2005 16:28:38 +0000 (03:28 +1100)]
Grab the lock right after we start sending, and not release before
completely done with it.
--- mlmmj-send.c 25 Nov 2004 15:59:34 -0000 1.66
+++ mlmmj-send.c 13 Jan 2005 16:27:50 -0000
@@ -600,11 +600,17 @@
/* initialize file with mail to send */
- if((mailfd = open(mailfilename, O_RDONLY)) < 0) {
+ if((mailfd = open(mailfilename, O_RDWR)) < 0) {
log_error(LOG_ARGS, "Could not open '%s'", mailfilename);
exit(EXIT_FAILURE);
}
+ if(myexcllock(mailfd) < 0) {
+ log_error(LOG_ARGS, "Could not lock '%s'."
+ "Mail not sent!", mailfilename);
+ exit(EXIT_FAILURE);
+ }
+
if(fstat(mailfd, &st) < 0) {
log_error(LOG_ARGS, "Could not stat mailfd");
exit(EXIT_FAILURE);
@@ -868,7 +874,7 @@
close(sockfd);
munmap(mailmap, st.st_size);
close(mailfd);
-
+
if(archive) {
if(!ctrlarchive)
rename(mailfilename, archivefilename);
@@ -878,5 +884,9 @@
} else if(deletewhensent)
unlink(mailfilename);
+ if(myunlock(mailfd) < 0)
+ log_error(LOG_ARGS, "Could not unlock '%s'", mailfilename);
+
+
return EXIT_SUCCESS;
}
mmj [Thu, 13 Jan 2005 10:19:46 +0000 (21:19 +1100)]
Let's make sure we can get the exclusive lock before discarding mail:
--- mlmmj-maintd.c 12 Nov 2004 01:28:32 -0000 1.42
+++ mlmmj-maintd.c 13 Jan 2005 10:19:04 -0000
@@ -178,16 +178,29 @@
{
struct stat st;
time_t t;
+ int fd, ret = 0;
+
+ fd = open(old, O_RDWR);
+ if(fd < 0)
+ return 0;
+
+ if(myexcllock(fd) < 0) {
+ close(fd);
+ return 0;
+ }
stat(old, &st);
t = time(NULL);
- if(t - st.st_mtime > age) {
- rename(old, new);
- return 1;
- }
+ if(t - st.st_mtime > age)
+ if(rename(old, new) < 0)
+ ret = 0;
+ else
+ ret = 1;
- return 0;
+ myunlock(fd);
+ close(fd);
+ return ret;
}
int resend_queue(const char *listdir, const char *mlmmjsend)
mmj [Thu, 13 Jan 2005 08:57:32 +0000 (19:57 +1100)]
Let's spin until fcntl does not return EINTR due to a signal.
--- mylocking.c 16 Jun 2004 21:11:54 -0000 1.3
+++ mylocking.c 13 Jan 2005 08:56:24 -0000
@@ -34,7 +34,9 @@
locktype.l_whence = SEEK_SET;
locktype.l_start = 0;
locktype.l_len = 0;
- mylock = fcntl(fd, F_SETLKW, &locktype);
+ do {
+ mylock = fcntl(fd, F_SETLKW, &locktype);
+ while(mylock < 0 && errno == EINTR);
return mylock;
}
@@ -45,7 +47,9 @@
struct flock locktype;
locktype.l_type = F_UNLCK;
- myunlock = fcntl(fd, F_SETLKW, &locktype);
+ do {
+ myunlock = fcntl(fd, F_SETLKW, &locktype);
+ while(myunlock < 0 && errno == EINTR)
return myunlock;
}
mmj [Tue, 14 Dec 2004 10:13:21 +0000 (21:13 +1100)]
Danske listtexter
mmj [Wed, 1 Dec 2004 19:00:07 +0000 (06:00 +1100)]
Makefile.am for packaging listtexts/de
mmj [Mon, 29 Nov 2004 08:14:25 +0000 (19:14 +1100)]
Distribute mlmmj-list.1
mmj [Mon, 29 Nov 2004 08:10:48 +0000 (19:10 +1100)]
Inform about uid in the logs when invoked wrongly
mmj [Sun, 28 Nov 2004 19:01:31 +0000 (06:01 +1100)]
Added [config.h].in
mmj [Sun, 28 Nov 2004 18:54:24 +0000 (05:54 +1100)]
ChangeLog entry about .de texts
mmj [Sun, 28 Nov 2004 18:52:57 +0000 (05:52 +1100)]
Patch from Drake Wyrm
mmj [Sun, 28 Nov 2004 18:52:41 +0000 (05:52 +1100)]
German listtexts
mmj [Sun, 28 Nov 2004 18:47:01 +0000 (05:47 +1100)]
Prep for 1.1.0 and patch from Drake Wyrm
mmj [Sun, 28 Nov 2004 18:46:43 +0000 (05:46 +1100)]
mlmmj-list update
mmj [Fri, 26 Nov 2004 14:36:27 +0000 (01:36 +1100)]
perl interface update from xi
mmj [Thu, 25 Nov 2004 20:01:02 +0000 (07:01 +1100)]
1.1.0-RC3 prep
mmj [Thu, 25 Nov 2004 20:00:53 +0000 (07:00 +1100)]
Add moderate tag to access rules
mmj [Thu, 25 Nov 2004 16:04:05 +0000 (03:04 +1100)]
Forgotten commits
mmj [Thu, 25 Nov 2004 16:03:18 +0000 (03:03 +1100)]
PHP updates from Christoph
mortenp [Thu, 25 Nov 2004 15:59:34 +0000 (02:59 +1100)]
Add a To: header with the recipient's address when sending digests
mmj [Mon, 22 Nov 2004 14:35:02 +0000 (01:35 +1100)]
Don't try to realloc unless we own already
mmj [Mon, 22 Nov 2004 14:15:45 +0000 (01:15 +1100)]
Before sending the mail to +owner, we should strip
"From "
"Return-Path:"
Or some (broken) mailers may think a new mail is starting.
mmj [Mon, 22 Nov 2004 14:12:56 +0000 (01:12 +1100)]
Add missing include to statctrl
mmj [Mon, 22 Nov 2004 12:25:01 +0000 (23:25 +1100)]
Change statctrl to only return a file is not there, if stat() explicitly said so
mmj [Thu, 18 Nov 2004 11:58:27 +0000 (22:58 +1100)]
Make the mlmmj-list switches more compatible with the rest
mmj [Wed, 17 Nov 2004 13:03:56 +0000 (00:03 +1100)]
Add newline after generic subject
mmj [Wed, 17 Nov 2004 13:03:15 +0000 (00:03 +1100)]
Add newline after From
mmj [Mon, 15 Nov 2004 10:49:29 +0000 (21:49 +1100)]
Don't do RECIPDELIM in this batch
mmj [Mon, 15 Nov 2004 10:42:26 +0000 (21:42 +1100)]
Cannot update headers if there's none
mmj [Mon, 15 Nov 2004 10:21:06 +0000 (21:21 +1100)]
free a little later
mmj [Mon, 15 Nov 2004 10:17:45 +0000 (21:17 +1100)]
Add customheaders to digests as well
mmj [Mon, 15 Nov 2004 08:45:06 +0000 (19:45 +1100)]
Only read one extra char if there is one
mmj [Mon, 15 Nov 2004 08:35:51 +0000 (19:35 +1100)]
close another couple of leaks
mmj [Mon, 15 Nov 2004 08:17:04 +0000 (19:17 +1100)]
Close memleak in send_digest()
mmj [Fri, 12 Nov 2004 10:50:23 +0000 (21:50 +1100)]
VERSION is now RC2
mmj [Fri, 12 Nov 2004 10:49:28 +0000 (21:49 +1100)]
New binary: mlmmj-list
mmj [Fri, 12 Nov 2004 01:28:32 +0000 (12:28 +1100)]
Warning fixes and release prep
mmj [Thu, 11 Nov 2004 23:27:07 +0000 (10:27 +1100)]
Substitute all of them and convert moderation to prepstdreply
mmj [Thu, 11 Nov 2004 15:26:43 +0000 (02:26 +1100)]
fix typo
mmj [Thu, 11 Nov 2004 14:54:55 +0000 (01:54 +1100)]
Further fixups to new prepstdreply. Seems to work now, needs more testing though
mmj [Thu, 11 Nov 2004 13:35:38 +0000 (00:35 +1100)]
*GRRR* FFS
mmj [Thu, 11 Nov 2004 13:34:03 +0000 (00:34 +1100)]
Better fix for the strchr