Commit cd5058be authored by Gabriel Detraz's avatar Gabriel Detraz

Deplace le path de sortie des mails invalides

parent 89793ebd
......@@ -13,7 +13,7 @@ Licence : GPL v2
import os, sys, time
import subprocess
from lc_ldap import shortcuts
from gestion.config import upload
from gestion.config import mail_invalide
# logging tools
import syslog
def log(x):
......@@ -54,7 +54,7 @@ def generate_ps(proprio, mail):
log(u'Generate invalid mail notice for %s' % name)
# Dossier de génération du ps
dossier = '/usr/scripts/var/mails_invalides'
dossier = mail_invalide.PATH_DIR
# Base pour le nom du fichier
fichier = time.strftime('%Y-%m-%d-%H-%M') + '-mail-%s' % (name.
#!/usr/bin/env python
# -*- mode: python; coding: utf-8 -*-
""" Définitions des variables pour les mails invalides """
PATH_DIR = "/home/logs/mails_invalides"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment