[Users] X-Mailer information

Ralf Mardorf info.mardorf at rocketmail.com
Sun Nov 2 14:31:31 CET 2014


On Sun, 2 Nov 2014 08:15:57 -0500
Charles A Edwards <cae at eslrahc.com> wrote:

> On Sun, 2 Nov 2014 13:30:06 +0100
> Ralf Mardorf wrote:
> 
> > my mail's headers show something that doesn't satisfy me.
> > 
> > X-Mailer: Claws Mail 3.11.0 (GTK+ 2.24.25; x86_64-unknown-linux-gnu)
> > X-Operating-System: Arch Linux
> > 
> > From were does Claws get the information about the used operating
> > system for the X-Mailer line?
> > 
> > "unknown-linux-gnu" doesn't look that nice.
> > 
> > [rocketmouse at archlinux ~]$ uname -o
> > GNU/Linux
> > [rocketmouse at archlinux ~]$ cat /etc/issue
> > Arch Linux \r (\l)
> > 
> > Is there a way to customize the X-Mailer by variables or
> > commands?
> 
> 
> They are build time variables.
> 
> See mine:
> Claws Mail 3.11.1-6-gdf413f (GTK+ 2.24.25; x86_64-mageia-linux-gnu)
> 
> This is achieved at build using|adding
>  --build=x86_64-mageia-linux-gnu at ./configure

Thank you Charles!

For Claws or GTK2? 

Another questeion, is there a way to disable 72 char line break for
code? [1]

When using Evolution there are two plain text options, one does cause a
line break after 72 chars and the other option takes over the original
formatting of e.g. code, that has got longer lines than 72 chars.

Regards,
Ralf

[1]
[rocketmouse at archlinux ~]$ cat /var/abs/extra/claws-mail/PKGBUILD
# $Id: PKGBUILD 225146 2014-10-21 15:34:34Z andyrtr $
# Maintainer: Andreas Radke <andyrtr at archlinux.org>

pkgname=claws-mail
pkgver=3.11.0
pkgrel=2
pkgdesc="A GTK+ based e-mail client."
arch=('i686' 'x86_64')
license=('GPL3')
url="http://www.claws-mail.org"
depends=('gtk2' 'gnutls' 'startup-notification' 'enchant' 'gpgme'
'libetpan' 'compface' 'libsm' 'dbus-glib' 'hicolor-icon-theme'
'desktop-file-utils') makedepends=('spamassassin' 'bogofilter'
'valgrind' 'intltool' # dependencies for plugins
             'libsoup' 'libgdata' 'webkitgtk2' 'libnotify'
'libcanberra' 'poppler-glib' 'pygtk') #'libchamplain' needed for
geolocation plugin, disabled for now - most time it's not compatible
with current gnome releases optdepends=('python2:           needed for
some tools and python plugin' 'perl:              needed for some tools
and perl plugin' 'spamassassin:      adds support for spamfiltering'
'bogofilter:        adds support for spamfiltering' 'libnotify:
for notification plugin' 'libcanberra:       for notification plugin'
            'dbus:              for notification plugin'
            'libxml2:           for gtkhtml2_viewer and rssyl plugins'
            'curl:              for gtkhtml2_viewer, vcalendar, rssyl
and spamreport plugins' 'libarchive:        for archive plugin and
various other plugins' 'libytnef:          for tnef_parse plugin'
            'webkitgtk2:        for the fancy webkit html plugin'
            'libsoup:           for the fancy webkit html plugin'
	        'libgdata:          for gdata plugin'
	        'poppler-glib:      for pdf viewer plugin'
	        'ghostscript:       for pdf viewer plugin')    
replaces=('sylpheed-claws' 'claws-mail-extra-plugins')
conflicts=('claws-mail-extra-plugins')
provides=('claws')
install=claws-mail.install
source=(http://downloads.sourceforge.net/sourceforge/claws-mail/${pkgname}-${pkgver}.tar.xz{,.asc})
sha1sums=('1fc919e7d4357408a04131c4195878ea920de4f0'
          'SKIP')

build() {
  cd ${pkgname}-${pkgver}
 
  # fixes for python2
  export PYTHON="/usr/bin/python2"
  sed -i 's@^#!.*python.*@#!/usr/bin/python2@' tools/*.py
  sed -i 's:python -c:python2 -c:g' configure
  
  ./configure --prefix=/usr --disable-static \
    --enable-enchant \
    --enable-gnutls \
    --enable-ldap \
    --enable-crash-dialog \
    --enable-pgpmime-plugin \
    --enable-spamassassin-plugin \
    --enable-bogofilter-plugin \
    --enable-appdata
    #--help
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR=${pkgdir} install

  # build and install extra tools
  cd tools
  make
   # all executables and .conf files ; only top directory
  find -maxdepth 1 -type f -and -perm /111 -or -name '*.conf' | while
  read i ; do install -D -m755 ${i} \
        ${pkgdir}/usr/lib/claws-mail/tools/${i}
  done
}
[rocketmouse at archlinux ~]$ cat /var/abs/extra/gtk2/PKGBUILD 
# $Id: PKGBUILD 224621 2014-10-16 12:05:01Z jgc $
# Maintainer: Jan de Groot <jgc at archlinux.org>

pkgbase=gtk2
pkgname=('gtk2' 'gtk-update-icon-cache')
pkgver=2.24.25
pkgrel=1
arch=('i686' 'x86_64')
url="http://www.gtk.org/"
makedepends=('atk' 'pango' 'libxcursor' 'libxinerama' 'libxrandr'
'libxi' 'libxcomposite' 'libxdamage' 'shared-mime-info' 'cairo'
'libcups' 'gdk-pixbuf2' 'gobject-introspection' 'python2')
license=('LGPL')
source=(http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-$pkgver.tar.xz
gtkrc xid-collision-debug.patch)
sha256sums=('38af1020cb8ff3d10dda2c8807f11e92af9d2fa4045de61c62eedb7fbc7ea5b3'
'b77a427df55a14182c10ad7e683b4d662df2846fcd38df2aa8918159d6be3ae2'
'd758bb93e59df15a4ea7732cf984d1c3c19dff67c94b957575efea132b8fe558')

prepare() {
    cd gtk+-$pkgver
    patch -Np1 -i ../xid-collision-debug.patch
}

build() {
    cd gtk+-$pkgver

    CXX=/bin/false ./configure --prefix=/usr \
        --sysconfdir=/etc \
        --localstatedir=/var \
        --with-xinput=yes

    # https://bugzilla.gnome.org/show_bug.cgi?id=655517
    sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

    make
}

package_gtk2() {
    pkgdesc="GTK+ is a multi-platform toolkit (v2)"
    install=gtk2.install
    depends=('atk' 'pango' 'libxcursor' 'libxinerama' 'libxrandr'
'libxi' 'libxcomposite' 'libxdamage' 'shared-mime-info' 'cairo'
'libcups' 'gtk-update-icon-cache') optdepends=('gnome-themes-standard:
Default widget theme' 'gnome-icon-theme: Default icon theme')
    replaces=('gtk2-docs')

    cd gtk+-$pkgver
    make DESTDIR="$pkgdir" install

    sed -i "s#env python#env python2#"
    $pkgdir/usr/bin/gtk-builder-convert

    install -Dm644 "$srcdir/gtkrc" "$pkgdir/usr/share/gtk-2.0/gtkrc"

    #split this out to use with gtk3 too
    rm $pkgdir/usr/bin/gtk-update-icon-cache
}
package_gtk-update-icon-cache() {
    pkgdesc="The GTK+ update icon cache tool"
    depends=('gdk-pixbuf2>=2.24.1-3' 'hicolor-icon-theme')
    install=gtk-update-icon-cache.install

    cd gtk+-$pkgver/gtk
    install -D -m755 gtk-update-icon-cache
    "$pkgdir/usr/bin/gtk-update-icon-cache" }



More information about the Users mailing list