Skip to content
This repository has been archived by the owner on Apr 27, 2019. It is now read-only.

Address alias collision - unusable alias #8

Closed
stahlkarl opened this issue Feb 18, 2015 · 1 comment
Closed

Address alias collision - unusable alias #8

stahlkarl opened this issue Feb 18, 2015 · 1 comment

Comments

@stahlkarl
Copy link

Hi!
Than you for providing the source code for this excellent service!

While reading
https://github.com/m242/maildrop/blob/master/common/src/main/scala/com/heluna/maildrop/util/AltInbox.scala
I realized that two identical addresses (except for the non alfa-numeric characters) would result in the same alias. Ex:
http://maildrop.cc/inbox/alfred
http://maildrop.cc/inbox/alfred+-~
Both have the alias: D-2aa0sp7@maildrop.cc

When sending an email to the alias address, it only appeared in the "alfred" inbox.

@m242
Copy link
Owner

m242 commented Apr 7, 2015

They're also case insensitive; /inbox/alfred and /inbox/ALFRED will have the same alias. This is more or less by design, but if you want to strip this out, you can remove the ".toLowerCase.replaceAll" method calls in getAltInbox and getRegularInbox.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants