16 lines
504 B
Python
16 lines
504 B
Python
# src/pipeline/deliverability_check.py
|
|
import pandas as pd
|
|
import os
|
|
from .config_loader import config
|
|
|
|
def run_deliverability_check():
|
|
input_file = os.path.join(config["output_dir"], "unified_dataset_cleaned.csv")
|
|
df = pd.read_csv(input_file)
|
|
|
|
# Basic simulation of SPF/DKIM validation
|
|
df["deliverable"] = df["email"].str.contains("@")
|
|
|
|
output_file = os.path.join(config["output_dir"], "unified_dataset_deliverable.csv")
|
|
df.to_csv(output_file, index=False)
|
|
return df
|