Page 1 of 1

(Solved) Alpine multiple IMAP problem w/folder colections.

Posted: 6. Jan 2012, 17:22
by globetrotterdk
I am trying to get Alpine to work on a new Salix OS LXDE 13.37 install on my netbook. I have two IMAP accounts that I am trying to get set up correctly. The first account is in connection with my domain / web hotel provider. The second is a Gmail account. My private domain is set as default, and the Gmail account is set as a folder collection. The configuration works fine as long as I don't create a folder collection for my private domain account. If I add this account as a folder collection, for convenience, I suddenly no longer get a list of emails, but rather a list of folders - apparently from inside the inbox (sent, draft, trash). I have this setup working fine on a pair of computers with Ubuntu based systems, so it should work on Salix OS as well. The only difference I can see is there is a slight difference in the Alpine version numbers (Salix version 2.00-i486-3 Xubuntu version 2.02-3). This would normally not be a big issue, but I am planning on migrating my Ubuntu based systems to Salix. I would like to understand what is going on. Does anyone have a suggestion?

Re: Alpine multiple IMAP accounts problem w/folder colection

Posted: 6. Jan 2012, 19:57
by gapan
The version difference is probably the only difference that matters. In fact, it turns out, ubuntu's alpine is not actually alpine, but re-alpine instead. You can find re-alpine's homepage here: http://sourceforge.net/projects/re-alpine/

Re: Alpine multiple IMAP accounts problem w/folder colection

Posted: 6. Jan 2012, 20:12
by globetrotterdk
gapan wrote:The version difference is probably the only difference that matters. In fact, it turns out, ubuntu's alpine is not actually alpine, but re-alpine instead. You can find re-alpine's homepage here: http://sourceforge.net/projects/re-alpine/
Hmm. Ok, thanks gapan :)

Re: Alpine multiple IMAP accounts problem w/folder colection

Posted: 6. Jan 2012, 20:39
by gapan
I quickly created an SLKBUILD for re-alpine.

Code: Select all

#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=re-alpine
pkgver=2.02
pkgrel=1gv
source=("http://downloads.sourceforge.net/project/re-alpine/re-alpine-$pkgver.tar.bz2")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://sourceforge.net/projects/re-alpine/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"re-alpine (The continuation of the Alpine email client)"
"re-alpine is the The continuation of the Alpine email client from the"
"University of Washington."
)


build() {
        cd $startdir/src/$pkgname-$pkgver
        ./configure --prefix=/usr \
                --libdir=/usr/lib${LIBDIRSUFFIX} \
                --localstatedir=/var \
                --sysconfdir=/etc \
                --with-ssl-dir=/usr \
                --with-ssl-certs-dir=/etc/ssl/certs \
                --with-c-client-target=slx \
                --with-system-pinerc=/etc/pine.conf \
                --with-system-fixed-pinerc=/etc/pine.conf.fixed \
                --disable-debug \
                --with-debug-level=0 \
                --without-tcl \
                --program-prefix="" \
                --program-suffix="" \
                --build=$arch-slackware-linux
        make -j $numjobs || return 1
        make install SSLTYPE=unix DESTDIR=$startdir/pkg

        # Add default config file:
        mkdir -p $startdir/pkg/etc
        ./alpine/alpine -conf > $startdir/pkg/etc/pine.conf
}
Put that code in a file named SLKBUILD somewhere and run

Code: Select all

fakeroot slkbuild -X
in the same directory you put it. That will create a package for re-alpine. The package won't have support for pinepgp as the slackware alpine package has, but otherwise it should work. Remove the original alpine package before installing this.

Re: Alpine multiple IMAP accounts problem w/folder colection

Posted: 6. Jan 2012, 20:54
by globetrotterdk
Wow, thanks :D I'll give it a try.

Re: (Solved) Alpine multiple IMAP problem w/folder colection

Posted: 15. Jan 2012, 00:52
by globetrotterdk
re-alpine apparently doesn't save my passwords in .pine-passfile I get prompted at every start. How can I change this behavior?

BTW, I am planning on installing Salix64 LXDE 13.37 on my desktop machine and noticed that there doesn't seem to be a reference of an re-alpine 64-bit version on the http://sourceforge.net/projects/re-alpine/ site. Does that mean that re-alpine is only available as 32-bit?

Re: (Solved) Alpine multiple IMAP problem w/folder colection

Posted: 5. May 2013, 03:47
by globetrotterdk
Just to round things out, I thought I would post the modified SLKBUILD that I used to build the newest version of re-alpine - including support for a password file. It never ceases to amaze me how elegant and at the same time simple, a SLKBUILD can be:

Code: Select all

#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>
#Modified: Brian Durant <globetrotterdk-at-gmail-dot-com>

pkgname=re-alpine
pkgver=2.03
pkgrel=1gv
source=("http://downloads.sourceforge.net/project/re-alpine/re-alpine-$pkgver.tar.bz2")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://sourceforge.net/projects/re-alpine/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"re-alpine (The continuation of the Alpine email client)"
"re-alpine is the The continuation of the Alpine email client from the"
"University of Washington."
)


build() {
        cd $startdir/src/$pkgname-$pkgver
        ./configure --prefix=/usr \
                --libdir=/usr/lib${LIBDIRSUFFIX} \
                --localstatedir=/var \
                --sysconfdir=/etc \
                --with-ssl-dir=/usr \
                --with-ssl-certs-dir=/etc/ssl/certs \
                --with-c-client-target=slx \
                --with-system-pinerc=/etc/pine.conf \
                --with-system-fixed-pinerc=/etc/pine.conf.fixed \
		--with-passfile=.pine-passfile \
                --disable-debug \
                --with-debug-level=0 \
                --without-tcl \
                --program-prefix="" \
                --program-suffix="" \
                --build=$arch-slackware-linux
        make -j $numjobs || return 1
        make install SSLTYPE=unix DESTDIR=$startdir/pkg

        # Add default config file:
        mkdir -p $startdir/pkg/etc
        ./alpine/alpine -conf > $startdir/pkg/etc/pine.conf
}

Re: (Solved) Alpine multiple IMAP problem w/folder colection

Posted: 6. May 2013, 07:57
by gapan
BTW, the slackware alpine 2.02 package that is in slackware 14.0 (and also in salix 14.0 of course) is using re-alpine sources.

Re: (Solved) Alpine multiple IMAP problem w/folder colection

Posted: 6. May 2013, 12:13
by globetrotterdk
gapan wrote:BTW, the slackware alpine 2.02 package that is in slackware 14.0 (and also in salix 14.0 of course) is using re-alpine sources.
Thanks for the information gapan.