]> git.ipfire.org Git - thirdparty/mlmmj.git/log
thirdparty/mlmmj.git
20 years agoTUNABLES update
mmj [Tue, 8 Feb 2005 18:40:07 +0000 (05:40 +1100)] 
TUNABLES update

20 years agoAlternate listaddresses
mmj [Tue, 8 Feb 2005 18:21:48 +0000 (05:21 +1100)] 
Alternate listaddresses

20 years agoTunable port to connect to
mmj [Tue, 8 Feb 2005 18:13:14 +0000 (05:13 +1100)] 
Tunable port to connect to

20 years ago1.2.3 updates
mmj [Tue, 8 Feb 2005 09:34:33 +0000 (20:34 +1100)] 
1.2.3 updates

20 years agoAdd .filename.lock file to lock against. Only allow addresses with a @ in them. 1.2.3
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

20 years agoLast fix, DSN is confirmed to work
mmj [Thu, 3 Feb 2005 16:20:32 +0000 (03:20 +1100)] 
Last fix, DSN is confirmed to work

20 years agoRemember / after listdir
mmj [Thu, 3 Feb 2005 15:47:51 +0000 (02:47 +1100)] 
Remember / after listdir

20 years agoInit struct before usage
mmj [Thu, 3 Feb 2005 15:39:40 +0000 (02:39 +1100)] 
Init struct before usage

20 years agoWe need this in CVS
mmj [Thu, 3 Feb 2005 15:18:52 +0000 (02:18 +1100)] 
We need this in CVS

20 years agoREADME enhancements
mmj [Thu, 3 Feb 2005 15:03:40 +0000 (02:03 +1100)] 
README enhancements

20 years agoMake mlmmj-bounce able to extract addresses from DSN's as specified in RFC1891
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

20 years agoa zero sized verp string should still enable verp
mmj [Thu, 3 Feb 2005 14:34:31 +0000 (01:34 +1100)] 
a zero sized verp string should still enable verp

20 years agoDate: rfc conformance
mmj [Tue, 1 Feb 2005 15:00:56 +0000 (02:00 +1100)] 
Date: rfc conformance

20 years ago1.2.2 update
mmj [Tue, 1 Feb 2005 09:18:21 +0000 (20:18 +1100)] 
1.2.2 update

20 years agoRemove THANKS, awfully out of date
mmj [Tue, 1 Feb 2005 09:16:55 +0000 (20:16 +1100)] 
Remove THANKS, awfully out of date

20 years agoBugfixes and 1.2.2
mmj [Tue, 1 Feb 2005 09:14:01 +0000 (20:14 +1100)] 
Bugfixes and 1.2.2

20 years agoForgot control/noget
mmj [Mon, 31 Jan 2005 13:14:08 +0000 (00:14 +1100)] 
Forgot control/noget

20 years agomlmmj-make-ml.sh will now know where the listtexts where installed
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.

20 years ago1.2.1 README commit
mmj [Fri, 28 Jan 2005 13:02:29 +0000 (00:02 +1100)] 
1.2.1 README commit

20 years agoVERSION changed
mmj [Fri, 28 Jan 2005 13:01:33 +0000 (00:01 +1100)] 
VERSION changed

20 years agoMove nosubonlydenymails check to the right place
mmj [Wed, 26 Jan 2005 18:03:57 +0000 (05:03 +1100)] 
Move nosubonlydenymails check to the right place

20 years agoAdd switches to control whether or not mlmmj sends out mails explaining
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.

20 years agoFreeBSD 4 compilation fix
mmj [Mon, 24 Jan 2005 14:44:40 +0000 (01:44 +1100)] 
FreeBSD 4 compilation fix

20 years ago1.2.0 RELEASE_1_2_0 help
mmj [Sun, 23 Jan 2005 11:39:40 +0000 (22:39 +1100)] 
1.2.0

20 years ago#if 0 for debug info
mmj [Sun, 23 Jan 2005 09:41:29 +0000 (20:41 +1100)] 
#if 0 for debug info

20 years ago- subswitch, NULL);
mmj [Wed, 19 Jan 2005 19:22:14 +0000 (06:22 +1100)] 
-                               subswitch, NULL);
+                               subswitch, (char *)NULL);

To shut up gcc-4

20 years agoRC2 update
mmj [Tue, 18 Jan 2005 13:25:55 +0000 (00:25 +1100)] 
RC2 update

20 years ago1.2.0-RC2
mmj [Tue, 18 Jan 2005 13:24:40 +0000 (00:24 +1100)] 
1.2.0-RC2

20 years agoLets init the strlist before starting to use it
mmj [Tue, 18 Jan 2005 13:22:44 +0000 (00:22 +1100)] 
Lets init the strlist before starting to use it

20 years agoFix off by one error
mmj [Tue, 18 Jan 2005 10:47:42 +0000 (21:47 +1100)] 
Fix off by one error

20 years agoLogging
mmj [Tue, 18 Jan 2005 08:03:47 +0000 (19:03 +1100)] 
Logging

20 years agolog unsubs from mlmmj-maintd to log_oper
mmj [Tue, 18 Jan 2005 07:52:47 +0000 (18:52 +1100)] 
log unsubs from mlmmj-maintd to log_oper

20 years agoLets only rotate log if it exists
mmj [Tue, 18 Jan 2005 07:39:14 +0000 (18:39 +1100)] 
Lets only rotate log if it exists

20 years agoDon't send the rest of the batch inside the while() loop
mmj [Mon, 17 Jan 2005 23:47:16 +0000 (10:47 +1100)] 
Don't send the rest of the batch inside the while() loop

20 years agoVERP support
mmj [Sun, 16 Jan 2005 18:43:48 +0000 (05:43 +1100)] 
VERP support

20 years agochar c, not int c
mmj [Sun, 16 Jan 2005 14:21:51 +0000 (01:21 +1100)] 
char c, not int c

20 years ago1.1.1-RC2
mmj [Sat, 15 Jan 2005 11:04:08 +0000 (22:04 +1100)] 
1.1.1-RC2

20 years agoRemoved discardedname var since we don't need it anymore
mmj [Sat, 15 Jan 2005 10:53:52 +0000 (21:53 +1100)] 
Removed discardedname var since we don't need it anymore

20 years agoLets add Message-Id: and Date:
mmj [Sat, 15 Jan 2005 10:46:24 +0000 (21:46 +1100)] 
Lets add Message-Id: and Date:

20 years agoAdd declaration of genmsgid() and gendatestr()
mmj [Sat, 15 Jan 2005 10:46:12 +0000 (21:46 +1100)] 
Add declaration of genmsgid() and gendatestr()

20 years agolog_oper is now varargs capable, which is much nicer.
mmj [Fri, 14 Jan 2005 15:37:18 +0000 (02:37 +1100)] 
log_oper is now varargs capable, which is much nicer.

20 years agoTypo in ChangeLog and distribute listtexts/da
mmj [Fri, 14 Jan 2005 08:07:04 +0000 (19:07 +1100)] 
Typo in ChangeLog and distribute listtexts/da

20 years agos/size_t/off_t/
mmj [Thu, 13 Jan 2005 22:19:56 +0000 (09:19 +1100)] 
s/size_t/off_t/

20 years ago1.1.1-RC1 for the gentoo guys to test
mmj [Thu, 13 Jan 2005 22:16:39 +0000 (09:16 +1100)] 
1.1.1-RC1 for the gentoo guys to test

20 years agoRemove logging for now. The function itself is ok, it's more about the
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.

20 years agoNever ever discard stuff from the queue/. Let the admin worry about that.
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.

20 years agoFixup mlmmj-bounce to get the parameters correctly and everything.
mmj [Thu, 13 Jan 2005 21:37:34 +0000 (08:37 +1100)] 
Fixup mlmmj-bounce to get the parameters correctly and everything.

20 years agoMake sure we don't shadow some vars
mmj [Thu, 13 Jan 2005 19:39:12 +0000 (06:39 +1100)] 
Make sure we don't shadow some vars

20 years agoRemove call to myunlock, since it's closed right after
mmj [Thu, 13 Jan 2005 19:37:11 +0000 (06:37 +1100)] 
Remove call to myunlock, since it's closed right after

20 years agoMake the envelope from match the new order (VERP prep) and also remove
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().

20 years agoRemove call to myunlock, since it's closed right after
mmj [Thu, 13 Jan 2005 19:32:18 +0000 (06:32 +1100)] 
Remove call to myunlock, since it's closed right after

20 years agoRemove 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

20 years agoFix unlocking. It doesn't really matter, since the locks are released before
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);

20 years agoNow it at least compiles
mmj [Thu, 13 Jan 2005 18:40:31 +0000 (05:40 +1100)] 
Now it at least compiles

20 years agoChangeLog forgotten stuff
mmj [Thu, 13 Jan 2005 16:35:40 +0000 (03:35 +1100)] 
ChangeLog forgotten stuff

20 years agoHeader file for new Log Operation function
mmj [Thu, 13 Jan 2005 16:34:46 +0000 (03:34 +1100)] 
Header file for new Log Operation function

20 years ago--- ChangeLog 29 Nov 2004 08:10:47 -0000 1.95
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.

20 years agoNew log operation file.
mmj [Thu, 13 Jan 2005 16:32:35 +0000 (03:32 +1100)] 
New log operation file.

20 years agoRemove a comment to get a log message which was missing before:
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.

20 years agoGrab the lock right after we start sending, and not release before
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;
 }

20 years agoLet's make sure we can get the exclusive lock before discarding mail:
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)

20 years agoLet's spin until fcntl does not return EINTR due to a signal.
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;
 }

20 years agoDanske listtexter
mmj [Tue, 14 Dec 2004 10:13:21 +0000 (21:13 +1100)] 
Danske listtexter

20 years agoMakefile.am for packaging listtexts/de RELEASE_1_1_0
mmj [Wed, 1 Dec 2004 19:00:07 +0000 (06:00 +1100)] 
Makefile.am for packaging listtexts/de

20 years agoDistribute mlmmj-list.1
mmj [Mon, 29 Nov 2004 08:14:25 +0000 (19:14 +1100)] 
Distribute mlmmj-list.1

20 years agoInform about uid in the logs when invoked wrongly
mmj [Mon, 29 Nov 2004 08:10:48 +0000 (19:10 +1100)] 
Inform about uid in the logs when invoked wrongly

20 years agoAdded [config.h].in
mmj [Sun, 28 Nov 2004 19:01:31 +0000 (06:01 +1100)] 
Added [config.h].in

20 years agoChangeLog entry about .de texts
mmj [Sun, 28 Nov 2004 18:54:24 +0000 (05:54 +1100)] 
ChangeLog entry about .de texts

20 years agoPatch from Drake Wyrm
mmj [Sun, 28 Nov 2004 18:52:57 +0000 (05:52 +1100)] 
Patch from Drake Wyrm

20 years agoGerman listtexts
mmj [Sun, 28 Nov 2004 18:52:41 +0000 (05:52 +1100)] 
German listtexts

20 years agoPrep for 1.1.0 and patch from Drake Wyrm
mmj [Sun, 28 Nov 2004 18:47:01 +0000 (05:47 +1100)] 
Prep for 1.1.0 and patch from Drake Wyrm

20 years agomlmmj-list update
mmj [Sun, 28 Nov 2004 18:46:43 +0000 (05:46 +1100)] 
mlmmj-list update

20 years agoperl interface update from xi
mmj [Fri, 26 Nov 2004 14:36:27 +0000 (01:36 +1100)] 
perl interface update from xi

20 years ago1.1.0-RC3 prep
mmj [Thu, 25 Nov 2004 20:01:02 +0000 (07:01 +1100)] 
1.1.0-RC3 prep

20 years agoAdd moderate tag to access rules
mmj [Thu, 25 Nov 2004 20:00:53 +0000 (07:00 +1100)] 
Add moderate tag to access rules

