|
@@ -26,12 +26,15 @@
|
|
package web
|
|
package web
|
|
|
|
|
|
import (
|
|
import (
|
|
|
|
+ "crypto/md5"
|
|
|
|
+ "encoding/hex"
|
|
"encoding/json"
|
|
"encoding/json"
|
|
"fmt"
|
|
"fmt"
|
|
template "html/template"
|
|
template "html/template"
|
|
"log"
|
|
"log"
|
|
"net/http"
|
|
"net/http"
|
|
"strconv"
|
|
"strconv"
|
|
|
|
+ "strings"
|
|
|
|
|
|
common "git.semlanik.org/semlanik/gostfix/common"
|
|
common "git.semlanik.org/semlanik/gostfix/common"
|
|
)
|
|
)
|
|
@@ -172,12 +175,15 @@ func (s *Server) handleStatusLine(w http.ResponseWriter, user, email string) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ emailHash := md5.Sum([]byte(strings.Trim(email, "\t ")))
|
|
fmt.Fprint(w, s.templater.ExecuteStatusLine(&struct {
|
|
fmt.Fprint(w, s.templater.ExecuteStatusLine(&struct {
|
|
- Name string
|
|
|
|
- Email string
|
|
|
|
|
|
+ Name string
|
|
|
|
+ Email string
|
|
|
|
+ EmailHash string
|
|
}{
|
|
}{
|
|
- Name: info.FullName,
|
|
|
|
- Email: email,
|
|
|
|
|
|
+ Name: info.FullName,
|
|
|
|
+ Email: email,
|
|
|
|
+ EmailHash: hex.EncodeToString(emailHash[:]),
|
|
}))
|
|
}))
|
|
}
|
|
}
|
|
|
|
|