rename Account.Deliver to Account.DeliverDestination

the name was too generic compared with the other Deliver functions
This commit is contained in:
Mechiel Lukkien
2023-09-15 17:51:28 +02:00
parent 3620d6f05e
commit ca5ef645f3
4 changed files with 6 additions and 6 deletions

View File

@ -219,7 +219,7 @@ func Add(ctx context.Context, log *mlog.Log, senderAccount string, mailFrom, rcp
conf, _ := acc.Conf()
dest := conf.Destinations[mailFrom.String()]
acc.WithWLock(func() {
err = acc.Deliver(log, dest, &m, msgFile, consumeFile)
err = acc.DeliverDestination(log, dest, &m, msgFile, consumeFile)
})
if err != nil {
return 0, fmt.Errorf("delivering message: %v", err)