Claws-mail (Application)
Jump to navigation
Jump to search
Claws-mail
Install
- from apt
apt-get install claws-mail/bullseye-backports
- from sources (https://www.claws-mail.org/releases.php):
# shared/opt install schema v1.5.6 #### as common user #### # define applications vars export SOFTWARE_PATH="/home/shared/opt/software" export NAME="claws-mail" export VERSION="4.1.0" export URL="https://www.claws-mail.org/download.php?file=releases/claws-mail-${VERSION}.tar.gz" su - -w SOFTWARE_PATH,NAME,VERSION #### as root #### # install packages and prepare destination path apt-get -q -y install wget coreutils findutils < /dev/null apt-get -q -y install tar gzip gcc make libssl-dev libgnutls28-dev gnutls-bin pkg-config libglib2.0-dev libgdk-pixbuf2.0-dev libgtk-3-dev libcairo2-dev libetpan-dev < /dev/null mkdir -m 777 "${SOFTWARE_PATH}/tmp_install/" "${SOFTWARE_PATH}/${NAME}_${VERSION}/" exit #### as common user #### umask 0027 cd "${SOFTWARE_PATH}/tmp_install" wget -c --no-check-certificate "${URL}" -O tmp.ext tar -xzf tmp.ext && rm -f tmp.ext cd * # define compiler flags optimizations (from debian dpkg-buildflags command) export CFLAGS="-g0 -O2 -fstack-protector-strong -Wformat -Werror=format-security -mtune=native -pipe" export LDFLAGS="-s -Wl,-z,relro" # configure for MINIMAL terminal version ./configure --prefix="${SOFTWARE_PATH}/${NAME}_${VERSION}" make -s make install cd su - -w SOFTWARE_PATH,NAME,VERSION #### as root #### # ensure permissions to destination path cd "${SOFTWARE_PATH}" chown -R root:users "${NAME}_${VERSION}" find "${NAME}_${VERSION}" -type d -exec chmod a-s,u+rwx,g+rx,g-w,o-rwx {} \; find "${NAME}_${VERSION}" -type f -exec chmod a-s,u+rw,g+r,g-w,o-rwx {} \; rm -rf tmp_install ln -s -f -T "${NAME}_${VERSION}" "${NAME}" exit #### as common user #### # test the application "${SOFTWARE_PATH}/${NAME}/bin/claws-mail"
Oauth2 gmail config
tested with claws-mail 4.1.1
create a google cloud test project with a new oauth2 credential specific for email, use the following scope (add it manually if needed):
https://mail.google.com/ Read, compose, send, and permanently delete all your email from Gmail
remember, you only need a test project, it is not needed to publish it, just add your user to allow it use
References: