]>
git.ipfire.org Git - thirdparty/mlmmj.git/log
mmj [Mon, 2 May 2005 18:56:38 +0000 (04:56 +1000)]
Install SIGTERM handler
mmj [Mon, 2 May 2005 18:20:15 +0000 (04:20 +1000)]
forgot the readn.c
mmj [Mon, 2 May 2005 17:41:01 +0000 (03:41 +1000)]
Another one
mmj [Mon, 2 May 2005 17:39:11 +0000 (03:39 +1000)]
read() wrapper, and yet another littering hole plunged
mmj [Sun, 1 May 2005 10:57:52 +0000 (20:57 +1000)]
README.security
mmj [Thu, 28 Apr 2005 10:04:11 +0000 (20:04 +1000)]
Allow bounces with no From:
mmj [Thu, 28 Apr 2005 07:52:06 +0000 (17:52 +1000)]
Cleanup confirmation bounces
mmj [Wed, 27 Apr 2005 18:36:05 +0000 (04:36 +1000)]
Changelog for previous commit
mmj [Wed, 27 Apr 2005 18:35:18 +0000 (04:35 +1000)]
Clean up after us when we have successfully parsed DSN mail
mmj [Wed, 27 Apr 2005 18:02:10 +0000 (04:02 +1000)]
Avoid possible race wrt. moderation
mmj [Tue, 26 Apr 2005 10:24:15 +0000 (20:24 +1000)]
README update
mmj [Tue, 26 Apr 2005 10:13:25 +0000 (20:13 +1000)]
Add a couple of missing newlines
mmj [Tue, 26 Apr 2005 10:04:36 +0000 (20:04 +1000)]
Forgot listsubs in listtexts/Makefile.am
mmj [Tue, 26 Apr 2005 09:56:37 +0000 (19:56 +1000)]
add logging about sub list
mmj [Tue, 26 Apr 2005 09:29:26 +0000 (19:29 +1000)]
listname+list, 1.2.5 and a FAQ entry -- not tested yet, but
I want it in CVS :)
mmj [Sat, 9 Apr 2005 15:10:23 +0000 (01:10 +1000)]
English list text fixes
mmj [Fri, 18 Mar 2005 13:41:27 +0000 (00:41 +1100)]
Docu update
mmj [Thu, 17 Mar 2005 10:21:17 +0000 (21:21 +1100)]
Only send to valid addresses
mmj [Mon, 14 Mar 2005 12:44:56 +0000 (23:44 +1100)]
Perl webinterface updates
mmj [Tue, 22 Feb 2005 13:49:33 +0000 (00:49 +1100)]
Man page update for mlmmj-bounce
mmj [Tue, 15 Feb 2005 12:49:16 +0000 (23:49 +1100)]
Get \) right
mmj [Tue, 15 Feb 2005 06:09:14 +0000 (17:09 +1100)]
SO_KEEPALIVE for socket
mmj [Mon, 14 Feb 2005 23:10:02 +0000 (10:10 +1100)]
Wrong date in README
mmj [Mon, 14 Feb 2005 22:57:15 +0000 (09:57 +1100)]
1.2.4
mmj [Mon, 14 Feb 2005 22:56:45 +0000 (09:56 +1100)]
Make valgrind happy
mmj [Mon, 14 Feb 2005 18:52:08 +0000 (05:52 +1100)]
don't mystrdup unless needed
mmj [Mon, 14 Feb 2005 09:32:02 +0000 (20:32 +1100)]
free(subdir) after it's used, sigh. Remove superflous logging from mlmmj-maintd
mmj [Sun, 13 Feb 2005 16:58:29 +0000 (03:58 +1100)]
Clean up a bit
mmj [Tue, 8 Feb 2005 18:40:50 +0000 (05:40 +1100)]
fix typo
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