Hey,
I've seen that you fixed the bug that no from header is set by the sieve
vacation reply, thank you!
If I am not mistaken, the used from address is always the one in the
context, no matter whether a different one is configured in the sieve
script with :from.
The correct fix would probably to inject CanSendFrom into the Sieve
class and then propagate it into the VacationAction.
An easier way would be to just use the known addresses for the user
which are already available in the VacationAction.
If CanSendFrom should be used, should it be done the same way as with
the known users? In that case, a new interface was added which is
fulfilled by a lambda:
private static UserAddresses aliasAddresses(UsersRepository
usersRepository, AliasReverseResolver aliasReverseResolver) {
return recipient -> Mono.fromCallable(() ->
usersRepository.getUsername(recipient))
.flatMapMany(aliasReverseResolver::listAddresses);
}
Wouldn't it be easier to just pass through the CanSendFrom /
AliasReverseResolver to the VacationAction?
Best regards,
Felix
--
Gesellschaft für Interkulturelles Zusammenleben gGmbH (GIZ)
Felix Auringer (er/ihm)
Softwareentwickler
Reformationsplatz 2
13597 Berlin
Tel: -; Fax: +4930513010009
www.giz.berlin; [email protected]
Amtsgericht Charlottenburg HRB 200872 B
Geschäftsführerin: Dr. Britta Marschke
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]