Compiling the MUA mutt and making a click app of it (UNFINISHED)
We compile the MUA 'mutt' in the same jail as used above. It requires some more dev infrastructure:
# apt-get install libncursesw5-dev
phablet@ubuntu-phablet:~$ sudo chroot myRoot
root@ubuntu-phablet:/# su phablet
phablet@ubuntu-phablet:/$ cd
phablet@ubuntu-phablet:~$ cd mutt-1.5.23
phablet@ubuntu-phablet:~/mutt-1.5.23$
I configured mutt with the following values (in a small script c.sh):
$ cat c.sh
./configure --with-curses --with-sasl=/usr --disable-fcntl
--with-ssl=/usr --enable-external-dotlock --enable-pop
--enable-imap --disable-warnings --disable-flock
--enable-locales-fix --with-idn=no --disable-gpgme --enable-smtp
--enable-debug
$ make clean ; sh c.sh && make
the resulting bin needs the following shared libs:
The file mutt.sh sirves later to launch mutt with the correct environment:
#!/bin/sh
# to run the MUA mutt which we have compiled in a jail below /home/phablet/myRoot
# from outside the jail
LD_LIBRARY_PATH=/home/phablet/mutt.click/lib/arm-linux-gnueabihf
export LD_LIBRARY_PATH
SASL_PATH=/home/phablet/mutt.click/lib/arm-linux-gnueabihf
export SASL_PATH
MUTT=/home/phablet/mutt.click/mutt
cd
$MUTT -F ./.muttrc
With a well constructed .muttrc file it works fine to read (IMAPS) and send (SMTP AUTH) mails.
We even tried zo build our 1st 'click app' from this: construct the requested files:
$ sudo click udo click register --user=phablet com.ubuntu.mutt-terminal_0.1._multiegister --user=phablet com.ubuntu.developer.mapitz.ubuntu-mutt-app 0.1
** (process:1270): WARNING **: Desktop file '/opt/click.ubuntu.com/.click/users/phablet/com.ubuntu.developer.mapitz.ubuntu-mutt-app/ubuntu-mutt-app.desktop' is set to run in a terminal, not copying
after changing in the file mutt.click/ubuntu-mutt-app.desktop Terminal=false
the register goes fine, the icon is in the Applications but does not work because there is no way to start a click app which needs a terminal to run inside :-(