mirror of
https://github.com/jhillyerd/inbucket.git
synced 2026-01-27 13:35:59 +00:00
smtp/policy: Store messages with full naming for #33
- Added some tests to make sure stores do not enforce their own naming. - Improve recipient structured logging.
This commit is contained in:
@@ -56,7 +56,9 @@ func (m *ManagerStub) GetMetadata(mailbox string) ([]*message.Metadata, error) {
|
||||
|
||||
// MailboxForAddress invokes policy.ParseMailboxName.
|
||||
func (m *ManagerStub) MailboxForAddress(address string) (string, error) {
|
||||
addrPolicy := &policy.Addressing{Config: &config.Root{}}
|
||||
addrPolicy := &policy.Addressing{Config: &config.Root{
|
||||
MailboxNaming: config.FullNaming,
|
||||
}}
|
||||
return addrPolicy.ExtractMailbox(address)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user