Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
message-service
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 4d09c6e9
authored
2020-07-17 15:24:59 -0300
by
Tu Nombre
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Anti mamadas por exeso de mail
1 parent
99716152
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
Wpp1State.py
services.py
Wpp1State.py
View file @
4d09c6e
...
...
@@ -47,7 +47,8 @@ class StateMail():
def
__init__
(
self
):
self
.
Consultas
=
{}
#{MailUSer-pass-host-str(port):{"hora": datetime.datetime.now, "estado": self.chequear_stado_WB(telefono)},}
self
.
MailRompedor
=
[]
def
chequear_stado_Server
(
self
,
User
,
Pass
,
Port
,
Host
):
try
:
self
.
SMTPcliente
(
User
,
Pass
,
Port
,
Host
)
...
...
services.py
View file @
4d09c6e
...
...
@@ -147,10 +147,13 @@ class Mail(ServiceBase):
succ
[
file
]
=
True
#self.s.send_message(msg)
try
:
self
.
Envio
(
msg
,
info
,
stadomail
)
if
not
msg
[
'From'
]
in
stadomail
.
MailRompedor
:
self
.
Envio
(
msg
,
info
,
stadomail
)
except
:
print
(
"ROMPIO ALGO EN EL ENVIO"
)
stadomail
.
MailRompedor
.
append
(
msg
[
'From'
])
succ
[
file
]
=
False
stadomail
.
MailRompedor
=
[]
return
succ
def
Usuario
(
self
,
info
):
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment