Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

EMAIL SORTER NEEDED. +EASY TO EDIT+

Just as the Title said.

Am looking for an email sorter coded in Python.

The emails will be sorted based on their MX records.

There are already appsfor this but the number domain is mostly limited.

So I need what adding domains into it will not turn to rocket science.

If you can do this, just comment on what exactly you can do and maybe price.

I will contact via PM.

Do not ask me for my budget as Some of these cost $20.

Does not mean my budget is $20 though.
Hey, I can do this for you easily and fast, maybe you can add email addresses in a txt file and the script will output sorted mx, is that you want?
(Jun 15, 2019 11:19 PM)hessu1335 Wrote:  Hey, I can do this for you easily and fast, maybe you can add email addresses in a txt file and the script will output sorted mx, is that you want?

Someone has already done it for me. But if you can do it and its different from what i have, i will pay you too.
Code
def main():
   f = open("mails.txt", "r")
   if f.mode == "r":
       content = f.read()
       sorted_list = sorted(content.split(), key=lambda x: x.lower().split('@')[1])
       
       for item in sorted_list:
           print(item)

if __name__ == "__main__":
   main()

This will do the job, use a list of emails in a file "emails.txt" in the same folder as the script, run python3 [name_of_script.py]
Insensitive sort alphabetical
This will do the job as well LOL.

Code
sort -t@ -k2 mails.txt
(Jun 16, 2019 03:07 AM)zelus Wrote:  Someone has already done it for me. But if you can do it and its different from what i have, i will pay you too.

could you link me with the email sorter person pls?


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Release] by SIM-5525056Jul 10, 2024 03:13 PM 6 707 Jul 10, 2024 03:13 PM
Last Post: SIM-5525056
[C#] by passwordsDec 26, 2016 02:04 PM 11 444 Dec 26, 2016 02:04 PM
Last Post: Zilog80
[Python] by Baba YagaDec 5, 2015 07:21 PM 3 248 Dec 5, 2015 07:21 PM
Last Post: tulamba