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

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

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

Post 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?
Last edited by globetrotterdk on 10. Jan 2012, 11:50, edited 1 time in total.
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: Alpine multiple IMAP accounts problem w/folder colection

Post 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/
Image
Image
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

Re: Alpine multiple IMAP accounts problem w/folder colection

Post 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 :)
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: Alpine multiple IMAP accounts problem w/folder colection

Post 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.
Image
Image
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

Re: Alpine multiple IMAP accounts problem w/folder colection

Post by globetrotterdk »

Wow, thanks :D I'll give it a try.
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

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

Post 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?
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

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

Post 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
}
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

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

Post 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.
Image
Image
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

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

Post 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.
Military justice is to justice what military music is to music. - Groucho Marx
Post Reply