Update readme, create outbox, log remote in IMAP/SMTP auth

This commit is contained in:
Neil Alexander
2021-07-09 19:38:05 +01:00
parent 2565129191
commit ea11f4cf6c
7 changed files with 30 additions and 14 deletions

View File

@@ -66,9 +66,6 @@ func main() {
if err := storage.ConfigSet("private_key", hex.EncodeToString(sk)); err != nil {
panic(err)
}
if err := storage.MailboxCreate("INBOX"); err != nil {
panic(err)
}
log.Printf("Generated new server identity")
} else {
skBytes, err := hex.DecodeString(skStr)
@@ -80,6 +77,12 @@ func main() {
pk := sk.Public().(ed25519.PublicKey)
log.Printf("Mail address: %s@%s\n", hex.EncodeToString(pk), utils.Domain)
for _, name := range []string{"INBOX", "Outbox"} {
if err := storage.MailboxCreate(name); err != nil {
panic(err)
}
}
switch {
case password != nil && *password:
log.Println("Please enter your new password:")