PDA

View Full Version : [SOLVED] Mail-notification and SSL issue (Update 9.10 Karmic)



mack75
November 25th, 2009, 03:46 AM
Hi:

Today I've upgraded my Ubuntu on my Laptop to 9.10 with a fresh installation.

I'm using the mail-notification program to checkout my inboxes, but, I prefer to use SSL to do that.

Previously I had used the short howto from this thread http://ubuntuforums.org/showthread.php?t=589115 but today it didn't work.

So, I had to work on it.

Here some instructions to append at the short howto:

Original Howto:

cd /tmp
apt-get source mail-notification
sudo apt-get build-dep mail-notification
sudo apt-get install libssl-dev fakeroot
cd mail-notification-4.1.dfsg.1
vi debian/rules (remove --disable-ssl in line 11)
dpkg-buildpackage -rfakeroot
sudo cp debian/mail-notification/usr/bin/mail-notification /usr/bin/mail-notification

Modified Howto:
cd /tmp
apt-get source mail-notification

We'll need some packages to build the dependencies:
+ libeel2 (https://launchpad.net/ubuntu/jaunty/i386/libeel2-2/2.26.0-0ubuntu2)
+ libeel2-data (https://launchpad.net/ubuntu/jaunty/i386/libeel2-data/2.26.0-0ubuntu2)
+ libeel2-dev (https://launchpad.net/ubuntu/jaunty/i386/libeel2-dev/2.26.0-0ubuntu2)
Download all of them and install all of them with "dpkg -i"

sudo apt-get build-dep mail-notification
sudo apt-get install libssl-dev fakeroot
cd mail-notification-5.4.dfsg.1 (thanks to rparker)
vi debian/rules (in line 31 change the ssl=no to ssl=yes)

Before to compile we need some packages:
sudo apt-get install gtkhtml3.8 libgtkhtml3.8-dev libgnomeprint2.2-dev libebook1.2-dev libgtkhtml-dev libgtkhtml-editor-dev

Now, we will make the symbolic links to avoid compilation errors:
cd /usr/include
sudo ln -s libgtkhtml-3.8/gtkhtml .
sudo ln -s libgnomeprint-2.2/libgnomeprint
sudo find libgtkhtml-3.14/editor/ -type f -exec ln -s {} . \;

Now, we will build the package:

dpkg-buildpackage -rfakeroot

Backup the original file:
sudo cp /usr/bin/mail-notification ~/mail-notification.ubuntu

sudo cp debian/mail-notification/usr/bin/mail-notification /usr/bin/mail-notification

Enjoy it! :popcorn:

rparker
November 25th, 2009, 11:04 PM
Hi,

I follow the steps through:
sudo apt-get build-dep mail-notification
sudo apt-get install libssl-dev fakeroot

and then:
cd mail-notification-4.1.dfsg.1

response was:
No such file or directory

Please help. Thank you.

mack75
November 27th, 2009, 06:58 AM
Hi:

You need to download the source code.

Do you has executed: apt-get source mail-notification ???

Don't move from the current directory, preferably in /tmp

After doing this, go to through missing steps

Regards

rparker
November 28th, 2009, 03:26 PM
mack75,

Thank you for responding. Yes I had executed apt-get source mail-notification. I did notice though that a directory was not created within /tmp so I executed it again. Then I entered cd /tmp/mail-notification-5.4.dfsg.1 (notice the file name change). From there I followed the balance of the "How To" with success.

Thank you!

mack75
November 30th, 2009, 08:03 PM
Thanks rparker for the notice.

vip_n
December 1st, 2009, 04:04 PM
Hi all,

Thanks a lot for this how-to but I'm struck with a bit of a problem ...

The package libgtkhtml-dev just won't install (I'm on a 64-bit karmic) when I try to install it manually. It seems that I cannot get all its dependencies (especially libbonobo2_1 that needs itself to be installed ...).

Maybe there is a workaround ?

mack75
December 1st, 2009, 05:44 PM
Hi vip_n:

I don't have a PC to install 64 bits distro, but, can you copy to us the output from the apt-get install libgtkhtml......??

Can you try to install this packages?: sudo apt-get install gtkhtml3.8 libgtkhtml3.8-dev libgnomeprint2.2-dev libebook1.2-dev libgtkhtml2-dev libgtkhtml-editor-dev

Notice that the package libgtkhtml-dev has been replaced for libgtkhtml2-dev

Good luck! and let us know the results.

Regards

vip_n
December 2nd, 2009, 11:21 AM
I installed libgtkhtml2-dev as the libgtkhtml package could not be found with apt-get.

Then I couldn't find mail-notification in /usr/bin/ but (after reading the compilation output) I realized that I had to install the package that has been created (in /tmp/). After installing it, it worked like a charm !

Thanks for the help, but I still don't know why the program doesn't install directly (as it did in 9.04 after recompile).

FuePi
December 8th, 2009, 12:09 PM
Hi mack75,

the guide worked very well :)

Thanks.

mack75
December 8th, 2009, 06:17 PM
Hi vip_n:

In reply to:

"but I still don't know why the program doesn't install directly (as it did in 9.04 after recompile)."

maybe because I forgot to tell you: first install the mail-notification packege and then execute this guide. :-)

Sorry.

Regards

Naaktgeboren
January 29th, 2010, 04:03 PM
There is also a PPA with mail-notification packages built with SSL support:

https://launchpad.net/~mail-notification-ssl/+archive/ppa