cisagov / trustymail

Scan domains and return data based on trustworthy email best practices
Creative Commons Zero v1.0 Universal
185 stars 31 forks source link

fix: unused psl arguments #139

Closed stanley101music closed 10 months ago

stanley101music commented 1 year ago

πŸ—£ Description

The --psl-filename=FILENAME and --psl-read-only arguments are not working. The variables that get the values from the user's arguments are different from the variables that are used in get_psl function.

πŸ’­ Motivation and context

The arguments are not working when I assign the file path to public suffix list.

πŸ§ͺ Testing

  1. Run pip install git+https://github.com/stanley101music/trustymail@modify-psl-parameters
  2. Run trustymail google.com
  3. Confirm the default values are correct, and the public_suffix_list.dat are downloaded in the current folder
  4. Change the filename of public_suffix_list.dat to exists_psl.dat
  5. Change the last modified time of exists_psl.dat by touch -m exists_psl.dat
  6. Run trustymail --psl-filename=exists_psl.dat google.com
  7. Confirm that there is no need to call updatePSL

βœ… Pre-approval checklist

βœ… Pre-merge checklist

βœ… Post-merge checklist