Closed franc0is closed 10 years ago
Can you try and manually install https://docs.google.com/file/d/0BzLCOahiEfRWMVo5Z1BwczFKaWs/edit?
If it works for you, we'll push it to the app list.
@jparyani looks like it does the trick. Happy logs below. Thanks! Out of curiosity, what's the patch?
...** SANDSTORM SUPERVISOR: Starting up grain.
+ export HOME=/var
+ export LANG=en_US.UTF-8
+ cd /var
+ test -e mail
+ mkdir -p mail/cur
+ mkdir -p mail/new
+ mkdir -p mail/tmp
+ chmod -R 770 mail
+ /usr/bin/python /mp --setup
Ignoring duplicate plugin: social-feed
Ignoring duplicate plugin: autoajax
Ignoring duplicate plugin: forcegrapher
Ignoring duplicate plugin: demos
Ignoring duplicate plugin: hacks
Ignoring duplicate plugin: maildeck
OK: Performed initial Mailpile setup
+ /usr/bin/python /mp --set sys.http_host=0.0.0.0
{
"sys.http_host": "0.0.0.0"
}
+ /usr/bin/python /mp --add /var/mail/
{
"added": {
"1": "/var/mail/"
}
}
+ /usr/bin/python /mp --set prefs.rescan_interval=5
{
"prefs.rescan_interval": "5"
}
+ /usr/bin/python /mp --set prefs.empty_outbox_interval=5
{
"prefs.empty_outbox_interval": "5"
}
+ /usr/bin/python /mp --rescan all
{
"mailboxes": 0,
"messages": 0,
"vcards": 0
}
+ /usr/bin/python /mp --www
It was exactly as simple as you said. I just added .decode('utf-8') to all the relevant strings. You can see it in 17f36994c9fd28dea97da8bdfd2198dde98c6885
Debug logs below. Mailpipe croaks when trying to install it on sandstorm, most likely because my account name countains non-ascii characters (Fran_ç_ois Baldassari). Looks like sandstorm is passing a utf-8 string to Mailpipe, whereas the python code probably expects UCS2. a
.decode('utf-8')
call would probably fix the issue.