]> git.ipfire.org Git - thirdparty/mlmmj.git/log
thirdparty/mlmmj.git
20 years agoInstall SIGTERM handler
mmj [Mon, 2 May 2005 18:56:38 +0000 (04:56 +1000)] 
Install SIGTERM handler

20 years agoforgot the readn.c
mmj [Mon, 2 May 2005 18:20:15 +0000 (04:20 +1000)] 
forgot the readn.c

20 years agoAnother one
mmj [Mon, 2 May 2005 17:41:01 +0000 (03:41 +1000)] 
Another one

20 years agoread() wrapper, and yet another littering hole plunged
mmj [Mon, 2 May 2005 17:39:11 +0000 (03:39 +1000)] 
read() wrapper, and yet another littering hole plunged

20 years agoREADME.security
mmj [Sun, 1 May 2005 10:57:52 +0000 (20:57 +1000)] 
README.security

20 years agoAllow bounces with no From:
mmj [Thu, 28 Apr 2005 10:04:11 +0000 (20:04 +1000)] 
Allow bounces with no From:

20 years agoCleanup confirmation bounces
mmj [Thu, 28 Apr 2005 07:52:06 +0000 (17:52 +1000)] 
Cleanup confirmation bounces

20 years agoChangelog for previous commit
mmj [Wed, 27 Apr 2005 18:36:05 +0000 (04:36 +1000)] 
Changelog for previous commit

20 years agoClean up after us when we have successfully parsed DSN mail
mmj [Wed, 27 Apr 2005 18:35:18 +0000 (04:35 +1000)] 
Clean up after us when we have successfully parsed DSN mail

20 years agoAvoid possible race wrt. moderation
mmj [Wed, 27 Apr 2005 18:02:10 +0000 (04:02 +1000)] 
Avoid possible race wrt. moderation

20 years agoREADME update
mmj [Tue, 26 Apr 2005 10:24:15 +0000 (20:24 +1000)] 
README update

20 years agoAdd a couple of missing newlines
mmj [Tue, 26 Apr 2005 10:13:25 +0000 (20:13 +1000)] 
Add a couple of missing newlines

20 years agoForgot listsubs in listtexts/Makefile.am
mmj [Tue, 26 Apr 2005 10:04:36 +0000 (20:04 +1000)] 
Forgot listsubs in listtexts/Makefile.am

20 years agoadd logging about sub list
mmj [Tue, 26 Apr 2005 09:56:37 +0000 (19:56 +1000)] 
add logging about sub list

20 years agolistname+list, 1.2.5 and a FAQ entry -- not tested yet, but
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 :)

20 years agoEnglish list text fixes
mmj [Sat, 9 Apr 2005 15:10:23 +0000 (01:10 +1000)] 
English list text fixes

20 years agoDocu update
mmj [Fri, 18 Mar 2005 13:41:27 +0000 (00:41 +1100)] 
Docu update

20 years agoOnly send to valid addresses
mmj [Thu, 17 Mar 2005 10:21:17 +0000 (21:21 +1100)] 
Only send to valid addresses

20 years agoPerl webinterface updates
mmj [Mon, 14 Mar 2005 12:44:56 +0000 (23:44 +1100)] 
Perl webinterface updates

20 years agoMan page update for mlmmj-bounce
mmj [Tue, 22 Feb 2005 13:49:33 +0000 (00:49 +1100)] 
Man page update for mlmmj-bounce

20 years agoGet \) right
mmj [Tue, 15 Feb 2005 12:49:16 +0000 (23:49 +1100)] 
Get \) right

20 years agoSO_KEEPALIVE for socket
mmj [Tue, 15 Feb 2005 06:09:14 +0000 (17:09 +1100)] 
SO_KEEPALIVE for socket

20 years agoWrong date in README
mmj [Mon, 14 Feb 2005 23:10:02 +0000 (10:10 +1100)] 
Wrong date in README

20 years ago1.2.4
mmj [Mon, 14 Feb 2005 22:57:15 +0000 (09:57 +1100)] 
1.2.4

20 years agoMake valgrind happy
mmj [Mon, 14 Feb 2005 22:56:45 +0000 (09:56 +1100)] 
Make valgrind happy

20 years agodon't mystrdup unless needed
mmj [Mon, 14 Feb 2005 18:52:08 +0000 (05:52 +1100)] 
don't mystrdup unless needed

20 years agofree(subdir) after it's used, sigh. Remove superflous logging from mlmmj-maintd
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

20 years agoClean up a bit
mmj [Sun, 13 Feb 2005 16:58:29 +0000 (03:58 +1100)] 
Clean up a bit

20 years agofix typo
mmj [Tue, 8 Feb 2005 18:40:50 +0000 (05:40 +1100)] 
fix typo

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

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

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

21 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

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

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

21 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

21 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

21 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

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

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

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

21 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

21 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:

21 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()

21 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.

21 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

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

21 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

21 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.

21 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.

21 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.

21 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

21 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

21 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().

21 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

21 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

21 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);

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

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

21 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

21 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.

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

21 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.

21 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;
 }

21 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)

21 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;
 }

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

21 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

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

21 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

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

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

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

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

21 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