Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100607 - muttprint isn't able to filter out signatures
Summary: muttprint isn't able to filter out signatures
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Fernando J. Pereda (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-28 09:37 UTC by Sebastian
Modified: 2005-08-04 10:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
muttprint-rem_sig.patch (muttprint-rem_sig.patch,839 bytes, patch)
2005-08-04 01:50 UTC, Fernando J. Pereda (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian 2005-07-28 09:37:21 UTC
Hi all!

I'm trying to filter our the sigs before printing them with muttprint (using mutt).

In my muttprintrc it says:

REM_SIG="on"

And the SIG_REGEXP is the default one (=> ^-- $). Grepping the mail (text file)
containing a signature does find the double dashes ("-- "). But muttprint
doesn't filter out the sig.

Maybe someone is up to this, I'd be glad if so.

Thanks

Sebastian

Reproducible: Always
Steps to Reproduce:
1. Use REM_SIG="on" in your ~/.muttprintrc
2. Print a mail containing a signature separated with a line holding only "-- "
as a separator
3. 
Actual Results:  
Signature does get printed

Expected Results:  
Signature doesn't get printed

emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.5-r0, 2.6.13-rc3 i686)
=================================================================
System uname: 2.6.13-rc3 i686 AMD Sempron(tm)   2400+
Gentoo Base System version 1.6.13
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/data/eltern_vdr/data/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://sunsite.rwth-aachen.de/pub/Linux/gentoo"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.informatik.rwth-aachen.de/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 alsa crypt cups dts dvd dvdread encode ffmpeg flac
foomaticdb freetype gnome gtk2 ithreads jpeg mad mmx mmxext ncurses nls ogg
oggvorbis png ppds qt readline rtc spell sse ssl tetex truetype truetype-fonts
userlocales vcd vorbis wxwindows xv xvid zlib linguas_de userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 1 Sebastian 2005-07-28 09:45:59 UTC
Also printing to a file results in the signature being displayed _above_ the
message body :)
Comment 2 Sebastian 2005-07-28 09:51:46 UTC
Here's the debug output:

mutt
======================================================================
ADDRESSFORMAT         => %r <%a>,\n
BACKGROUND            => off
BOTTOMMARGIN          => 22
DATE                  => local
DATE_FORMAT           => %A, %d. %B %Y %H:%M:%S
DEBUG                 => 1
DUPLEX                => printer
FONT                  => Latex
FONTSIZE              => 10pt
FOOTRULE              => off
FRONTSTYLE            => fbox
HEADRULE              => off
ICONV_EXTERNAL        => off
LATEXCODE             =>
LATEXCODE1            =>
LATEXCODE2            =>
LATEXCODE3            =>
LATEXCODE4            =>
LATEXCODE5            =>
LEFTMARGIN            => 20
MAXADDR               => 10
PAPER                 => A4
PAPERSAVE             => off
PENGUIN               => off
PRINTED_HEADERS       => Date_To_From_*Subject*
PRINTER               => TO_FILE:/home/sk/test.ps
PRINT_COMMAND         => CUPS
RCFILE                =>
REM_QUOTE             => off
REM_SIG               => on
RIGHTMARGIN           => 20
SIG_REGEXP            => ^-- $
SPEED                 => 30
TOPMARGIN             => 19
VERBATIMNORMAL        =>
VERBATIMSIG           => fontshape=it
WAIT                  => 30
WRAPMARGIN            => 80
XFACE                 => off
======================================================================
Bitte dr
Comment 3 Sebastian 2005-07-28 09:51:46 UTC
Here's the debug output:

mutt
======================================================================
ADDRESSFORMAT         => %r <%a>,\n
BACKGROUND            => off
BOTTOMMARGIN          => 22
DATE                  => local
DATE_FORMAT           => %A, %d. %B %Y %H:%M:%S
DEBUG                 => 1
DUPLEX                => printer
FONT                  => Latex
FONTSIZE              => 10pt
FOOTRULE              => off
FRONTSTYLE            => fbox
HEADRULE              => off
ICONV_EXTERNAL        => off
LATEXCODE             =>
LATEXCODE1            =>
LATEXCODE2            =>
LATEXCODE3            =>
LATEXCODE4            =>
LATEXCODE5            =>
LEFTMARGIN            => 20
MAXADDR               => 10
PAPER                 => A4
PAPERSAVE             => off
PENGUIN               => off
PRINTED_HEADERS       => Date_To_From_*Subject*
PRINTER               => TO_FILE:/home/sk/test.ps
PRINT_COMMAND         => CUPS
RCFILE                =>
REM_QUOTE             => off
REM_SIG               => on
RIGHTMARGIN           => 20
SIG_REGEXP            => ^-- $
SPEED                 => 30
TOPMARGIN             => 19
VERBATIMNORMAL        =>
VERBATIMSIG           => fontshape=it
WAIT                  => 30
WRAPMARGIN            => 80
XFACE                 => off
======================================================================
Bitte drücken Sie eine Taste...
Comment 4 Fernando J. Pereda (RETIRED) gentoo-dev 2005-07-29 03:03:24 UTC
I was about to mark 0.72d stable... would you please test that one ? Which
version are you using.

Cheers,
Ferdy
Comment 5 Sebastian 2005-07-29 03:11:33 UTC
Hello!

I was using 0.72a. I now have installed 0.72d and the signature is still being kept.

Using these settings:

PRINTER="TO_FILE:/home/sk/test.ps"
PRINT_COMMAND="CUPS"
PENGUIN="off"
XFACE="off"
DUPLEX="printer"
PAPERSAVE="off"
SPEED="30"
FONT="Latex"
FRONTSTYLE="fbox"
HEADRULE="off"
FOOTRULE="off"
PAPER="A4"
REM_SIG="on"
REM_QUOTE="off"
PRINTED_HEADERS="Date_To_From_*Subject*"
DEBUG="0"
FONTSIZE="10pt"
WRAPMARGIN="80"
DATE="local"
DATE_FORMAT="%A, %d. %B %Y %H:%M:%S"
BACKGROUND="off"

Cheers

Sebastian
Comment 6 Fernando J. Pereda (RETIRED) gentoo-dev 2005-08-03 23:57:12 UTC
I'm still trying to figure out this one... have you reported this upstream ?

Cheers,
Ferdy
Comment 7 Sebastian 2005-08-04 01:12:36 UTC
Hello Fernando!

No, I haven't yet. I think I read on gentoo's website that problems should be
reported here first, not upstream first. 

But of course I can report it upstream. Do you want me to?

Btw., thanks for your nbsmtp :-) Made sending my mails really simple :)

Cheers

Sebastian
Comment 8 Fernando J. Pereda (RETIRED) gentoo-dev 2005-08-04 01:49:40 UTC
Hi Sebastian!

Ok, I got a little patch to make it working. I don't know If it may break
something or not to be honest. I'm not really good in perl but I think this
should do it. (It works for me at least).

Do you mind giving it a try ? If it works then I'll send it upstream.

(In reply to comment #6)
> Hello Fernando!
> 
> No, I haven't yet. I think I read on gentoo's website that problems should be
> reported here first, not upstream first. 
> 
> But of course I can report it upstream. Do you want me to?

Well.. I will report it upstream and see why that feature is so broken :)

> Btw., thanks for your nbsmtp :-) Made sending my mails really simple :)

It's nice to see people like your 'software' heh

Cheers,
Ferdy
Comment 9 Fernando J. Pereda (RETIRED) gentoo-dev 2005-08-04 01:50:56 UTC
Created attachment 65055 [details, diff]
muttprint-rem_sig.patch
Comment 10 Sebastian 2005-08-04 03:19:58 UTC
Hello Fernando!

I applied it to muttprint-0.72a and it works. Thank you!

Cheers

Sebastian
Comment 11 Fernando J. Pereda (RETIRED) gentoo-dev 2005-08-04 10:04:36 UTC
Fixed in 0.72d (not bumped).

Cheers,
Ferdy