WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Can mutt be updated ?  (Read 4706 times)

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Can mutt be updated ?
« on: March 11, 2012, 01:41:35 AM »
bmarkus any chance of getting mutt updated to latest version ?
I need the support for smpt.

current microcore 3.8.4 version does not support smtp, if your busy, I can do it.

Thanks.
Live long and prosper.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Can mutt be updated ?
« Reply #1 on: March 11, 2012, 03:43:18 AM »
You can take over mutt maintenance. I'm not using it now, better if an activ user is doing it :-)

Do it for 4.x not only for 3.8
« Last Edit: March 11, 2012, 03:44:56 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Re: Can mutt be updated ?
« Reply #2 on: March 11, 2012, 06:22:46 AM »
Thanks bmkarkus, i'll do my best.
Live long and prosper.

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Re: Can mutt be updated ?
« Reply #3 on: March 11, 2012, 09:06:11 AM »
I've achieved my goal to be able to send email from a shell script using mutt-1.5.21 with smtp enabled during compile.

Here are the configure options I used.
Code: [Select]
./configure --prefix=/usr/local --enable-imap --enable-pop --enable-smtp --with-homespool=/var/spool/
While I have satisfied my own needs, I feel I need the input of a seasoned linux user to ensure that I include the best all round compile options for greater usability. I'm very inexperienced with mutt

I will keep the compile options for future releases, as long as I am the maintainer.
Live long and prosper.

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Re: Can mutt be updated ?
« Reply #4 on: March 13, 2012, 05:44:02 AM »
I'm going with the following cimpile options for now.
Code: [Select]
./configure --prefix=/usr/local --enable-imap --enable-pop --enable-smtp --with-homespool=/var/spool/
I've had a look through the mutt files after installing, and see that I have 3 extensions to release
mutt.tcz
mutt-doc.tcz
mutt-locale.tcz

I've been preparing lean extensions in what i think is the hard way, I install the package to /tmp/package and then remove what i don't need. If I'm releasing a core package, mutt for example, i'll remove the dir's that contain the doc and locale info. Then I run the relevant commands to make it into mutt.tcz
then I clean up the /tmp/package folder, and run the mutt installer again, to get the doc and locale files back. Then I'll remove everything except the docs, so i can make that into mutt-doc.tcz
Like i said its slow and dumb. Can someone tell me the smart way to do it ?

thanks.
Live long and prosper.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Can mutt be updated ?
« Reply #5 on: March 13, 2012, 06:00:31 AM »
I'm not saying it is the samrt way, just the build script from 2010 to make previous version:

Quote
#!/bin/sh
#
######################################################
# Build script for TinyCore 3.x                      #
#                                                    #
# See .info for details                              #
#                                                    #
# May 11, 2010                                       #
######################################################

######################################################
# Configure extension creation parameters            #
######################################################

SRCNAM=mutt-1.4.2.3.tar.gz
WRKDIR=mutt-1.4.2.3
EXTNAM=mutt
TMPDIR=/tmp/mutt

######################################################
# Prepare extension creation                         #
######################################################

# Remove dirs and files left from previous creation

rm -r -f $WRKDIR

rm -r -f $TMPDIR
rm -r -f $TMPDIR-doc
rm -r -f $TMPDIR-locale

# Crete temporary directory

mkdir -p $TMPDIR

######################################################
# Compile extension                                  #
######################################################

# Export variables needed for compilation

export CFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti"
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig

# Unpack source in current directory

tar -xf $SRCNAM

# Configure it

cd $WRKDIR
./configure --prefix=/usr/local --with-mailpath=/var/spool/mail --with-regex --enable-pop --enable-imap --with-ssl

# Compile

make

# Install in base temp dir

make install DESTDIR=$TMPDIR

# Delete compilation work directory

cd ..
rm -r -f $WRKDIR

# Remove unneded dirs and files

# Adjust directory access rigths

find $TMPDIR/ -type d | xargs chmod -v 755;

# Strip executables

find $TMPDIR | xargs file | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded

# Move files to doc extension

mkdir -p $TMPDIR-doc/usr/local/share
mv $TMPDIR/usr/local/share/man $TMPDIR-doc/usr/local/share
mv $TMPDIR/usr/local/doc $TMPDIR-doc/usr/local

# Move files to locale extension

mkdir -p $TMPDIR-locale/usr/local/share/mc
mv $TMPDIR/usr/local/share/locale $TMPDIR-locale/usr/local/share
mv $TMPDIR/usr/local/share/mc/mc.hlp* $TMPDIR-locale/usr/local/share/mc
mv $TMPDIR-locale/usr/local/share/mc/mc.hlp $TMPDIR/usr/local/share/mc

###################################################
# Create base extension in temp dir               #
###################################################

cd $TMPDIR
cd ..
mksquashfs $TMPDIR $EXTNAM.tcz
cd $TMPDIR
find usr -not -type d > $EXTNAM.tcz.list
mv ../$EXTNAM.tcz .

# Create md5 file

md5sum $EXTNAM.tcz > $EXTNAM.tcz.md5.txt

# Cleanup temp directory

rm -r -f usr 

###################################################
# Create doc extension in temp dir                #
###################################################

cd $TMPDIR-doc
cd ..
mksquashfs $TMPDIR-doc $EXTNAM-doc.tcz
cd $TMPDIR-doc
find usr -not -type d > $EXTNAM-doc.tcz.list
mv ../$EXTNAM-doc.tcz .

# Create md5 file

md5sum $EXTNAM-doc.tcz > $EXTNAM-doc.tcz.md5.txt

# Cleanup temp directory

rm -r -f usr 

###################################################
# Create locale extension in temp dir             #
###################################################

cd $TMPDIR-locale
cd ..
mksquashfs $TMPDIR-locale $EXTNAM-locale.tcz
cd $TMPDIR-locale
find usr -not -type d > $EXTNAM-locale.tcz.list
mv ../$EXTNAM-locale.tcz .

# Create md5 file

md5sum $EXTNAM-locale.tcz > $EXTNAM-locale.tcz.md5.txt

# Cleanup temp directory

rm -r -f usr
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Re: Can mutt be updated ?
« Reply #6 on: March 21, 2012, 08:15:34 AM »
Thanks for your script bmarkus, I will study it.

I see you have a few different compile options which I will copy.
./configure --prefix=/usr/local --with-mailpath=/var/spool/mail --with-regex --enable-pop --enable-imap --with-ssl

I only just saw this post, as I was reading back over it, I never received an update when you posted on  March 13, 2012
Live long and prosper.

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Re: Can mutt be updated ?
« Reply #7 on: March 28, 2012, 06:26:15 AM »
./configure options updated
./configure --prefix=/usr/local --with-mailpath=/var/spool/mail --with-regex --enable-pop --enable-imap --with-ssl --enable-smtp
Live long and prosper.

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Re: Can mutt be updated ?
« Reply #8 on: May 03, 2012, 08:38:41 AM »
Sorry about the delay finishing this, I ran out of time getting ready to travel overseas, and I've got some time to finish it now :)

I ran into a problem when running
$ make install DESTDIR=/tmp/package

With the following compile options.
Code: [Select]
./configure --prefix=/usr/local --with-mailpath=/var/spool/mail --with-regex --enable-pop --enable-imap --with-ssl --enable
-smpt

Code: [Select]
make[4]: Entering directory `/mnt/hdb1/mutt/mutt-1.5.21'
if test -f /tmp/package/usr/local/bin/mutt.dotlock && test -f /tmp/package/usr/local/bin/mutt_dotlock ; then    \
        rm -f /tmp/package/usr/local/bin/mutt.dotlock ;         \
        ln -sf /tmp/package/usr/local/bin/mutt_dotlock /tmp/package/usr/local/bin/mutt.dotlock ; \
fi
if test -f /tmp/package/usr/local/bin/mutt_dotlock && test xmail != x ; then \
        chgrp mail /tmp/package/usr/local/bin/mutt_dotlock && \
        chmod 2755 /tmp/package/usr/local/bin/mutt_dotlock || \
        { echo "Can't fix mutt_dotlock's permissions!" >&2 ; exit 1 ; } \
fi
chgrp: invalid group: `mail'
Can't fix mutt_dotlock's permissions!
make[4]: *** [install-exec-hook] Error 1
make[4]: Leaving directory `/mnt/hdb1/mutt/mutt-1.5.21'
make[3]: *** [install-exec-am] Error 2
make[3]: Leaving directory `/mnt/hdb1/mutt/mutt-1.5.21'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/mnt/hdb1/mutt/mutt-1.5.21'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/mnt/hdb1/mutt/mutt-1.5.21'
make: *** [install] Error 2
Live long and prosper.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Can mutt be updated ?
« Reply #9 on: May 03, 2012, 08:46:10 AM »
Quote
chgrp: invalid group: `mail'

Mail group doesn't exist.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Can mutt be updated ?
« Reply #10 on: May 03, 2012, 08:47:39 AM »
..so either you need to create this group or modify mutt so that it accepts the tc default group "staff"
« Last Edit: May 03, 2012, 08:55:50 AM by Juanito »

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Re: Can mutt be updated ?
« Reply #11 on: May 06, 2012, 09:48:17 PM »
thx bmarkus and Juanito

Runing "sudo addgroup mail" before ./configure does the trick.

I'll package the extension and do some testing
Live long and prosper.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Can mutt be updated ?
« Reply #12 on: May 07, 2012, 12:40:18 AM »
thx bmarkus and Juanito

Runing "sudo addgroup mail" before ./configure does the trick.

I'll package the extension and do some testing

Well, it is for compile time. What is about running mutt, is it necessary to have group mail and add tc to mail group? Just asking.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Can mutt be updated ?
« Reply #13 on: May 07, 2012, 12:50:27 AM »
This is why I was suggesting to modify - if possible - mutt to work with group "staff" rather than group "mail".

I don't know if this is as simple as a ./configure switch or is more difficult than that..

Offline remus

  • Sr. Member
  • ****
  • Posts: 371
Re: Can mutt be updated ?
« Reply #14 on: May 08, 2012, 09:13:26 PM »
I'm looking into making the default group staff, other general testing is going well.
Live long and prosper.