define bas environment
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import sys
|
||||
import os
|
||||
from knowledge import KnowledgePipelineEnvironment
|
||||
directory = os.path.dirname(__file__)
|
||||
sys.path.append(directory + '/../../../../src/component/')
|
||||
|
||||
from mail_environment import EmailSpider
|
||||
|
||||
def init(env: KnowledgePipelineEnvironment, params: dict):
|
||||
return EmailSpider(env, params)
|
||||
@@ -0,0 +1,14 @@
|
||||
name = "Mail.Sync"
|
||||
input.module = "input.py"
|
||||
[input.params]
|
||||
path = "${myai_dir}/mail"
|
||||
imap_server = "imap.qq.com"
|
||||
imap_port = 993
|
||||
address = "115620204@qq.com"
|
||||
password = "zbbjpbukeonqbjja"
|
||||
[input.params.fields]
|
||||
from = "from"
|
||||
to = "to"
|
||||
subject = "subject"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user