20 years agoForgotten commits
mmj [Thu, 25 Nov 2004 16:04:05 +0000 (03:04 +1100)] 
Forgotten commits

20 years agoPHP updates from Christoph
mmj [Thu, 25 Nov 2004 16:03:18 +0000 (03:03 +1100)] 
PHP updates from Christoph

20 years agoAdd a To: header with the recipient's address when sending digests
mortenp [Thu, 25 Nov 2004 15:59:34 +0000 (02:59 +1100)] 
Add a To: header with the recipient's address when sending digests

20 years agoDon't try to realloc unless we own already
mmj [Mon, 22 Nov 2004 14:35:02 +0000 (01:35 +1100)] 
Don't try to realloc unless we own already

20 years agoBefore sending the mail to +owner, we should strip
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.

20 years agoAdd missing include to statctrl
mmj [Mon, 22 Nov 2004 14:12:56 +0000 (01:12 +1100)] 
Add missing include to statctrl

20 years agoChange statctrl to only return a file is not there, if stat() explicitly said so
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

20 years agoMake the mlmmj-list switches more compatible with the rest
mmj [Thu, 18 Nov 2004 11:58:27 +0000 (22:58 +1100)] 
Make the mlmmj-list switches more compatible with the rest

20 years agoAdd newline after generic subject
mmj [Wed, 17 Nov 2004 13:03:56 +0000 (00:03 +1100)] 
Add newline after generic subject

20 years agoAdd newline after From
mmj [Wed, 17 Nov 2004 13:03:15 +0000 (00:03 +1100)] 
Add newline after From

20 years agoDon't do RECIPDELIM in this batch
mmj [Mon, 15 Nov 2004 10:49:29 +0000 (21:49 +1100)] 
Don't do RECIPDELIM in this batch

20 years agoCannot update headers if there's none
mmj [Mon, 15 Nov 2004 10:42:26 +0000 (21:42 +1100)] 
Cannot update headers if there's none

20 years agofree a little later
mmj [Mon, 15 Nov 2004 10:21:06 +0000 (21:21 +1100)] 
free a little later

20 years agoAdd customheaders to digests as well
mmj [Mon, 15 Nov 2004 10:17:45 +0000 (21:17 +1100)] 
Add customheaders to digests as well

20 years agoOnly read one extra char if there is one
mmj [Mon, 15 Nov 2004 08:45:06 +0000 (19:45 +1100)] 
Only read one extra char if there is one

20 years agoclose another couple of leaks
mmj [Mon, 15 Nov 2004 08:35:51 +0000 (19:35 +1100)] 
close another couple of leaks

20 years agoClose memleak in send_digest()
mmj [Mon, 15 Nov 2004 08:17:04 +0000 (19:17 +1100)] 
Close memleak in send_digest()

20 years agoVERSION is now RC2
mmj [Fri, 12 Nov 2004 10:50:23 +0000 (21:50 +1100)] 
VERSION is now RC2

20 years agoNew binary: mlmmj-list
mmj [Fri, 12 Nov 2004 10:49:28 +0000 (21:49 +1100)] 
New binary: mlmmj-list

20 years agoWarning fixes and release prep
mmj [Fri, 12 Nov 2004 01:28:32 +0000 (12:28 +1100)] 
Warning fixes and release prep

20 years agoSubstitute all of them and convert moderation to prepstdreply
mmj [Thu, 11 Nov 2004 23:27:07 +0000 (10:27 +1100)] 
Substitute all of them and convert moderation to prepstdreply

20 years agofix typo
mmj [Thu, 11 Nov 2004 15:26:43 +0000 (02:26 +1100)] 
fix typo

20 years agoFurther fixups to new prepstdreply. Seems to work now, needs more testing though
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

20 years ago*GRRR* FFS
mmj [Thu, 11 Nov 2004 13:35:38 +0000 (00:35 +1100)] 
*GRRR* FFS

20 years agoBetter fix for the strchr
mmj [Thu, 11 Nov 2004 13:34:03 +0000 (00:34 +1100)] 
Better fix for the strchr