modoboa / modoboa-webmail

The webmail of Modoboa
MIT License
73 stars 48 forks source link

Cyrillic flag names cause parser error #256

Open zluque opened 10 months ago

zluque commented 10 months ago

When i open my Inbox with mails having flags named in cyrillic letters a parser exception is thrown. I added characters +#,& to the RegEx mask to fix this: ("flag", r'(\\|\$)?[a-zA-Z0-9\-_+#,&]+'),

https://github.com/modoboa/modoboa-webmail/blob/3acae801b6ce6f9f57ea90c522dfeafc34f59940/modoboa_webmail/lib/fetch_parser.py#L93