1
0
mirror of https://github.com/mgerb/tmail synced 2026-01-10 17:42:48 +00:00

minor updates

This commit is contained in:
2018-02-06 15:00:31 +00:00
parent a6af3d11e2
commit b626050b5f
6 changed files with 25 additions and 13 deletions

View File

@@ -1,11 +1,11 @@
package webserver
import (
"log"
"github.com/gin-gonic/gin"
"github.com/mgerb/tmail/db"
"github.com/mgerb/tmail/mail"
log "github.com/sirupsen/logrus"
)
func Start() {
@@ -18,7 +18,8 @@ func mailHander(c *gin.Context) {
to := c.Query("to")
var mail []mail.Mail
log.Println(to)
log.Debug(to)
if to != "" {
db.Conn.Find("To", to, &mail)