mailtohttp

command module
v0.0.0-...-2691469 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 13 Imported by: 0

README

mailtohttp

mail to http

installation

Requirement: Golang Version >= 1.16.0

go install  github.com/VirgilZhao/mailtohttp

useage

./mailtohttp -port 1323 -password test -encryptKey ABCDEFGHIGKLMNOP

Params Description

-port : port number

-password: login password

-encryptKey: use AES encrypt config file, key must be 16 character length

open browser access http://127.0.0.1:1323 login to use

image

config service

After login, you can config service by click "config service" button image

first is email config, IMAP mail service supportted only currently, 'Folder' means your can specify subfolder like 'Inbox/facebook', then the service only read mails inside this folder. image

content pattern config, you can add patterns here, use regex to match the content in mail, the return match value for a pattern is a list, because regex may return multi match content. image

config callback url, use http or https url to get the match result for each mail, the service will POST parttern result data to the url. image

then click 'start service' button, enjoy!

callback request body format

{
  params:[
   {
     name: 'test pattern1',
     value: ['match1', 'match2']
   },
   {
     name: 'test pattern2',
     value: ['match1', 'match2']
   }
  ]
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
v2

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL