mirror of
https://github.com/neilalexander/yggmail.git
synced 2026-05-12 06:36:28 +03:00
Update readme, create outbox, log remote in IMAP/SMTP auth
This commit is contained in:
@@ -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:")
|
||||
|
||||
Reference in New Issue
Block a user