Skip to content
Snippets Groups Projects
  1. Dec 25, 2023
  2. Oct 27, 2023
  3. Oct 21, 2023
  4. Oct 14, 2023
  5. Aug 20, 2023
  6. Aug 04, 2023
  7. Aug 02, 2023
  8. Jul 25, 2023
  9. Jun 29, 2023
  10. Jun 09, 2023
  11. May 31, 2023
  12. May 02, 2023
  13. Apr 23, 2023
  14. Apr 21, 2023
  15. Mar 28, 2023
  16. Mar 09, 2023
  17. Jan 18, 2023
  18. Dec 25, 2022
  19. Nov 28, 2022
  20. Nov 27, 2022
  21. Nov 03, 2022
  22. Oct 27, 2022
  23. Oct 25, 2022
  24. Oct 18, 2022
  25. Sep 16, 2022
  26. Sep 15, 2022
  27. Aug 17, 2022
  28. Aug 16, 2022
  29. Aug 03, 2022
  30. Jun 16, 2022
    • Judah MW's avatar
      functions: Added support for leading dots to _idn_encode_decode() · 22635140
      Judah MW authored
      Amavisd supports wildcards by performing decreasingly specific SQL
      lookups:
          9 - lookup for user+foo@sub.example.com
          8 - lookup for user@sub.example.com
          7 - lookup for user+foo
          6 - lookup for user
          5 - lookup for @sub.example.com
          3 - lookup for @.sub.example.com
          2 - lookup for @.example.com
          1 - lookup for @.com
          0 - lookup for @.       (catchall)
          (https://www.ijs.si/software/amavisd/README.lookups.txt)
      
      However idn_to_* returns an empty string if the domain has a leading dot
      which means lookups 0-3 cannot be used.  This is fixed by removing the
      leading dot before encoding or decoding and adding it back just before
      returning the domain.
      22635140
Loading