#endif
#include "mutt.h"
+#include "ascii.h"
#include "charset.h"
#include "mutt_idna.h"
*domain = NULL;
p = strchr (mbx, '@');
- if (!p)
+ if (!p || !p[1])
return -1;
*user = mem_calloc ((p - mbx + 1), sizeof (mbx[0]));
strfcpy (*user, mbx, (p - mbx + 1));