2

我一直在尝试使用 Spring XD将数据从Mail提取到File 。虽然流的创建是成功的,但在此过程中没有创建输出文件。

我使用的命令如下:

xd:>stream create mailtest --definition "mail --username=myemail%40gmail.com --password=mypassword --host=imap.gmail.com --delete=false --port=993 --outputType=text/plain | file" --deploy

我能做些什么来解决这个问题?

此外,当我使用Mail as Sink时,也会出现同样的问题。在我所做的示例中,我使用HTTP作为我的Source

我使用的命令如下:

xd:>stream create toMail --definition "HTTP | mail --host=imap.gmail.com --to='\"some.email.com@gmail.com\"' --username=myemail%40gmail.com --subject='testing mail' --password=mypassword --port=993 --contentType=text/plain" --deploy

xd:> http post --target http://localhost:9000 --data "hello world!"

非常感谢您的反馈!

4

0 回答 0