Commit f3fbc675 by Tu Nombre

Anti mamadas por exeso de mail 9

1 parent 86011559
...@@ -57,16 +57,16 @@ class Process: ...@@ -57,16 +57,16 @@ class Process:
# manda todos los mensajes no enviados # manda todos los mensajes no enviados
def send(self): def send(self):
self._send("wpp1") self._send(States.queued,"wpp1")
self._send("mail") self._send(States.queued,"mail")
self._send("wpp1") self._send("partially delivered","wpp1")
self._send("partially delivered","mail")
self.stateMail.MailRompedor = [] self.stateMail.MailRompedor = []
def _send(self,serv): def _send(self,serv,state):
print("enviando servicio ", serv)
salio = 0 salio = 0
rows = self.conn.query("SELECT * FROM msg WHERE state = ? and serv = ? ",(States.queued,serv)) rows = self.conn.query("SELECT * FROM msg WHERE state = ? and serv = ? ",(States.queued,serv))
print("cantidad pendiente ", len(rows)) print("cantidad pendiente ", serv, len(rows))
for query in DBconnection.parseToTable(rows): for query in DBconnection.parseToTable(rows):
# si no existe la carpeta borrar el mensaje # si no existe la carpeta borrar el mensaje
if not os.path.exists(query[Table.path]): if not os.path.exists(query[Table.path]):
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!