Re: Questions about the python3 version of TMDA
Chris Caputo <[email protected]> Fri, 3 Jun 2022 03:41:00 +0000 (UTC)
| Newsgroups | gmane.mail.spam.tmda.user |
|---|---|
| Message-ID | <[email protected]> |
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1523585705-1799351751-1654227660=:19629 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE I wish I could help - but all I gotta say is: Hardcore! I never made use of tmda-cgi since I use alpine (previously pine) to=20 consume email. Chris On Thu, 2 Jun 2022, Hippo Man wrote: > > However, it turns out that the C=C3=A9dric Dufour version runs under Py= thon 3. > > I decided to take the plunge and try it, and I very easily got it to wo= rk!!! >=20 > ... but unfortunately, I still have to deal with tmda-cgi. I found severa= l versions > of it on line and tried each of them, but none work in conjunction with t= his > Python 3 version of TMDA. >=20 > And it would be major piece of work to convert any of the existing tmda-c= gi > releases to Python 3, and therefore, I believe I will have to write my ow= n > replacement for tmda-cgi in order to accomplish this. >=20 > I already have been using a command-line utility that I wrote a number of > years ago (in the Ruby language) to go through my pending emails and > either release, blacklist, whitelist, or delete them via invocations of > "tmda-pending". >=20 > But I want a web-based app for doing this, and so I guess I will have to = use > my command-line code as a starting point in order to write my own > web-based tmda-cgi-like utility. >=20 > Or perhaps is there already some sort of alternative web-based front end = to > tmda? I haven't been able to find such a thing, but perhaps I am missing > something. >=20 > Thanks in advance for any thoughts or suggestions. >=20 > -- > [email protected] > =C2=A0Take a hippopotamus to lunch today. >=20 >=20 > On Thu, Jun 2, 2022 at 1:44 AM Hippo Man <[email protected]> wrote: >=20 > I really tried to get TMDA working with python3 but eventually I ga= ve up > and decided to just stick with python2. Admittedly, my python skill= s are > poor, and I didn't want to spend more hours trying to get it to wor= k. >=20 > Hopefully you'll make better progress than I did! >=20 > Chris >=20 >=20 > Thank you! >=20 > And yes, I understand, I spent way, *way* too much time trying to convert > the original Python 2 TMDA code to Python 3. It ended up being a big > mess, and I finally gave up. >=20 > However, it turns out that the C=C3=A9dric Dufour version runs under Pyth= on 3. > I decided to take the plunge and try it, and I very easily got it to work= !!! > ... as follows: >=20 > % cd [work directory] >=20 > % git clone https://github.com/cedric-dufour/tmda.git >=20 > % cd tmda >=20 > % sudo python3 setup.py install >=20 > This installs the Python 3 TMDA executables into /usr/local/bin , and the= y > all work for me!=C2=A0 It turns out that the "debian" subdirectory that I= was > asking about in my previous message is totally irrelevant. The only > purpose of that subdirectory is for facilitating the creation of a debian > APT package for TMDA. There is no need to do that, since the steps I > outlined above will perform a full TMDA installation on your own linux > machine. >=20 > After performing those steps, I only had to make one tiny change to my > existing TMDA configuration: >=20 > Near the top of /etc/tmdarc is the following line of code: > os.makedirs(LOGDIR, 0755) >=20 > That simply needs to be changed to this: > os.makedirs(LOGDIR, 0o755) >=20 > (i.e., put a lower-case letter "o" between the zero and the seven) >=20 > Some of my own scripts had to be changed, because I had the original > Python 2 TMDA code in /usr/local/tmda/bin, and I had to change a small > number of references to that directory into /usr/local/bin. But to be cle= ar, > those changes are in my own code which *calls* TMDA executables ... > not in any of the Python 3 TMDA code itself. >=20 > One caveat is that I do not use TMDA for challenge-response these > days, and I have never used it for tagging ... only for whitelisting, for > blacklisting, and for putting unfamiliar messages into the Pending queue > so I can inspect them via the TMDA-cgi web software and decide what > to do with them. Therefore, I don't know if you would encounter > challenge-response or tagging issues. However, given how well the > Python 3 version is working for me, I am optimistic that those functions > would also probably work. >=20 > If you or anyone else want to try this Python 3 version of TMDA, and > if problems are encountered, I'm glad to offer whatever help I can here > in this mailing list. > -- > [email protected] > =C2=A0Take a hippopotamus to lunch today. >=20 > =C2=A0 >=20 > On Wed, 1 Jun 2022, Hippo Man wrote: > > I have done a "git clone" of the python3 version of TMDA from her= e: > > https://github.com/cedric-dufour/tmda.git > > > > And I have done a "python3 setup.py install". > > > > I see that it created a TMDA directory tree under /opt/local/shar= e/tmda > > > > In the cloned git directory, there is also a "debian" subdirector= y, and since > > I am running under Debian-11, I want to install that debian-speci= fic code. > > However, this debian code was not installed anywhere after my run= of > > "python3 setup.py install", and I could not find any instructions= for how > > to install that debian code. > > > > Futhermore, in the documentation that came with this TMDA version= , > > there are a few references to http://wiki.tmda.net, but that web = site > > no longer exists. > > > > Is there any place where I could find instructions for how to do = a full, > > complete TMDA install of this python3 version on my Debian host? > > > > Thanks in advance for any pointers and help! > > > > -- > > [email protected] > > =C2=A0Take a hippopotamus to lunch today. > > > > > > On Wed, Jun 1, 2022 at 10:14 AM Hippo Man <[email protected]> wr= ote: > >=C2=A0 =C2=A0 =C2=A0 =C2=A0Thank you very much. > > > > And I'm glad to see that this mailing list is actually still aliv= e! > > > > Also, I went to your github site, and see that there are links th= ere for two > > Python3 forks. TMDA is the only Python2 code on my server, and I = very > > much want to get rid of Python2 completely. I'm going to check ou= t both of > > those Python3 TMDA forks, and I'm happy that they exist. > > > > -- > > [email protected] > > =C2=A0Take a hippopotamus to lunch today. > > > > > > On Wed, Jun 1, 2022 at 1:17 AM Chris Caputo <[email protected]> wro= te: > >=C2=A0 =C2=A0 =C2=A0 =C2=A0Nice work! > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0BTW, I maintain https://github.com/ccap= uto/TMDAretro in case anyone has > >=C2=A0 =C2=A0 =C2=A0 =C2=A0trouble installing TMDA these days. > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0Chris > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0On Tue, 31 May 2022, Hippo Man wrote: > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> I figured out the answer to my questi= on. > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> In case anyone might come to this mai= ling list some > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> day and wants to know how I solved my= problem, here > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> is how I did so ... > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> I can implement item #2 in my list be= low by means of > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> an "incoming" filter. I created a "ho= ldlist" file to contain > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> match patterns for the set of address= es that I want to > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> automatically put into a pending stat= e, and I put the > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> following rule into my incoming filte= r ... > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> from-file ~/.tmda/lists/holdlist hold > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> Now, I have succcessfully implemented= all three items > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> in my list. > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> -- > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> [email protected] > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> =C2=A0Take a hippopotamus to lunch to= day. > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> On Mon, May 30, 2022 at 7:51 PM Hippo= Man <[email protected]> wrote: > >=C2=A0 =C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0 =C2=A0I've been u= sing TMDA for something like 15 years, and I am still > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> getting lots of benefit from it and a= m still very happy with it. > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> If there is anyone who is actually re= ading this email list these days, > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> I have a question about the use of TM= DA. > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> My question is this: I want to set up= the following filtering rules ... > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> (1) If the sender's email address is = on a very small list (less than a > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> dozen entries), I'd like the sender t= o be blacklisted. > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> (2) if the sender's email address is = on a very small list (less than a > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> dozen entries), I'd like the email to= be held in the pending queue. > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> (3) If any email arrives whose sender= address is not in either of those > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> two small lists, I'd like it to be de= livered. > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> If all I had to deal with were item 1= and item 3, I could set ACTION_INCOMING > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> to "ok" and simply put the unwanted s= ender addresses into a blacklist file. > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> However, I don't know how to also han= dle item 2 along with items 1 and 3. > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> Is what I want to do even possible wi= th TMDA? > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> If anyone is actually reading this em= ail list and can answer my question, > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> I will be greatly appreciative! > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> -- > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> [email protected] > >=C2=A0 =C2=A0 =C2=A0 =C2=A0> =C2=A0Take a hippopotamus to lunch to= day. >=20 >=20 >=20 --1523585705-1799351751-1654227660=:19629 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --1523585705-1799351751-1654227660=:19629 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ tmda-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tmda-users --1523585705-1799351751-1654227660=:19629--