debian/0000755000000000000000000000000012131221732007160 5ustar debian/docs0000644000000000000000000000014312011135155010031 0ustar README BLURB CONFIGURATION DEBUGGING doc/features doc/interface doc/userproc.example doc/userprocs debian/copyright0000644000000000000000000001411112011135155011111 0ustar This package was debianized by Mattia Monga on Fri, 20 Oct 2006 09:45:06 +0200. It was downloaded from http://www.tkrat.org Upstream author is Martin Forssen Copyright: Copyright (c) 1996-2001 Martin Forssén, Göteborg Sweden. All rights reserved. TkRat is a graphical mail user agent. The author of this software is Martin Forssen and can be reached via the following email address: maf@dtek.chalmers.se. He is hereafter refered to as the author. Redistribution and use in source and binary forms, with or without modification, for commercial or non-commercial use, is permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Notice that included in this release is software copyrighted by others (possibly under other conditions). The fact that it is present here does not alter the copyright of the original authors. See each file for details. INCLUDED SOFTWARE University of Washington's Free-Fork License University of Washington IMAP toolkit Version 2005 of IMAP toolkit Copyright 1988-2005 University of Washington This University of Washington Distribution (IMAP Toolkit code and documentation) is made available to the open source community as a public service by the University of Washington. Contact the University of Washington at imap-license@cac.washington.edu for information on placing or integrating modifications to the Distribution into proprietary systems. Unmodified distribution is governed by the terms identified below. Under this license, this Distribution may be modified and the original version and modified versions may be copied, distributed, publicly displayed and performed provided that the following conditions are met: (1) modified versions are distributed with source code and documentation and with permission for others to use any code and documentation (whether in original or modified versions) as granted under this license; (2) if modified, the source code, documentation, and user run-time elements should be clearly labeled by placing an identifier of origin (such as a name, initial, or other tag) after the version number; (3) users, modifiers, distributors, and others coming into possession or using the Distribution in original or modified form accept the entire risk as to the possession, use, and performance of the Distribution; (4) this copyright management information (software identifier and version number, copyright notice and license) shall be retained in all versions of the Distribution; (5) the University of Washington may make modifications to the Distribution that are substantially similar to modified versions of the Distribution, and may make, use, sell, copy, distribute, publicly display, and perform such modifications, including making such modifications available under this or other licenses, without obligation or restriction; (6) modifications incorporating code, libraries, and/or documentation subject to any other open source license may be made, and the resulting work may be distributed under the terms of such open source license if required by that open source license, but doing so will not affect this Distribution, other modifications made under this license or modifications made under other University of Washington licensing arrangements; (7) no permission is granted to distribute, publicly display, or publicly perform modifications to the Distribution made using proprietary materials that cannot be released in source format under conditions of this license; (8) the name of the University of Washington may not be used in advertising or publicity pertaining to Distribution of the software without specific, prior written permission; (9) pursuant to U.S. laws, Distribution may not be downloaded, acquired or otherwise exported or re-exported (i) into, or to a national or resident of any country to which the U.S. has embargoed goods; or (ii) to anyone on the U.S. Treasury Department's list of Specially Designated Nations or the U.S. Commerce Department's Table of Denial Orders. By downloading the Distribution, you represent that: 1) you are not located in or under the control of a national or resident of any such country or on any such list; and 2) you will not export or re-export the Distribution to any prohibited country, or to any prohibited person, entity, or end-user as specified by U.S. export controls. This software is made available "as is", and THE UNIVERSITY OF WASHINGTON DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT LIMITATION ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND IN NO EVENT SHALL THE UNIVERSITY OF WASHINGTON BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, TORT (INCLUDING NEGLIGENCE) OR STRICT LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. debian/changelog0000644000000000000000000003144312131221732011037 0ustar tkrat (1:2.2cvs20100105-true-dfsg-6ubuntu1) raring; urgency=low * Fix build failure with Tcl/Tk multiarch locations. -- Matthias Klose Wed, 10 Apr 2013 10:32:50 +0200 tkrat (1:2.2cvs20100105-true-dfsg-6) unstable; urgency=low * Remove doc/Makefile * Adapt to current Debian tools * Make pkgIndex.tcl by hands (Closes: #634584). * Bump to new standards (3.9.3) * New compilation flags needed for hardening -- Mattia Monga Fri, 10 Aug 2012 06:39:24 +0200 tkrat (1:2.2cvs20100105-true-dfsg-5) unstable; urgency=low * Build always as a Debian Linux system (also on kfreebsd systems) -- Mattia Monga Tue, 01 Jun 2010 07:55:23 +0200 tkrat (1:2.2cvs20100105-true-dfsg-4) unstable; urgency=low * Autoconf is needed during build -- Mattia Monga Mon, 31 May 2010 20:35:04 +0200 tkrat (1:2.2cvs20100105-true-dfsg-3) unstable; urgency=low * Build configure from configure.in * Compile with PAM support (and add build-dependency) * Edit configure.in to recognize canonical names in FreeBSD and Hurd systems (Closes: #583830). -- Mattia Monga Mon, 31 May 2010 16:41:11 +0200 tkrat (1:2.2cvs20100105-true-dfsg-2) unstable; urgency=low * Correct watch file * Delete unused patches -- Mattia Monga Mon, 24 May 2010 15:10:13 +0200 tkrat (1:2.2cvs20100105-true-dfsg-1) unstable; urgency=low * Bug re-fix: "Upstream source package contains non-free IETF RFC" (Closes: #582392). -- Mattia Monga Fri, 21 May 2010 22:58:36 +0200 tkrat (1:2.2cvs20100105-dfsg-2) unstable; urgency=low * Lintian cleaning * Switch to dpkg-source 3.0 (quilt) format * New Git repository -- Mattia Monga Fri, 21 May 2010 11:02:31 +0200 tkrat (1:2.2cvs20100105-dfsg-1) unstable; urgency=low * New upstream release * Long due acknowledge of NMU (thank you Barry!) -- Mattia Monga Sat, 10 Apr 2010 17:57:19 +0200 tkrat (1:2.2cvs20061117-dfsg-1.1) unstable; urgency=low * Non-maintainer upload. * 04_gnu_build.dpatch. Build on kFreeBSD and Hurd. (Closes: #416461). + Thanks to Cyril Brulebois for the patch!. * Fix watch file. (Closes: #449959). * Add ${misc:Depends} for debhelper package. * Bump Standards Version to 3.8.2. + Menu policy transition. -- Barry deFreese Mon, 22 Jun 2009 10:59:28 -0400 tkrat (1:2.2cvs20061117-dfsg-1) unstable; urgency=low * Bug fix: "Source package contains non-free IETF RFC", thanks to Simon Josefsson (Closes: #398720). -- Mattia Monga Sat, 18 Nov 2006 09:28:29 +0100 tkrat (1:2.2cvs20061117-1) unstable; urgency=low * (NOT RELEASED YET) New upstream release * Upstream bug fix: "tkrat: startup error - unknown environment variable USER", thanks to Jari Aalto (Closes: #365424). -- Mattia Monga Sat, 18 Nov 2006 09:16:44 +0100 tkrat (1:2.2cvs20061020-2) unstable; urgency=low * Added autoconf to Build-Depends. Bug fix: "tkrat_1:2.2cvs20061020-1(ia64/unstable): FTBFS: Missing build-dep?", thanks to lamont@debian.org (Closes: #394848). -- Mattia Monga Mon, 23 Oct 2006 15:42:56 +0200 tkrat (1:2.2cvs20061020-1) unstable; urgency=low * New upstream release * Now uses dpatch * Bug fix: "tkrat: please suggest exim4 instead of exim", thanks to Adrian Bunk (Closes: #255364). * Bug fix: "tkrat: typo in ./configure --help output; s/eanbled/enabled/", thanks to Brian Sammon (Closes: #344982, #344981, #259324, #386258). * Bug fix: "tkrat: please mention "mail user agent" in 1st line of Description", thanks to Jari Aalto (Closes: #365423). -- Mattia Monga Sat, 21 Oct 2006 08:53:38 +0200 tkrat (1:2.1.4-2) unstable; urgency=low * Bumped to Standards 3.6.1.0 (changelog UTF-8) * The new version should close random segfaults (closes: #231528) -- Mattia Monga Wed, 10 Mar 2004 17:55:11 +0100 tkrat (1:2.1.4-1) unstable; urgency=low * New upstream version -- Mattia Monga Wed, 28 Jan 2004 17:08:44 +0100 tkrat (1:2.1.2-2) unstable; urgency=low * Add autoconf to Build-Depends (closes #213786) -- Mattia Monga Thu, 2 Oct 2003 20:02:37 +0200 tkrat (1:2.1.2-1) unstable; urgency=low * New upstream version * control (Standards-Version): 3.6.1 * Revert to upstream modified c-client lib. The Debian one doesn't work with tcl/tk 8.4. Modifications needed to be coherent with Debian were copied from uw-imap-2002ddebian1 package and isolated in 01_adapt_upstream_c_client -- Mattia Monga Tue, 30 Sep 2003 08:12:58 +0200 tkrat (1:2.1.1-5) unstable; urgency=low * Re-compiled with libc-client2002ddebian because libc-client2003debian does not exist anymore (closes: #205559, #203585) * Updated standards to 3.6.0 (no changes needed) -- Mattia Monga Sun, 17 Aug 2003 01:04:10 +0200 tkrat (1:2.1.1-4) unstable; urgency=low * Menu entry forgotten: re-add in section Apps/Net * Updated standards to 3.5.9 * Priority is extra now, to be policy compliant on all architectures -- Mattia Monga Sat, 12 Apr 2003 10:38:03 +0200 tkrat (1:2.1.1-3) unstable; urgency=low * tk8.4 is not working on my machine: thus tkrat depends from tk8.3 * tkrat now uses /usr/bin/wish (closes: #187311) -- Mattia Monga Thu, 3 Apr 2003 11:32:21 +0200 tkrat (1:2.1.1-2) unstable; urgency=low * Dropped libc6-dev build dependency. Explicit dependency is problematic on ia64, implicit by build-essential is enough (closes: #186945) -- Mattia Monga Mon, 31 Mar 2003 13:40:12 +0200 tkrat (1:2.1.1-1) unstable; urgency=low * New upstream revision (ssl, roles, fancy management of multiple servers, online/offline mode) * Package uses DBS now * Compile with the new libc-client2003debian * Closes: #94705, #182716 -- Mattia Monga Sat, 15 Mar 2003 19:08:33 +0100 tkrat (1:2.0.3-3) unstable; urgency=low * Back in the Debian bug arena. Closes: #134087, #131330, #131310, #121797 * Reverting to dynamic version of libc-client2001 -- Mattia Monga Mon, 18 Feb 2002 16:15:37 +0100 tkrat (1:2.0.3-2.1) unstable; urgency=low * NMU * Need to use -lc-client, not /usr/lib/c-client.a. Closes: #127247 -- LaMont Jones Tue, 29 Jan 2002 11:52:38 -0700 tkrat (1:2.0.3-2) unstable; urgency=low * Use static libc-client2001 because dynamic version is buggy -- Mattia Monga Fri, 30 Nov 2001 14:41:39 +0100 tkrat (1:2.0.3-1) unstable; urgency=low * New upstream source * Support for ssl (closes: #112845) -- Mattia Monga Mon, 24 Sep 2001 16:43:17 +0200 tkrat (1:2.0.2-4) unstable; urgency=low * Use dynamic version of libc-client (closes: #110500) * Libc-client closes: Bug#96329,Bug#96330 -- Mattia Monga Wed, 29 Aug 2001 11:51:03 +0200 tkrat (1:2.0.2-3) unstable; urgency=low * Use libc-client2001 -- Mattia Monga Tue, 28 Aug 2001 13:03:17 +0200 tkrat (1:2.0.2-2) unstable; urgency=low * Using the c-client library provided with Debian -- Mattia Monga Wed, 11 Jul 2001 17:44:49 +0200 tkrat (1:2.0.2-1) unstable; urgency=low * New upstream release -- Mattia Monga Wed, 11 Jul 2001 17:00:29 +0200 tkrat (1:2.0.1-4.1) unstable; urgency=low * Debian files merged with Taral ones * Now the patch for color flags can be disabled during building phase * Added examples and documentation from docs directory -- Mattia Monga Sat, 28 Apr 2001 12:44:25 +0200 tkrat (1:2.0.1-4) unstable; urgency=low * New maintainer (closes: #94916) * Applied a patch of mine to show message flags as colors -- Mattia Monga Wed, 25 Apr 2001 15:31:32 +0200 tkrat (1:2.0.1-3) unstable; urgency=low * Disable use of tkConfig.sh to avoid segfault -- JP Sugarbroad Sun, 25 Mar 2001 19:17:47 -0600 tkrat (1:2.0.1-2) unstable; urgency=low * Added menu hint (closes: #80040) * Move the substvars stuff to a dpkg-gencontrol option * Move files out of /usr/X11R6 to comply with FHS * Move man pages to /usr/share/man to comply with FHS * Remove dh_testversion (deprecated) -- JP Sugarbroad Tue, 20 Mar 2001 21:27:27 -0600 tkrat (1:2.0.1-1) unstable; urgency=low * Package adopted (closes: #82445) * New upstream version. (closes: #51900, #55753, #59914, #63688, #46801, #77943, #80040) * Minor manpage fixes (closes: #46321) -- JP Sugarbroad Thu, 22 Feb 2001 11:39:19 -0600 tkrat (1:2.0-3) unstable; urgency=low * Applied interim patches (upstream): - quote '&' before launching browser - never send bare LF - quick workaround for GB2312, etc. charsets -- JP Sugarbroad Sun, 4 Feb 2001 03:37:57 -0600 tkrat (1:2.0-2) unstable; urgency=low * Fix man pages for policy compliance -- JP Sugarbroad Sun, 28 Jan 2001 03:16:30 -0600 tkrat (1:2.0-1) unstable; urgency=low * New upstream version, package recreated -- JP Sugarbroad Fri, 26 Jan 2001 12:26:44 -0600 tkrat (1:1.2-2) unstable; urgency=low * imap-4.1/src/osdep/unix/unix.c: use setgid mail priveliges when trying to remove lock files (#27822,#30271,#32393,#32952) -- Mark Baker Thu, 8 Jul 1999 20:43:06 +0100 tkrat (1:1.2-1) unstable; urgency=low * New upstream version, mostly bugfixes (including #30316,#17649,#25561) -- Mark Baker Wed, 7 Jul 1999 00:23:10 +0100 tkrat (1:1.1.980117-5) unstable; urgency=low * Installed setgid mail---correctly (#17474) * Fiddle around with get{,e}gid() and setgid() so the above isn't a security hole. -- Mark Baker Sat, 7 Mar 1998 17:13:13 +0000 tkrat (1:1.1.980117-4) unstable; urgency=low * Written manpage for tkrat -- Mark Baker Tue, 27 Jan 1998 18:45:11 +0000 tkrat (1:1.1.980117-3) unstable; urgency=low * Updated to standards-version 2.4.0.0 (no changes) -- Mark Baker Tue, 27 Jan 1998 18:45:11 +0000 tkrat (1:1.1.980117-2) unstable; urgency=low * Redone postinst and postrm scripts -- Mark Baker Tue, 27 Jan 1998 18:45:11 +0000 tkrat (1:1.1.980117-1) unstable; urgency=low * Upstream patches applied (#17494) * Installed setgid mail (#17474) -- Mark Baker Mon, 26 Jan 1998 20:57:52 +0000 tkrat (1:1.1-1) unstable; urgency=low * New upstream version * Nasty version number change from 1.1a to 1.1 means I have to use epochs -- Mark Baker Wed, 14 Jan 1998 21:15:51 +0000 tkrat (1.1a-1) unstable; urgency=low * New upstream version * New copyright, now free software! (#14874) -- Mark Baker Wed, 7 Jan 1998 22:20:26 +0000 tkrat (1.0.5-1) unstable; urgency=low * New upstream version -- Mark Baker Tue, 21 Oct 1997 22:18:04 +0100 tkrat (1.0.4-1) unstable; urgency=low * New upstream version * Pristine source -- Mark Baker Mon, 15 Sep 1997 22:01:00 +0100 tkrat (1.0.3-5) unstable; urgency=low * Compile with xlib6g * Use tcl 8.0 and tk 8.0. I don't think this will cause any problems, as I think the upstream author uses them. -- Mark Baker Wed, 10 Sep 1997 12:22:16 +0100 tkrat (1.0.3-4) unstable; urgency=low * Use correct name for menu file; /usr/lib/menu/menu is not what I really wanted to do. -- Mark Baker Mon, 25 Aug 1997 19:14:13 +0100 tkrat (1.0.3-3) unstable; urgency=low * Applied patch from author to fix bug #11292 -- Mark Baker Mon, 11 Aug 1997 23:13:39 +0100 tkrat (1.0.3-2) unstable; urgency=low * Put binary in /usr/X11R6/bin instead of /usr/X11/bin (fixes #11220) -- Mark Baker Sun, 13 Jul 1997 22:29:45 +0100 tkrat (1.0.3-1) unstable; urgency=low * New upstream release (fixes several bugs) -- Mark Baker Tue, 1 Jul 1997 21:11:03 +0100 tkrat (1.0.2-2) unstable; urgency=low * Bugfix patch from upstream applied -- Mark Baker Fri, 27 Jun 1997 08:29:24 +0100 tkrat (1.0.2-1) unstable; urgency=low * New upstream release (fixes several bugs, no new functionality) -- Mark Baker Tue, 24 Jun 1997 22:35:08 +0100 tkrat (1.0.1-2) unstable; urgency=low * Added Provides: imap-client, mail-reader -- Mark Baker Thu, 19 Jun 1997 00:07:49 +0100 tkrat (1.0.1-1) unstable; urgency=low * New upstream version -- Mark Baker Mon, 9 Jun 1997 21:40:14 +0100 tkrat (1.0-1) unstable; urgency=low * First debian release -- Mark Baker Sat, 3 May 1997 15:17:00 +0100 debian/compat0000644000000000000000000000000212011135155010356 0ustar 9 debian/menu0000644000000000000000000000020712011135155010046 0ustar ?package(tkrat):needs="X11" section="Applications/Network/Communication"\ title="TkRat (mail)" hints="Mail" command="/usr/bin/tkrat" debian/patches/0000755000000000000000000000000012011135155010607 5ustar debian/patches/debianize_configure.patch0000644000000000000000000000131712011135155015625 0ustar Author: Mattia Monga --- a/configure.in +++ b/configure.in @@ -419,7 +419,7 @@ SSLDIR=/usr fi EXTRA_LIBS="$EXTRA_LIBS -L$SSLDIR/lib -lssl -lcrypto" - IMAPFLAGS="SSLTYPE=unix SSLDIR=$SSLDIR" + IMAPFLAGS="SSLTYPE=nopwd SSLDIR=$SSLDIR" AC_SUBST(SSLDIR) else @@ -699,7 +699,7 @@ SHLIB_SUFFIX=".so" OSTYPE=sg6 ;; - Linux*) + Linux*|GNU*) SHLIB_CFLAGS="-fPIC" SHLIB_LD_LIBS="" SHLIB_SUFFIX=".so" @@ -710,7 +710,7 @@ fi AC_CHECK_LIB(pam, pam_start, have_pam=yes, have_pam=no, -lpam_misc) if test "$have_pam" = yes ; then - OSTYPE=lnp + OSTYPE=ldb EXTRA_LIBS="$EXTRA_LIBS -L$SSLDIR/lib -lpam -lpam_misc" else if test "$have_libcrypt" = yes ; then debian/patches/generate_pkgindex.patch0000644000000000000000000000564312011135155015323 0ustar --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -1,6 +1,6 @@ ############################################################################# # TkRat software and its included text is Copyright 1996-2004 by # -# Martin Forssén. # +# Martin Forssén. # # # # The full text of the legal notice is contained in the file called # # COPYRIGHT, included with this distribution. # @@ -99,24 +99,16 @@ ${SHLIB_LD} -o ${DUMMYLIB} ratDummy.o $(EXTRA_LIBS) ${SHLIB_LD_LIBS} pkgIndex.tcl: ${RATLIB} ${RATOLDLIB} ${DUMMYLIB} - echo "if [catch {load ./${DUMMYLIB}; \ - load ./${RATLIB}; \ - load ./${RATOLDLIB}; \ - pkg_mkIndex . ${RATLIB} ${RATOLDLIB}} error] \ - {puts \$$error; exit 1}" | ${TCLSH} + echo "package ifneeded ratatosk ${VERSION} [list load [file join \$$dir ${RATLIB}]]" >$@ + echo "package ifneeded ratatosk_old ${VERSION} [list load [file join \$$dir ${RATOLDLIB}]]" >>$@ -install.bin: ${RATLIB} ${RATOLDLIB} ${DUMMYLIB} +install.bin: all if test ! -d ${INSTALL_PREFIX}${LIB_DIR} ; then\ ${INSTALL} -m 0755 -d ${INSTALL_PREFIX}${LIB_DIR} ;\ fi ${INSTALL} -m 0755 ${RATLIB} ${INSTALL_PREFIX}${LIB_DIR}/${RATLIB} ${INSTALL} -m 0755 ${RATOLDLIB} ${INSTALL_PREFIX}${LIB_DIR}/${RATOLDLIB} - INST=${INSTALL_PREFIX}${LIB_DIR}; \ - echo "if [catch {load ./${DUMMYLIB}; \ - cd $$INST; \ - pkg_mkIndex -load ./*${SHLIB_SUFFIX} . \ - *${SHLIB_SUFFIX}} error] \ - {puts \$$error; exit 1}" | ${TCLSH} + cat pkgIndex.tcl >>${INSTALL_PREFIX}${LIB_DIR}/pkgIndex.tcl install: install.bin --- a/util/Makefile.in +++ b/util/Makefile.in @@ -92,12 +92,9 @@ ${SHLIB_LD} -o ${DUMMYLIB} rat_dummy.o $(EXTRA_LIBS) ${SHLIB_LD_LIBS} pkgIndex.tcl: ${TARGETS} ${DUMMYLIB} - echo "if [catch {load ./${DUMMYLIB}; \ - load ./${BUSYLIB}; \ - pkg_mkIndex . ${TARGETS}} error] \ - {puts \$$error; exit 1}" | ${TCLSH} + echo "package ifneeded blt_busy ${BUSYLIB_VERSION} [list load [file join \$$dir ${BUSYLIB}]]" >$@ -install.bin: ${TARGETS_LIB} ${DUMMYLIB} +install.bin: ${TARGETS_LIB} pkgIndex.tcl if test ! -d ${INSTALL_PREFIX}${LIB_DIR} ; then\ ${INSTALL} -m 0755 -d ${INSTALL_PREFIX}${LIB_DIR} ;\ fi @@ -105,14 +102,9 @@ do \ ${INSTALL} -m 0755 $$i ${INSTALL_PREFIX}${LIB_DIR} ;\ done - INST=${INSTALL_PREFIX}${LIB_DIR}; \ - echo "if [catch {load ./${DUMMYLIB}; \ - cd $$INST; \ - pkg_mkIndex -load ./*${SHLIB_SUFFIX} . \ - *${SHLIB_SUFFIX}} error] \ - {puts \$$error; exit 1}" | ${TCLSH} + cat pkgIndex.tcl >>${INSTALL_PREFIX}${LIB_DIR}/pkgIndex.tcl -install.shared: ${TARGETS_data} +install.shared: ${TARGETS_DATA} if test ! -d ${INSTALL_PREFIX}${DATA_DIR} ; then\ ${INSTALL} -m 0755 -d ${INSTALL_PREFIX}${DATA_DIR} ;\ fi debian/patches/color_flags.patch0000644000000000000000000000524512011135155014130 0ustar Author: Mattia Monga --- a/tkrat/folder.tcl +++ b/tkrat/folder.tcl @@ -282,7 +282,7 @@ set b($m,[$m index end]) undelete_group # Disable in drafts... $m add command -label $t(mark_as_unread) -command \ - "SetFlag $handler seem 0 \ + "SetFlag $handler seen 0 \ \[\$${handler}(folder_handler) flagged flagged 1\]" set b($m,[$m index end]) mark_as_unread @@ -1180,6 +1180,7 @@ lappend fh(uids) $uid incr fh(num_messages) } + ColorFlag $handler $folder_index incr folder_index } $fh(message_list) delete end-1c @@ -1206,12 +1207,52 @@ set line [expr {$index+1}] $fh(message_list) configure -state normal set tags [$fh(message_list) tag names $line.0] + + $fh(message_list) delete $line.0 "$line.0 lineend" $fh(message_list) insert $line.0 [format %-256s \ [[$fh(folder_handler) get $fi] list $option(list_format)]] $tags + ColorFlag $handler $index $fh(message_list) configure -state disabled } +# ColorFlag -- +# +# Tag (and color) message lines according to mailbox flags +# +# Arguments: +# handler - The handler which identifies the folder window +# index - Index of the entry to refresh (list index) + + +proc ColorFlag {handler index} { + upvar \#0 $handler fh + global option + + set fi $fh(mapping,$index) + set line [expr {$index+1}] + + # inverse order of priority + foreach flag {seen answered flagged deleted} { + if {1 == [$fh(folder_handler) getFlag $fi $flag]} { + $fh(message_list) tag add yes$flag $line.0 "$line.0 lineend" + $fh(message_list) tag remove no$flag $line.0 "$line.0 lineend" + } else { + $fh(message_list) tag add no$flag $line.0 "$line.0 lineend" + $fh(message_list) tag remove yes$flag $line.0 "$line.0 lineend" + } + $fh(message_list) tag raise yes$flag + $fh(message_list) tag configure yes$flag \ + -foreground $option(${flag}_color) + $fh(message_list) tag configure no$flag \ + -foreground $option(new_color) + + } +} + + + + # FolderSelect -- # # Handle the selection of a message --- a/tkrat/options.tcl +++ b/tkrat/options.tcl @@ -320,6 +320,23 @@ # The color set set option(color_set) {\#dde3eb black white black} + # Color of new messages + set option(new_color) DarkSeaGreen + + # Color of seen messages + set option(seen_color) black + + # Color of flagged messages + set option(flagged_color) red + + # Color of answered messages + set option(answered_color) blue + + # Color of deleted messages + set option(deleted_color) yellow + + + # Which icon to set {normal small none} set option(icon) normal debian/patches/change_auths_order.patch0000644000000000000000000000050212011135155015451 0ustar Author: Mattia Monga --- a/imap/src/osdep/unix/Makefile +++ b/imap/src/osdep/unix/Makefile @@ -118,7 +118,7 @@ # Standard distribution build parameters -DEFAULTAUTHENTICATORS=md5 pla log +DEFAULTAUTHENTICATORS=pla md5 log DEFAULTDRIVERS=imap nntp pop3 mh mx mbx tenex mtx mmdf unix news phile debian/patches/manual_hardening.patch0000644000000000000000000000250412011135155015125 0ustar --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -17,7 +17,7 @@ # To change the compiler switches, for example to change from -O # to -g, change the following line: -EXTRA_CFLAGS = @CFLAGS@ @MEM_DEBUG_FLAGS@ +EXTRA_CFLAGS = @CFLAGS@ @MEM_DEBUG_FLAGS@ @CPPFLAGS@ # Installation directories datarootdir = @datarootdir@ @@ -49,7 +49,7 @@ TK_DEFS = @TK_DEFS@ TOP_DIR = @srcdir@/.. SHLIB_CFLAGS = @SHLIB_CFLAGS@ - SHLIB_LD = @SHLIB_LD@ + SHLIB_LD = @SHLIB_LD@ @LDFLAGS@ SHLIB_LD_LIBS = @SHLIB_LD_LIBS@ SHLIB_SUFFIX = @SHLIB_SUFFIX@ SHLIB_LD_LIBS = @SHLIB_LD_LIBS@ --- a/util/Makefile.in +++ b/util/Makefile.in @@ -16,7 +16,7 @@ # To change the compiler switches, for example to change from -O # to -g, change the following line: -EXTRA_CFLAGS = @CFLAGS@ @MEM_DEBUG_FLAGS@ +EXTRA_CFLAGS = @CFLAGS@ @MEM_DEBUG_FLAGS@ @CPPFLAGS@ # Default top-level directories in which to install architecture- # specific files (exec_prefix) and machine-independent files such @@ -45,7 +45,7 @@ INCLUDES = @TCL_INCLUDE@ @XINCLUDES@ TOP_DIR = @srcdir@/.. SHLIB_CFLAGS = @SHLIB_CFLAGS@ - SHLIB_LD = @SHLIB_LD@ + SHLIB_LD = @SHLIB_LD@ @LDFLAGS@ SHLIB_LD_LIBS = @SHLIB_LD_LIBS@ SHLIB_SUFFIX = @SHLIB_SUFFIX@ SHLIB_LD_LIBS = @SHLIB_LD_LIBS@ debian/patches/series0000644000000000000000000000016412011135155012025 0ustar manual_hardening.patch generate_pkgindex.patch debianize_configure.patch change_auths_order.patch color_flags.patch debian/README.Debian0000644000000000000000000000064312011135155011224 0ustar tkrat for Debian ---------------- The program was modified to show message flags as colors. If you do not want this feature, please download the source package (you can use "apt-get source tkrat" ) and feel free to delete the debian/patches/03_color_flags.dpatch. Rebuild the package with something like "fakeroot dpkg-buildpackage". Enjoy! -- Mattia Monga , Fri, 20 Oct 2006 13:13:49 +0200 debian/control0000644000000000000000000000203012011135155010556 0ustar Source: tkrat Section: mail Priority: optional Maintainer: Mattia Monga Build-Depends: cdbs, quilt, debhelper (>= 9.0.0), dpkg-dev (>= 1.16.1~), autoconf, autotools-dev, libssl-dev, libpam-dev, tk8.5-dev Build-Conflicts: autoconf2.13 Standards-Version: 3.9.3 Vcs-Git: git://git.debian.org/git/collab-maint/tkrat.git Vcs-browser: http://git.debian.org/?p=collab-maint/tkrat.git Homepage: http://www.tkrat.org/ Package: tkrat Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, tk8.5 Provides: imap-client, mail-reader Suggests: exim4 | mail-transport-agent Description: Mail user agent with POP, IMAP, mh support using Tk TkRat is a graphical Mail User Agent (MUA) which handles MIME. It is mainly written in C but the user interface is done in tcl/tk. . The program currently understands unix mailboxes, POP, IMAP and mh folders. It can manage a database of messages associated to events triggered by elapsing time intervals. Messages are sent via SMTP or any user configured program (for example sendmail). debian/dirs0000644000000000000000000000007712011135155010050 0ustar usr/bin usr/lib/tkrat2.2 usr/share/tkrat2.2 usr/share/man/man1 debian/rules0000755000000000000000000000137712131221654010253 0ustar #!/usr/bin/make -f # Sample debian/rules that uses cdbs. Originaly written by Robert Millan. # This file is public domain. include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/autotools.mk include /usr/share/cdbs/1/rules/patchsys-quilt.mk # Add here any variable or target overrides you need export DEB_BUILD_MAINT_OPTIONS = hardening=-all,+format,+fortify,+relro include /usr/share/dpkg/buildflags.mk DEB_AUTO_UPDATE_AUTOCONF = 2.69 DEB_INSTALL_CHANGELOGS_ALL = $(CURDIR)/doc/changes DEB_MAKE_INSTALL_TARGET = install prefix=$(CURDIR)/debian/tkrat/usr DEB_CONFIGURE_LIBEXECDIR = ${DEB_CONFIGURE_PREFIX}/lib/tkrat2.2 DEB_CONFIGURE_EXTRA_FLAGS := --with-tkconfig=/usr/lib/$(DEB_HOST_MULTIARCH)/tk8.5 clean:: rm -f configure doc/Makefile debian/source/0000755000000000000000000000000012011135155010460 5ustar debian/source/format0000644000000000000000000000001412011135155011666 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000064512011135155010216 0ustar # Example watch control file for uscan # Rename this file to "watch" and then you can run the "uscan" command # to check for upstream updates and more. # See uscan(1) for format # Compulsory line, this is a version 3 file version=3 # Uncomment to examine a Webpage # opts=\ dversionmangle=s/^\d\.\dcvs//;s/-true-dfsg$// \ http://www.tkrat.org/downloads/current/tkrat-([\d.]+)\.tar\.gz