def extract_emails_from_huge_file(file_path: str) -> list[str]:
with open(file_path, 'r', encoding='utf-8') as f:
content = f.read()
# Asendame reavahetused, et tekst oleks "ühtlane"
content = content.replace('\r\n', ' ').replace('\n', ' ')
lines = content.split(' ')
emails = [word for word in lines if '@' in word]
return emails