Hello,

following yesterday's short exchange with @datitisev I have managed to get my extension into working order. So, here it goes:

Mail Filter

Mail Filter extension for Flarum - filter e-mail registering by your sites with whitelists, blacklists and regular expression describing both.

License Latest Stable Version

Requirements

This extension was built and tested on Flarum 0.1.0-beta12 and PHP7.4. If you are having issues and a different build, please mention that you didn't use the same setup as this (so I know to test it on another environment).

Other than that, there are no prerequisites. It's really a minimal extension.

Installation

Use Bazaar or install manually with composer:

composer require studosi/mail-filter

Updating

composer update studosi/mail-filter

Screenshots

image
image
image

Links

More information on GitHub!

Nice extension 😁

Any particular reason you went with the Apache License instead of MIT?

    Ralkage The forum I'll run has some things that are better off with an Apache license. I say this because there were some issues with data distribution in the past, on other platforms, so I've decided to use a single license for everything we do, and Apache v2 was the best one out of the great 3. I like what Apache has been doing and have seen some cases where MIT is not that good, so I'll support them with things like these.

    To clarify, I know of certain individuals that like the non-expressiveness of MIT. Not because of freedom, but abuse. I want to have an open source license that says what it stands for clearly, concisely, without ambiguity.

    I could have an MIT license for this one but it's a drag thinking about licenses, so I decided on one license to use for everything open source and leave it at that.

      Yalfoosh Thank you for the working, can you add a Username Filter feature?
      e.g.
      We shouldn't let user use usernames contain 'admin', 'official', '官方'...(and some other Unicode text)

        Littlegolden Uhhh this is kind of a tricky one. Technically it is possible (with another extension), but you have to think about the interactions with the nickname plugin too, for an example.

        But you could probably copy most of this extension, change a bit of code regarding the "rule_type" property in the database, create a new database model and look for the username field when registering, definitely doable with a few hours of work.

        At this time I don't think I'll be able to work on that kind of thing since I'm very busy with my forum but if I get some free time I might, at least with the intent of vulgarity filtering if not just "admin", "official", etc.

          10 months later

          nice extension, thank you for your work.
          but it seems that doesn't work on beta15
          will you consider to update it?

            5 days later

            FBioCS1 I plan to update it soon. The forum I'm running is still on beta-13 because I didn't have the time to update to newer version due to uni. However, after my exams (around 2 weeks left), I'll be updating to the latest version and so I'll update this extension too.

              8 days later
              3 months later

              Yalfoosh hello! I'm in need of your mail-filter recently, but it seems still broken now. I'll be thankful if you fix the bug.