Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
IRON xiang
mail_manager_xjc
Commits
0ef28e9c
Commit
0ef28e9c
authored
3 months ago
by
IRON xiang
Browse files
Options
Download
Email Patches
Plain Diff
v1.0.4
parent
7038ad15
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
mail_manager/mail_manager.py
mail_manager/mail_manager.py
+3
-3
source/config.ini
source/config.ini
+1
-1
test/test01.py
test/test01.py
+10
-3
No files found.
mail_manager/mail_manager.py
View file @
0ef28e9c
...
...
@@ -18,7 +18,7 @@ root_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# 配置163邮箱
server
=
zmail
.
server
(
username
=
'lcnk_robot001@163.com'
,
password
=
'
WBTS2s5DGedSfLfg
'
,
# 授权码
password
=
'
ZAZm4E3NGfmajEaf
'
,
# 授权码
smtp_host
=
'smtp.163.com'
,
smtp_port
=
465
,
pop_host
=
'pop.163.com'
,
...
...
@@ -248,5 +248,5 @@ while True:
# # 保存附件
# print(new_mail)
# last_count = current_count
LOG
.
info
(
'sleep
6
0s'
)
time
.
sleep
(
6
0
)
# 每分钟检查一次
LOG
.
info
(
'sleep
90
0s'
)
time
.
sleep
(
90
0
)
# 每
5
分钟检查一次
This diff is collapsed.
Click to expand it.
source/config.ini
View file @
0ef28e9c
[ding]
access_token
=
06c67cf821e9371f806140f7d44e38a
f
access_token
=
66f69171d6753fc1b67ef295c32b07b
f
This diff is collapsed.
Click to expand it.
test/test01.py
View file @
0ef28e9c
import
os
root_dir
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
print
(
root_dir
)
\ No newline at end of file
import
zmail
server
=
zmail
.
server
(
username
=
'lcnk_robot001@163.com'
,
password
=
'WBTS2s5DGedSfLfg'
,
# 授权码
smtp_host
=
'smtp.163.com'
,
smtp_port
=
465
,
pop_host
=
'pop.163.com'
,
pop_port
=
995
)
mails
=
server
.
get_mails
(
sender
=
'lcnk@btiss.cn'
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment