Created
August 2, 2021 08:53
-
-
Save brunoamaral/221c097278bacdb703065dd2c95be060 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"c8971770.2bcb98","type":"file","z":"d7b932b9.f6cb4","name":"","filename":"","appendNewline":true,"createDir":false,"overwriteFile":"true","encoding":"none","x":1050,"y":440,"wires":[["5759783a.949fa8"]]},{"id":"57fad02e.17f44","type":"rbe","z":"d7b932b9.f6cb4","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","x":930,"y":420,"wires":[["c8971770.2bcb98"]]},{"id":"992b766a.f1a868","type":"change","z":"d7b932b9.f6cb4","name":"destino","rules":[{"t":"set","p":"filename","pt":"msg","to":"\"/NAS/Invoices_Archive/\" & $substring($now(),0,13) & \"h\" & $substring($now(),14,2) & \"mn_\" & msg.payload.filename","tot":"jsonata"},{"t":"set","p":"payload","pt":"msg","to":"payload.content","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":760,"y":420,"wires":[["57fad02e.17f44","8490a08.3588e6"]]},{"id":"3e3b1204.c9300e","type":"switch","z":"d7b932b9.f6cb4","name":"PDF?","property":"payload.contentType","propertyType":"msg","rules":[{"t":"eq","v":"application/pdf","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":630,"y":420,"wires":[["992b766a.f1a868"]]},{"id":"1d702295.dae74d","type":"split","z":"d7b932b9.f6cb4","name":"separar anexos","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":480,"y":420,"wires":[["3e3b1204.c9300e"]]},{"id":"5d14987c.f877e8","type":"change","z":"d7b932b9.f6cb4","name":"recolher anexos","rules":[{"t":"set","p":"payload","pt":"msg","to":"attachments","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":420,"wires":[["1d702295.dae74d"]]},{"id":"8377e783.bde088","type":"e-mail in","z":"d7b932b9.f6cb4","name":"Emails de Faturas","protocol":"IMAP","server":"imap.gmail.com","useSSL":true,"autotls":"required","port":"993","box":"invoices","disposition":"Read","criteria":"UNSEEN","repeat":"60","fetch":"auto","inputs":0,"x":110,"y":420,"wires":[["5d14987c.f877e8","fcbcfe5.5dcb2"]]}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment