debian/0000755000000000000000000000000011716376661007204 5ustar debian/compat0000644000000000000000000000000211265721006010364 0ustar 5 debian/changelog0000644000000000000000000002724311716376661011066 0ustar up-imapproxy (1.2.7-1.1) unstable; urgency=low * Non-maintainer upload. * Fix pending l10n issues. Debconf translations: - Danish (Joe Hansen). Closes: #628222 - Dutch; (Jeroen Schot). Closes: #656624 - Polish (Michał Kułach). Closes: #658741 -- Christian Perrier Tue, 14 Feb 2012 07:22:23 +0100 up-imapproxy (1.2.7-1) unstable; urgency=low * New upstream version (identical to previous) * Packaging - update to S-V 3.8.4 with no changes - fix last lintian warnings -- Jose Luis Tallon Sun, 21 Feb 2010 14:01:09 +0100 up-imapproxy (1.2.7~rc3-2) unstable; urgency=low * Fix pending l10n issues. Integrate patch from Christian Perrier Debconf translations (Closes: #536742) - Spanish (Francisco Javier Cuadrado). Closes: #536742 - Russian (Yuri Kozlov). Closes: #543195 - Italian (Vincenzo Campanella). Closes: #569130 - Slovak (Ivan Masar). Closes: #570285 -- Jose Luis Tallon Sat, 20 Feb 2010 15:04:17 +0100 up-imapproxy (1.2.7~rc3-1) unstable; urgency=high * New upstream version * Upgraded packaging - Converted to "source format 3.0 (quilt)" - Upgrade to S-V 3.8.3 with no changes * Wait for IMAP server to become available on startup (Closes: #517331) - Based on a suggestion by Roman Medina-Heigl -- Jose Luis Tallon Fri, 16 Oct 2009 00:41:32 +0200 up-imapproxy (1.2.6-5) unstable; urgency=high * Don't overwrite the config file on upgrades. (Closes: #510432) - Urgency=high since we are fixing an RC after the freeze - Included patch from Niko Tyni. Many thanks!! - Now depends on ucf (>= 0.28) -- Jose Luis Tallon Fri, 6 Feb 2009 21:27:19 +0100 up-imapproxy (1.2.6-4) unstable; urgency=medium * 'postinst' script: configuration file processing - Fix typo which would truncate existing config file (Closes: #487761) * Packaging enhancement: remove all files created during installation (postinst), but leave alone any user-created files unless purging -- Jose Luis Tallon Wed, 25 Jun 2008 02:18:37 +0200 up-imapproxy (1.2.6-3) unstable; urgency=low * postinst script: configuration file processing - PERL 5.10 introduces an incompatibility affecting cfg file creation - Updated the relevant script to work properly under this version -- Jose Luis Tallon Sun, 22 Jun 2008 23:03:20 +0200 up-imapproxy (1.2.6-2) unstable; urgency=low * Packaging - Updated to Standards-Version 3.8.0 with no changes: Homepage control field was already there we unfortunately do not support "parallel=" builds. - Minor fix to debian/rules to clean stale 'stamp-h' file * Configuration - Changed local listen port when configured to bind to localhost (default) -- fixes new behaviour in 1.2.5 (Closes: #470431) - By default, copy etc/localtime to chroot directory (Closes: #436555) * Licensing et al. - Updated debian/copyright wrt OpenSSL exception (Closes: #400454) Upstream has been requested to document it themselves. * Localization - Included russian translation (ru.po) (Closes: #452298) - Re-included portuguese translation, which got misplaced sometime after 1.2.4-5 (Closes: #452298) - Galician (Closes: #485488) - Vietnamese (Closes: #485743) - Basque [euskera] (Closes: #486161) - Turkish (Closes: #486533) -- Jose Luis Tallon Tue, 17 Jun 2008 00:59:55 +0200 up-imapproxy (1.2.6-1) unstable; urgency=low * New upstream version - Upstream included all debian-specific patches * Build process - Updated to Standards-Version 3.7.3 - Updated build dependencies - "As needed" linking -- Jose Luis Tallon Mon, 4 Feb 2008 23:49:37 +0100 up-imapproxy (1.2.4-10.2) unstable; urgency=low * Non-maintainer upload to fix RC bug. * Changed libwrap-dev Build-Dep to libwrap0-dev. (Closes: #436314) * Add dutch po-debconf translation. Thanks to Bart Cornelis. (Closes: #421838) -- Ana Beatriz Guerrero Lopez Sat, 25 Aug 2007 07:37:38 +0200 up-imapproxy (1.2.5-1) unstable; urgency=low * New upstream version - Acknowledge NMU (thanks, Jeroen) - Resync'd with upstream * Major debian-specific patches ; already sent upstream for inclusion - IPv6 support (Closes: #370022) - Proper pidfile handling (Closes: #416156) * Fixed improper dependency on non-essential debconf in {pre,post}inst * Fixed build dependency on libwrap-dev (libwrap0-dev does not provide it anymore) * localization - NL (Closes: #421838) -- Jose Luis Tallon Mon, 19 Mar 2007 19:42:46 +0100 up-imapproxy (1.2.4-10.1) unstable; urgency=high * NMU to fix RC bug [ Jose Luis Tallon ] * Re-starting imapproxy failed when it was already running. - Fixed imapproxy to write a pidfile itself Start-stop-daemon can now interact with it properly (Closes: #415954) [ Jeroen van Wolffelaar ] * Document -p in manpage * Patch cleanup * Add code to initscript to not attempt to start a second version if already running, and to not fail if imapproxy is no longer running (also #415954) -- Jeroen van Wolffelaar Wed, 28 Mar 2007 04:04:55 +0200 up-imapproxy (1.2.4-10) unstable; urgency=high * Bashism in initscript made upgrade sequence fail when sh was not bash One-liner fix, and hopefully ready to go (Closes: #415455) -- Jose Luis Tallon Mon, 19 Mar 2007 19:42:46 +0100 up-imapproxy (1.2.4-9) unstable; urgency=high * Bug #405704 ("crash on startup when IMAP server is not available"): I made a mistake when applying the supplied patch. The correct changes have been merged in this time. (Closes: #405704) -- Jose Luis Tallon Thu, 15 Mar 2007 2:04:05 +0100 up-imapproxy (1.2.4-8) unstable; urgency=high * Fixed crash on startup when IMAP server is not available (Closes: #405704) * Security: backported possible DoS fix from 1.2.5rc2 (Closes: #409861) * Enhance security: enable chroot by default (Closes: #352999) (Patch provided by Kees Cook ) * Build process: fixed using files from current autotools-dev * Made initscript a bit more intelligent, so that it won't fail so easily when imapproxyd is slower to start than expected (Closes: #369020) * Localization - Updated DE translation (Closes: #412221) -- Jose Luis Tallon Sat, 10 Mar 2007 21:59:37 +0100 up-imapproxy (1.2.4-7) unstable; urgency=medium * Control file: debconf is now a regular dependency. Andreas Metzler's suggestion was indeed correct. Fixed letting dh_installdebconf do its magic (Closes: #400470) * Postrm: remove manual invocation of db_purge (which caused a bug) DebHelper will take care of it properly. -- Jose Luis Tallon Thu, 7 Dec 2006 23:26:03 +0100 up-imapproxy (1.2.4-6) unstable; urgency=high * Acknowledge NMUs * Enhance daemon()ization process a bit (Closes: #387992) * Building - Re-enable -Wall (Closes: #400468) * Localization: - ja translation added (Closes: #393212) * Init.d infrastructure - Fixed startup logic (Closes: #369020) - Fixed stop logic (Closes: #389695) - Fixed bashism in initscript (==) (Closes: #399362) - ensured lsb-functions are sourced; Depend on lsb-base(Closes: #400459) * Control file: debconf pre-depend *is* necessary (Closes: #400470) -- Jose Luis Tallon Sun, 26 Nov 2006 19:56:07 +0100 up-imapproxy (1.2.4-5.2) unstable; urgency=high * Non-maintainer upload. * Fix bashism in init script [ "$START" == "no" ...] (Closes: #399362) * Add dependency on lsb-base (Closes: #400459) -- Andreas Metzler Sun, 26 Nov 2006 10:47:33 +0000 up-imapproxy (1.2.4-5.1) unstable; urgency=high * Non-maintainer upload. * Remove the odd grep hack; it broke upgrades, as we don't get any warnings on stop anymore, and the non-zero return status of grep killed the init script. (Closes: #389695) -- Steinar H. Gunderson Sat, 18 Nov 2006 15:51:36 +0100 up-imapproxy (1.2.4-5) unstable; urgency=high * Code enhancements - Change priority of 'peer verify' messages to LOG_INFO (Closes: #339752) - Fixed typo in src/main.c (Closes: #388500) * IPv6 support added (Closes: #370022) * Localization: - pt translation added (Closes: #381663) * Init.d infrastructure - Added /etc/default/imapproxy support (Closes: #375665) - Reduce initscript's verbosity again (Closes: #333847) -- Jose Luis Tallon Wed, 20 Sep 2006 23:10:36 +0200 up-imapproxy (1.2.4-4) unstable; urgency=low * Enhanced initscript -- pidfile support (Closes: #353016) * Updated to standards version 3.7.2 with no changes * Package sponsored by Roberto Lumbreras -- Jose Luis Tallon Sun, 26 Feb 2006 16:34:08 +0100 up-imapproxy (1.2.4-3) unstable; urgency=low * Update dependency on debconf, add alternative (Closes: #332133) * Enhanced initscript to avoid spurious error messages (Closes: #333847) * Fixed nonexistant file during installation/configuration -- avoid compressing it (Closes: #333176) * Package sponsored by Roberto Lumbreras -- Jose Luis Tallon Wed, 5 Oct 2005 13:56:11 +0200 up-imapproxy (1.2.4-2) unstable; urgency=high * Fixed format string vulnerability in connection parser (CAN-2005-2661). * [INTL:sv] added Swedish translation[tack!] (Closes: #331352) * Package sponsored by Roberto Lumbreras -- Jose Luis Tallon Wed, 5 Oct 2005 13:56:11 +0200 up-imapproxy (1.2.4-1) unstable; urgency=low * New upstream version - Includes fix for DNS lookups at startup (Closes: #315291) * Doc & Int'l fixes: - Corrected imapproxyd(8) (Closes: #326979) - Added vietnamese translation (Closes: #324064) * Package sponsored by Roberto Lumbreras -- Jose Luis Tallon Thu, 22 Sep 2005 23:45:27 +0200 up-imapproxy (1.2.3-1) unstable; urgency=low * New upstream version * Corrected init script (Closes: #265622) * Added Czech translation (Closes: #287542) * Package sponsored by Roberto Lumbreras -- Jose Luis Tallon Sun, 13 Mar 2005 01:43:16 +0100 up-imapproxy (1.2.2+1.2.3rc2-1) unstable; urgency=high * New upstream version. Several improvements. Includes a fix for the DoS described in BugTraq's BID 11360 [CAN-2004-1035] (Closes: #281023) * Package sponsored by Roberto Lumbreras -- Jose Luis Tallon Sat, 13 Nov 2004 12:21:27 +0100 up-imapproxy (1.2.1-2) unstable; urgency=low * Fix restart logic (broken because of a typo). (Closes: #242340) * New FR debconf translation, thanks to Christian Perrier (Closes: #243638) * New JA debconf translation, thanks to Hideki Yamane (Closes: #259164) * Package sponsored by Roberto Lumbreras -- Jose Luis Tallon Thu, 15 Jul 2004 12:47:36 +0200 up-imapproxy (1.2.1-1) unstable; urgency=low * Initial Packaging. Fullfill RFP/ITP (Closes: #194503) * License clarification from Upstream, Dave McMurtrie, explicitly allowing linking against OpenSSL's libraries. * Package sponsored by Roberto Lumbreras -- Jose Luis Tallon Fri, 19 Mar 2004 12:24:05 +0100 debian/imapproxy.docs0000644000000000000000000000011511265721006012065 0ustar README README.debian README.known_issues README.ssl debian/additions/FAQ.txt debian/imapproxy.prerm0000644000000000000000000000177411265721006012276 0ustar #! /bin/sh # prerm script for imapproxy # set -e # summary of how this script can be called: # * `remove' # * `upgrade' # * `failed-upgrade' # * `remove' `in-favour' # * `deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in remove|upgrade|deconfigure) # remove chroot cruft... but only if we created it ourselves rm -f /var/lib/imapproxy/chroot/etc/localtime rmdir /var/lib/imapproxy/chroot/etc || true ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/source.lintian-overrides0000644000000000000000000000010311265721006014040 0ustar up-imapproxy source: debian-rules-ignores-make-clean-error line 52 debian/.pc/0000755000000000000000000000000011265723133007651 5ustar debian/.pc/.version0000644000000000000000000000000211265722642011333 0ustar 2 debian/watch0000644000000000000000000000017011265721006010215 0ustar version=2 http://www.imapproxy.org downloads/up-imapproxy-?_?([\w+\d+\.]+|\d+)(\.tar|\.tgz)(\.gz|\.bz2|) debian uupdate debian/prepare-config-file0000644000000000000000000000045411265721006012732 0ustar #!/usr/bin/perl -w use strict; my %params = ( proc_username => "nobody", proc_groupname => "nogroup", chroot_directory => "/var/lib/imapproxy/chroot" ); while (<>) { my ($key) = m/^#?(\w+)/; if ( defined $key and exists $params{$key} ) { print "$key $params{$key}\n"; } else { print $_; } } debian/manpages/0000755000000000000000000000000011265721006010761 5ustar debian/manpages/Makefile0000644000000000000000000000005111265721006012415 0ustar # .PHONY: dummy clean: dummy rm -f *~ debian/manpages/pimpstat.80000644000000000000000000000150411265721006012713 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH PIMPSTATS 8 "Mar 12, 2004" "Dave McMurtrie" "IMAP proxy daemon" .\" Please adjust this date whenever revising the manpage. .\" .SH NAME pimpstat \- UP-ImapProxy statistics .SH SYNOPSIS .B pimpstat .RI [options] .br .SH DESCRIPTION This manual page documents briefly the .B pimpstat command. This manual page was written for the Debian distribution because the original program does not have a manual page. .SH SEE ALSO .BR imapproxyd (8), .br .SH AUTHOR This manual page was written by Jose Luis Tallon .nh , for the Debian GNU/Linux system (but may be used by others). debian/manpages/imapproxyd.80000644000000000000000000000370011265721006013246 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH IMAPPROXYD 8 "Mar 12, 2004" "Dave McMurtrie" "IMAP proxy daemon" .\" Please adjust this date whenever revising the manpage. .\" .SH NAME .B imapproxyd \- IMAP proxy daemon .SH SYNOPSIS .B imapproxyd .RI [ .B -f .RI ] .RI [ .B -p .RI ] .br .SH DESCRIPTION This manual page documents briefly the .B imapproxyd command. This manual page was written for the Debian distribution because the original program does not have a manual page. .PP UP-ImapProxy proxies IMAP transactions between an IMAP client and an IMAP server. The general idea is that the client should never know that it is not talking to the real IMAP server, but ImapProxy caches server connections. .PP ImapProxy was written to compensate for webmail clients that are unable to maintain persistent connections to an IMAP server. Most webmail clients need to log in to an IMAP server for nearly every single transaction; This behaviour can cause tragic performance problems on the IMAP server. ImapProxy tries to deal with this problem by leaving server connections open for a short time after a webmail client logs out. When the webmail client connects again, ImapProxy will determine if there is a cached connection available and reuse it if possible. .BR .SH FILES By default, UP-ImapProxy reads /etc/imapproxy.conf on startup. This can be changed by using the .I -f option .PP Unless foreground_mode has been enabled, UP-ImapProxy will write its PID to to a PID-file. It defaults to /var/run/imapproxy.pid, but can be overridden with the .I -p option .SH SEE ALSO .BR pimpstat (8), .br .SH AUTHOR This manual page was written by Jose Luis Tallon .nh , for the Debian GNU/Linux system (but may be used by others). debian/imapproxy.postrm0000644000000000000000000000206411265721006012466 0ustar #! /bin/sh # postrm script for imapproxy set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' overwrit>r> # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package CFGFILE=/etc/imapproxy.conf case "$1" in remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) #nothing ;; purge) rm -f /etc/imapproxy.conf which ucf >/dev/null 2>&1 && ucf --purge $CFGFILE which ucfr >/dev/null 2>&1 && ucfr --purge imapproxy $CFGFILE ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/control0000644000000000000000000000230711340227200010562 0ustar Source: up-imapproxy Section: mail Priority: optional Maintainer: Jose Luis Tallon Build-Depends: autotools-dev, debhelper (>= 5), quilt, po-debconf (>= 0.8.2), libwrap0-dev, libncurses-dev, libssl-dev Homepage: http://www.imapproxy.org Standards-Version: 3.8.4 Package: imapproxy Architecture: any Depends: lsb-base, ${shlibs:Depends}, ${misc:Depends}, ucf (>= 0.28) Description: IMAP protocol proxy UP-ImapProxy proxies IMAP transactions between an IMAP client and an IMAP server. The general idea is that the client should never know that it is not talking to the real IMAP server, but ImapProxy caches server connections. . ImapProxy was written to compensate for webmail clients that are unable to maintain persistent connections to an IMAP server. Most webmail clients need to log in to an IMAP server for nearly every single transaction; This behaviour can cause tragic performance problems on the IMAP server. ImapProxy tries to deal with this problem by leaving server connections open for a short time after a webmail client logs out. When the webmail client connects again, ImapProxy will determine if there is a cached connection available and reuse it if possible. debian/imapproxy.examples0000644000000000000000000000002711265721006012755 0ustar scripts/imapproxy.conf debian/imapproxy.postinst0000644000000000000000000000524611265721006013032 0ustar #! /bin/sh # postinst script for up-imapproxy # # see: dh_installdeb(1) if [ -e /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule db_version 2.0 fi set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package # # quoting from the policy: # Any necessary prompting should almost always be confined to the # post-installation script, and should be protected with a conditional # so that unnecessary prompting doesn't happen if a package's # installation fails and the `postinst' is called with `abort-upgrade', # `abort-remove' or `abort-deconfigure'. DESTFILE=/etc/imapproxy.conf SRCFILE=/usr/share/imapproxy/imapproxy.conf.default case "$1" in configure) if [ -e /usr/share/debconf/confmodule ]; then db_get imapproxy/imap-server || true server_hostname="$RET" # this should really be a debconf setting too, but it's too # late to do that for lenny, so parse it here if [ -r $DESTFILE ] then CONFIGURED_PORT=$(perl -ne '/^\s*listen_port\s*(\S+)$/ && print $1' $DESTFILE) fi if [ "$server_hostname" = "localhost" ]; then # change bind port if localhost (#470431) listen_port=${CONFIGURED_PORT:-1143} else listen_port=${CONFIGURED_PORT:-143} fi TMPFILE=`tempfile` sed "s/^server_hostname .*/server_hostname ${server_hostname}/; \ s/^listen_port .*/listen_port ${listen_port}/" \ < $SRCFILE > $TMPFILE chmod 644 $TMPFILE ucf --debconf-ok $TMPFILE $DESTFILE # prevent incorrect time zone config (#436555) if [ ! -f ${chroot_directory}/etc/localtime ]; then mkdir ${chroot_directory}/etc || true cp /etc/localtime ${chroot_directory}/etc fi # register configfile with UCF ucfr imapproxy $DESTFILE # Clean temp file rm -f $TMPFILE else # -e /usr/share/debconf/confmodule # this should never happen, really test -f $DESTFILE || cp $SRCFILE $DESTFILE; fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #db_reset imapproxy/imap-server if [ -e /usr/share/debconf/confmodule ]; then db_stop fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/imapproxy.config0000644000000000000000000000124211265721006012404 0ustar #!/bin/sh # config script for imapproxy # # by Jose Luis Tallon if [ -f /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule fi db_version 2.0 db_title "ImapProxy" set -e CONFIG=/etc/imapproxy.conf case "$1" in configure|reconfigure) # preseed debconf with configured server_hostname if configured if [ -f $CONFIG ]; then SERVER="$(perl -ne '/^\s*server_hostname\s*(\S+)$/ && print $1' $CONFIG)" [ -z "$SERVER" ] || db_set imapproxy/imap-server "$SERVER" fi db_input medium imapproxy/imap-server || true db_go ;; *) echo "config called with unknown argument \$1'" >&2 exit 0 ;; esac debian/source/0000755000000000000000000000000011265722065010474 5ustar debian/source/format0000644000000000000000000000001411341434321011670 0ustar 3.0 (quilt) debian/imapproxy.init.d0000644000000000000000000000413311340231262012320 0ustar #! /bin/sh # Initfile for imapproxy # ### BEGIN INIT INFO # Provides: imapproxy # Required-Start: $syslog $network $local_fs $remote_fs # Required-Stop: $syslog $local_fs $remote_fs # Should-Start: $named # Should-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: IMAP proxy # Description: Proxy IMAP connections to reduce the load on backend servers # ### END INIT INFO # # based upon skeleton by Miquel van Smoorenburg . # Modified for Debian GNU/Linux by Ian Murdock . # # Version: @(#)skeleton 1.8 03-Mar-1998 miquels@cistron.nl # Customized for UP-ImapProxy by Jose Luis Tallon PATH=/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/imapproxyd ARGS="-f /etc/imapproxy.conf" NAME="imapproxy" DESC="IMAP proxy" PIDFILE="/var/run/$NAME.pid" DEFAULT=/etc/default/$NAME test -f $DAEMON || exit 0 # edit /etc/default/imapproxy to change this START=yes set -e . /lib/lsb/init-functions test -r ${DEFAULT} && . ${DEFAULT} if [ "$START" = "no" -a "$1" != "stop" ]; then log_warning_msg "Not starting imapproxy - disabled in ${DEFAULT}"; exit 0; fi case "$1" in start) if [ -f $PIDFILE ] && [ -e /proc/`cat $PIDFILE`/status ]; then echo "Already started: $NAME." exit 0 fi echo -n "Starting $DESC: " start-stop-daemon --start --quiet --pidfile=$PIDFILE \ --exec $DAEMON -- $ARGS sleep 1 echo "$NAME." ;; stop) if [ ! -f $PIDFILE ]; then echo "Not running: $NAME." exit 0 fi if [ ! -e /proc/`cat $PIDFILE`/status ]; then rm -f $PIDFILE echo "Not running: $NAME." exit 0 fi echo -n "Stopping $DESC: " start-stop-daemon --oknodo --stop --quiet --pidfile=$PIDFILE \ --exec $DAEMON -- $ARGS 2>&1 | grep warning || true > /dev/null rm -f $PIDFILE echo "$NAME." ;; restart|force-reload) echo "Restarting $DESC: " $0 stop sleep 2 # not gratuituous $0 start ;; *) N=/etc/init.d/$NAME # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 echo "Usage: $N {start|stop|restart|force-reload}" >&2 exit 1 ;; esac exit 0 debian/copyright0000644000000000000000000000261311265721006011123 0ustar This package was debianized by Jose Luis Tallon on Fri, 12 Mar 2004 21:01:25 +0100. It was downloaded from http://www.imapproxy.org Copyright: Copyright (c) 2002-2004 Dave McMurtrie imapproxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. imapproxy is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. *************************************************************************** Exception granted as of 15th March 2004 so that this software can be linked against OpenSSL libraries. Dave McMurtrie (copyright holder) confirmed it in private mail to the maintainer. Next (upstream) version should include updated license block reflecting the fact that this exception was granted. *************************************************************************** On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/. Debian packaging Copyright (C) 2004-2008 Jose Luis Tallon. Released under the GPL-2 license, which can be found at /usr/share/common-licenses/ on Debian systems. debian/imapproxy.manpages0000644000000000000000000000007011265721006012730 0ustar debian/manpages/imapproxyd.8 debian/manpages/pimpstat.8 debian/templates0000644000000000000000000000027611265721006011114 0ustar Template: imapproxy/imap-server Type: string Default: localhost _Description: IMAP server to connect to: Please enter the hostname or address of the IMAP server ImapProxy will connect to. debian/Makefile0000644000000000000000000000005111265721006010622 0ustar # .PHONY: dummy tidy: dummy rm -f *~ debian/rules0000755000000000000000000000516611340230562010252 0ustar #!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) CFLAGS = -g -Wall ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif include /usr/share/quilt/quilt.make configure: patch config.status config.status: patch dh_testdir test -e config.sub -a -L config.sub || \ ln -sf /usr/share/misc/config.sub config.sub test -e config.guess -a -L config.guess || \ ln -sf /usr/share/misc/config.guess config.guess CFLAGS="$(CFLAGS)" ./configure \ --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info \ --with-openssl=/usr/include/openssl \ --with-libwrap touch $@ build: debian/po/templates.pot build-stamp build-stamp: config.status dh_testdir $(MAKE) touch $@ distclean: $(RM) config.cache config.sub config.guess config.log clean: unpatch dh_testdir dh_testroot $(RM) config.status build-stamp [ -f Makefile ] && $(MAKE) distclean || true $(RM) config.cache config.sub config.guess config.log dh_clean $(RM) -r debian/imapproxy $(RM) stamp-h debian/po/templates.pot: debian/templates @debconf-updatepo install: build dh_testdir dh_testroot dh_clean -k dh_installdirs $(MAKE) install prefix=$(CURDIR)/debian/imapproxy/usr mv debian/imapproxy/usr/sbin/in.imapproxyd \ debian/imapproxy/usr/sbin/imapproxyd # prepare the default configuration file perl debian/prepare-config-file < scripts/imapproxy.conf \ > debian/imapproxy/usr/share/imapproxy/imapproxy.conf.default dh_installexamples chmod 644 $(CURDIR)/debian/imapproxy/usr/share/doc/imapproxy/examples/imapproxy.conf # Build architecture-independent files here. binary-indep: build install # We have nothing to do. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installdebconf dh_installdocs # dh_installexamples dh_installmenu # dh_installlogrotate dh_installinit -- defaults 98 # dh_installcron dh_installman dh_installchangelogs ChangeLog dh_link dh_strip dh_compress -Ximapproxy.conf dh_fixperms dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/po/0000755000000000000000000000000011716553553007617 5ustar debian/po/fr.po0000644000000000000000000000247411713427707010573 0ustar # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. # msgid "" msgstr "" "Project-Id-Version: up-imapproxy\n" "Report-Msgid-Bugs-To: up-imapproxy@packages.debian.org\n" "POT-Creation-Date: 2012-02-05 08:29+0100\n" "PO-Revision-Date: 2006-05-12 03:54+0200\n" "Last-Translator: Jose Luis Tallon \n" "Language-Team: French \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #. Type: string #. Description #: ../templates:1001 msgid "IMAP server to connect to:" msgstr "Serveur IMAP:" #. Type: string #. Description #: ../templates:1001 msgid "" "Please enter the hostname or address of the IMAP server ImapProxy will " "connect to." msgstr "" "Veuillez indiquer le nom d'hte ou l'adresse IP du serveur IMAP auquel " "ImapProxy se connectera." debian/po/sk.po0000644000000000000000000000213311713427707010571 0ustar # Slovak translation of up-imapproxy. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the up-imapproxy package. # Ivan Masár , 2010. # msgid "" msgstr "" "Project-Id-Version: up-imapproxy\n" "Report-Msgid-Bugs-To: up-imapproxy@packages.debian.org\n" "POT-Creation-Date: 2012-02-05 08:29+0100\n" "PO-Revision-Date: 2010-02-17 22:35+0100\n" "Last-Translator: Ivan Masár \n" "Language-Team: Slovak \n" "Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=((n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2);\n" #. Type: string #. Description #: ../templates:1001 msgid "IMAP server to connect to:" msgstr "Ku ktorému IMAP serveru sa pripojiť:" #. Type: string #. Description #: ../templates:1001 msgid "" "Please enter the hostname or address of the IMAP server ImapProxy will " "connect to." msgstr "" "Prosím, zadajte názov hostiteľa alebo adresu IMAP servera, ku ktorému sa " "ImapProxy pripojí." debian/po/it.po0000644000000000000000000000203711713427707010573 0ustar # ITALIAN TRANSLATION OF UP-IMAPPROXY'S PO-DEBCONF FILE. # COPYRIGHT (C) 2010 THE UP-IMAPPROXY'S COPYRIGHT HOLDER # This file is distributed under the same license as the up-imapproxy package. # Vincenzo Campanella , 2010. # msgid "" msgstr "" "Project-Id-Version: up-imapproxy\n" "Report-Msgid-Bugs-To: up-imapproxy@packages.debian.org\n" "POT-Creation-Date: 2012-02-05 08:29+0100\n" "PO-Revision-Date: 2010-02-10 09:53+0100\n" "Last-Translator: Vincenzo Campanella \n" "Language-Team: Italian \n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: string #. Description #: ../templates:1001 msgid "IMAP server to connect to:" msgstr "Server IMAP al quale collegarsi:" #. Type: string #. Description #: ../templates:1001 msgid "" "Please enter the hostname or address of the IMAP server ImapProxy will " "connect to." msgstr "" "Inserire il nome host o l'indirizzo del server IMAP al quale ImapProxy si " "collegherà." debian/po/templates.pot0000644000000000000000000000154511713427707012344 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: up-imapproxy\n" "Report-Msgid-Bugs-To: up-imapproxy@packages.debian.org\n" "POT-Creation-Date: 2012-02-05 08:29+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #. Type: string #. Description #: ../templates:1001 msgid "IMAP server to connect to:" msgstr "" #. Type: string #. Description #: ../templates:1001 msgid "" "Please enter the hostname or address of the IMAP server ImapProxy will " "connect to." msgstr "" debian/po/gl.po0000644000000000000000000000173411713427707010564 0ustar # Galician translation of up-imapproxy's debconf templates # This file is distributed under the same license as the up-imapproxy package. # Jacobo Tarrio , 2008. # msgid "" msgstr "" "Project-Id-Version: up-imapproxy\n" "Report-Msgid-Bugs-To: up-imapproxy@packages.debian.org\n" "POT-Creation-Date: 2012-02-05 08:29+0100\n" "PO-Revision-Date: 2008-06-09 21:30+0100\n" "Last-Translator: Jacobo Tarrio \n" "Language-Team: Galician \n" "Language: gl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: string #. Description #: ../templates:1001 msgid "IMAP server to connect to:" msgstr "Servidor IMAP ao que se conectar:" #. Type: string #. Description #: ../templates:1001 msgid "" "Please enter the hostname or address of the IMAP server ImapProxy will " "connect to." msgstr "" "Introduza o nome ou enderezo do servidor IMAP ao que ImapProxy se ha " "conectar." debian/po/vi.po0000644000000000000000000000213011713427707010567 0ustar # Vietnamese translation for UP-IMAP Proxy. # Copyright © 2008 Free Software Foundation, Inc. # Clytie Siddall , 2005-2008. # msgid "" msgstr "" "Project-Id-Version: up-imapproxy 1.2.6-1.1\n" "Report-Msgid-Bugs-To: up-imapproxy@packages.debian.org\n" "POT-Creation-Date: 2012-02-05 08:29+0100\n" "PO-Revision-Date: 2008-06-11 16:48+0930\n" "Last-Translator: Clytie Siddall \n" "Language-Team: Vietnamese \n" "Language: vi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: LocFactoryEditor 1.7b3\n" #. Type: string #. Description #: ../templates:1001 msgid "IMAP server to connect to:" msgstr "Máy phục vụ IMAP tới đó cần kết nối:" #. Type: string #. Description #: ../templates:1001 msgid "" "Please enter the hostname or address of the IMAP server ImapProxy will " "connect to." msgstr "" "Hãy nhập tên máy hoặc địa chỉ của máy phục vụ IMAP tới đó trình ImapProxy sẽ " "kết nối." debian/po/pl.po0000644000000000000000000000225711713670002010562 0ustar # Translation of imapproxy debconf templates to Polish. # Copyright (C) 2012 # This file is distributed under the same license as the imapproxy package. # # Michał Kułach , 2012. msgid "" msgstr "" "Project-Id-Version: up-imapproxy\n" "Report-Msgid-Bugs-To: up-imapproxy@packages.debian.org\n" "POT-Creation-Date: 2012-02-05 08:29+0100\n" "PO-Revision-Date: 2012-02-05 18:23+0100\n" "Last-Translator: Michał Kułach \n" "Language-Team: Polish \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Lokalize 1.2\n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2);\n" #. Type: string #. Description #: ../templates:1001 msgid "IMAP server to connect to:" msgstr "Serwer IMAP z którym ma nastąpić połączenie:" #. Type: string #. Description #: ../templates:1001 msgid "" "Please enter the hostname or address of the IMAP server ImapProxy will " "connect to." msgstr "" "Proszę wprowadzić nazwę lub adres serwera IMAP, do którego ma być podłączone " "ImapProxy." debian/po/ru.po0000644000000000000000000000234111713427707010603 0ustar # translation of ru.po to Russian # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Yuri Kozlov , 2009. msgid "" msgstr "" "Project-Id-Version: up-imapproxy 1.2.6-5\n" "Report-Msgid-Bugs-To: up-imapproxy@packages.debian.org\n" "POT-Creation-Date: 2012-02-05 08:29+0100\n" "PO-Revision-Date: 2009-08-13 21:24+0400\n" "Last-Translator: Yuri Kozlov \n" "Language-Team: Russian \n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #. Type: string #. Description #: ../templates:1001 msgid "IMAP server to connect to:" msgstr "Сервер IMAP для подключения:" #. Type: string #. Description #: ../templates:1001 msgid "" "Please enter the hostname or address of the IMAP server ImapProxy will " "connect to." msgstr "" "Введите имя или адрес сервера IMAP, к которому должен подключаться ImapProxy." debian/po/ja.po0000644000000000000000000000252711713427707010555 0ustar # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. # # msgid "" msgstr "" "Project-Id-Version: up-imapproxy 1.2.4-5\n" "Report-Msgid-Bugs-To: up-imapproxy@packages.debian.org\n" "POT-Creation-Date: 2012-02-05 08:29+0100\n" "PO-Revision-Date: 2006-10-15 13:52+0900\n" "Last-Translator: Hideki Yamane (Debian-JP) \n" "Language-Team: Japanese \n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: string #. Description #: ../templates:1001 msgid "IMAP server to connect to:" msgstr "接続する IMAP サーバ:" #. Type: string #. Description #: ../templates:1001 msgid "" "Please enter the hostname or address of the IMAP server ImapProxy will " "connect to." msgstr "" "ImapProxy が接続する IMAP サーバのホスト名か IP アドレスを入力してください。" debian/po/sv.po0000644000000000000000000000240411713427707010605 0ustar # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # Developers do not need to manually edit POT or PO files. # , fuzzy # # msgid "" msgstr "" "Project-Id-Version: up-imapproxy 1.2.4-1\n" "Report-Msgid-Bugs-To: up-imapproxy@packages.debian.org\n" "POT-Creation-Date: 2012-02-05 08:29+0100\n" "PO-Revision-Date: 2006-05-12 03:53+0200\n" "Last-Translator: Jose Luis Tallon \n" "Language-Team: Swedish \n" "Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #. Type: string #. Description #: ../templates:1001 msgid "IMAP server to connect to:" msgstr "IMAP-server att koppla upp mot:" #. Type: string #. Description #: ../templates:1001 msgid "" "Please enter the hostname or address of the IMAP server ImapProxy will " "connect to." msgstr "" "Ange vrdnamnet eller addressen till IMAP-servern som ImapProxy ska koppla " "upp mot." debian/po/POTFILES.in0000644000000000000000000000004411265721006011357 0ustar [type: gettext/rfc822deb] templates debian/po/pt.po0000644000000000000000000000205011713427707010575 0ustar # Portuguese translation for up-imapproxy's debconf messages. # This file is distributed under the same license as the up-imapproxy package. # Luísa Lourenço , 2006. # msgid "" msgstr "" "Project-Id-Version: up-imapproxyReport-Msgid-Bugs-To: jltallon@adv-solutions." "net\n" "Report-Msgid-Bugs-To: up-imapproxy@packages.debian.org\n" "POT-Creation-Date: 2012-02-05 08:29+0100\n" "PO-Revision-Date: 2006-08-03 13:50+0000\n" "Last-Translator: Luísa Lourenço \n" "Language-Team: Native Portuguese \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: string #. Description #: ../templates:1001 msgid "IMAP server to connect to:" msgstr "Servidor IMAP a conectar:" #. Type: string #. Description #: ../templates:1001 msgid "" "Please enter the hostname or address of the IMAP server ImapProxy will " "connect to." msgstr "" "Por favor insira o hostname ou endereço do servidor IMAP ao qual o ImapProxy " "se irá conectar." debian/po/de.po0000644000000000000000000000206011713427707010543 0ustar # Translation of up-imapproxy debconf templates to German # Copyright (C) Helge Kreutzmann , 2007. # This file is distributed under the same license as the up-imapproxy package. # msgid "" msgstr "" "Project-Id-Version: up-imapproxy 1.2.4-7\n" "Report-Msgid-Bugs-To: up-imapproxy@packages.debian.org\n" "POT-Creation-Date: 2012-02-05 08:29+0100\n" "PO-Revision-Date: 2007-02-24 18:09+0100\n" "Last-Translator: Helge Kreutzmann \n" "Language-Team: German \n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-15\n" "Content-Transfer-Encoding: 8bit\n" #. Type: string #. Description #: ../templates:1001 msgid "IMAP server to connect to:" msgstr "IMAP-Server, zu dem verbunden werden soll:" #. Type: string #. Description #: ../templates:1001 msgid "" "Please enter the hostname or address of the IMAP server ImapProxy will " "connect to." msgstr "" "Bitte geben Sie den Namen oder die Adresse des IMAP-Servers ein, zu dem " "ImapProxy sich verbinden wird." debian/po/eu.po0000644000000000000000000000206711713427707010573 0ustar # translation of up-imapproxy debconf to Basque # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Xabier Bilbao , 2008. msgid "" msgstr "" "Project-Id-Version: up-imapproxy\n" "Report-Msgid-Bugs-To: up-imapproxy@packages.debian.org\n" "POT-Creation-Date: 2012-02-05 08:29+0100\n" "PO-Revision-Date: 2008-06-10 21:50+0200\n" "Last-Translator: Xabier Bilbao \n" "Language-Team: Basque \n" "Language: eu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" #. Type: string #. Description #: ../templates:1001 msgid "IMAP server to connect to:" msgstr "IMAP zerbitzari honetara konektatu:" #. Type: string #. Description #: ../templates:1001 msgid "" "Please enter the hostname or address of the IMAP server ImapProxy will " "connect to." msgstr "" "Sar ezazu hemen ImapProxy konektatuko den IMAP zerbitzariaren ostalari izena " "edo helbidea." debian/po/tr.po0000644000000000000000000000205011713427707010577 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # Mert Dirik , 2008. # msgid "" msgstr "" "Project-Id-Version: $paket $surum\n" "Report-Msgid-Bugs-To: up-imapproxy@packages.debian.org\n" "POT-Creation-Date: 2012-02-05 08:29+0100\n" "PO-Revision-Date: 2008-06-16 20:02+0200\n" "Last-Translator: Mert Dirik \n" "Language-Team: Debian L10n Turkish \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Turkish\n" #. Type: string #. Description #: ../templates:1001 msgid "IMAP server to connect to:" msgstr "Bağlanılacak IMAP sunucusu:" #. Type: string #. Description #: ../templates:1001 msgid "" "Please enter the hostname or address of the IMAP server ImapProxy will " "connect to." msgstr "" "Lütfen ImapProxy'nin bağlanacağı IMAP sunucusunun makine adını ya da " "adresini girin." debian/po/da.po0000644000000000000000000000202511713427707010540 0ustar # Danish translation up-imapproxy. # Copyright (C) up-imapproxy & nedenstående oversættere. # This file is distributed under the same license as the up-imapproxy package. # Joe Hansen (joedalton2@yahoo.dk), 2011. # msgid "" msgstr "" "Project-Id-Version: up-imapproxy\n" "Report-Msgid-Bugs-To: up-imapproxy@packages.debian.org\n" "POT-Creation-Date: 2012-02-05 08:29+0100\n" "PO-Revision-Date: 2011-05-28 18:30+01:00\n" "Last-Translator: Joe Hansen \n" "Language-Team: Danish \n" "Language: da\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: string #. Description #: ../templates:1001 msgid "IMAP server to connect to:" msgstr "IMAP-server at forbinde til:" #. Type: string #. Description #: ../templates:1001 msgid "" "Please enter the hostname or address of the IMAP server ImapProxy will " "connect to." msgstr "" "Indtast venligst værtsnavnet eller adressen på IMAP-serveren som ImapProxy " "vil forbinde til." debian/po/nl.po0000644000000000000000000000211511713427707010565 0ustar # Dutch translation of up-imapproxy debconf templates. # Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the up-imapproxy package. # Jeroen Schot , 2012. # msgid "" msgstr "" "Project-Id-Version: up-imapproxy 1.2.7-1\n" "Report-Msgid-Bugs-To: up-imapproxy@packages.debian.org\n" "POT-Creation-Date: 2012-02-05 08:29+0100\n" "PO-Revision-Date: 2012-01-20 15:24+0100\n" "Last-Translator: Jeroen Schot \n" "Language-Team: Debian l10n Dutch \n" "Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: string #. Description #: ../templates:1001 msgid "IMAP server to connect to:" msgstr "IMAP-server om verbinding me te maken:" #. Type: string #. Description #: ../templates:1001 msgid "" "Please enter the hostname or address of the IMAP server ImapProxy will " "connect to." msgstr "" "Wat is de computernaam of het IP-adres van de IMAP-server waarmee ImapProxy " "verbinding mee moet maken?" debian/po/cs.po0000644000000000000000000000242511713427707010565 0ustar # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. # msgid "" msgstr "" "Project-Id-Version: up-imapproxy\n" "Report-Msgid-Bugs-To: up-imapproxy@packages.debian.org\n" "POT-Creation-Date: 2012-02-05 08:29+0100\n" "PO-Revision-Date: 2006-05-12 03:53+0200\n" "Last-Translator: Miroslav Kure \n" "Language-Team: Czech \n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" #. Type: string #. Description #: ../templates:1001 msgid "IMAP server to connect to:" msgstr "IMAP server pro pipojen" #. Type: string #. Description #: ../templates:1001 msgid "" "Please enter the hostname or address of the IMAP server ImapProxy will " "connect to." msgstr "" "Zadejte jmno nebo IP adresu IMAP serveru, ke ktermu se m ImapProxy " "pipojit." debian/po/es.po0000644000000000000000000000363611713427707010574 0ustar # up-imapproxy po-debconf translation to Spanish # Copyright (C) 2006, 2009 Software in the Public Interest # This file is distributed under the same license as the up-imapproxy package. # # Changes: # - Initial translation # Jose Luis Tallon , 2006 # # - Updates # Francisco Javier Cuadrado , 2009 # # Traductores, si no conocen el formato PO, merece la pena leer la # documentación de gettext, especialmente las secciones dedicadas a este # formato, por ejemplo ejecutando: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Equipo de traducción al español, por favor, lean antes de traducir # los siguientes documentos: # # - El proyecto de traducción de Debian al español # http://www.debian.org/intl/spanish/ # especialmente las notas de traducción en # http://www.debian.org/intl/spanish/notas # # - La guía de traducción de po's de debconf: # /usr/share/doc/po-debconf/README-trans # o http://www.debian.org/intl/l10n/po-debconf/README-trans # msgid "" msgstr "" "Project-Id-Version: up-imapproxy 1.2.6-5\n" "Report-Msgid-Bugs-To: up-imapproxy@packages.debian.org\n" "POT-Creation-Date: 2012-02-05 08:29+0100\n" "PO-Revision-Date: 2009-07-02 09:33+0100\n" "Last-Translator: Francisco Javier Cuadrado \n" "Language-Team: Debian l10n Spanish \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: string #. Description #: ../templates:1001 msgid "IMAP server to connect to:" msgstr "Servidor IMAP al que conectarse:" #. Type: string #. Description #: ../templates:1001 msgid "" "Please enter the hostname or address of the IMAP server ImapProxy will " "connect to." msgstr "" "Por favor, introduzca el nombre o la dirección del servidor IMAP al que se " "conectará ImapProxy." debian/imapproxy.dirs0000644000000000000000000000020711265721006012100 0ustar etc etc/default usr/sbin var/lib/imapproxy/chroot usr/share/imapproxy usr/share/doc/imapproxy usr/share/doc/imapproxy/examples var/run debian/additions/0000755000000000000000000000000011265721006011144 5ustar debian/additions/FAQ.txt0000644000000000000000000000541411265721006012320 0ustar * What is the imapproxy? The name says almost all you need to know. It proxies IMAP transactions between an IMAP client and an IMAP server. The general idea is that the client should never know that it's not talking to the real IMAP server. The only thing that makes this a slightly unique Imap Proxy server is that it caches server connections. * Why was imapproxy written in the first place? imapproxy was written to compensate for webmail clients that are unable to maintain persistent connections to an IMAP server. Most webmail clients need to log in to an IMAP server for nearly every single transaction. This behaviour can cause tragic performance problems on the IMAP server. imapproxy tries to deal with this problem by leaving server connections open for a short time after a webmail client logs out. When the webmail client connects again, imapproxy will determine if there's a cached connection available and reuse it if possible. * How does imapproxy keep track of which server connection is for which user? Upon the first successful login to the real IMAP server (through the proxy), imapproxy fills in a little record that contains the username, an MD5 digital signature of the password and the server socket descriptor that's being used. After you log out and then log back in again, imapproxy just has to find a record that matches your username and password. These records are stored in a hash table (with the username being the hash key) in memory, so the lookups are pretty fast. * I set the cache expiration time for 5 minutes, but looking at my logs I noticed that connections are taking longer than 5 minutes to expire. Is this a bug? This isn't a bug. Each time a client logs out of imapproxy, the real server connection is left open and the logout time is stored in a record corresponding to the connection. Every 60 seconds, a thread wakes up and expires every connection that's been logged out at least cache_expiration_time seconds. If your cache expiration time is set to 5 minutes, a cached connection could potentially not be expired for nearly 6 minutes. * What platforms will imapproxy run on? So far it's been tested on Solaris 8, Solaris 9, RedHat 7.3, RedHat 9, IRIX 6.5 and FreeBSD 5.0. With some manual tweaking, it's known to run on older versions of FreeBSD and Mac OS X. If you're running it on a platform not listed here, let us know and we'll update this list. * Is this the Horde Imap Proxy? No. You can find information about the Horde Imap Proxy at http://www.horde.org/imapproxy. This one is the Imap Proxy commonly known as up-imapproxy. They're two totally different Imap Proxy servers. I just shortened the name from up-imapproxy to imapproxy when I registered the domain. I thought www.upimapproxy.org looked pretty stupid. debian/patches/0000755000000000000000000000000011337771064010626 5ustar debian/patches/config_defaults.diff0000644000000000000000000000503011266050172014601 0ustar Index: up-imapproxy-1.2.7rc2/include/imapproxy.h =================================================================== --- up-imapproxy-1.2.7rc2.orig/include/imapproxy.h 2009-10-16 12:49:51.000000000 +0200 +++ up-imapproxy-1.2.7rc2/include/imapproxy.h 2009-10-16 12:52:34.000000000 +0200 @@ -196,6 +196,10 @@ #define LOGIN_DISABLED 1 #define LOGIN_NOT_DISABLED 0 + +#define DEFAULT_SERVER_CONNECT_RETRIES 10 +#define DEFAULT_SERVER_CONNECT_DELAY 5 + /* * One IMAPServerDescriptor will be globally allocated such that each thread * can save the time of doing host lookups, service lookups, and filling @@ -361,6 +365,7 @@ extern void ICC_Recycle_Loop( void ); extern void LockMutex( pthread_mutex_t * ); extern void UnLockMutex( pthread_mutex_t * ); +extern void SetDefaultConfigValues(ProxyConfig_Struct *); extern void SetConfigOptions( char * ); extern void SetLogOptions( void ); extern int Handle_Select_Command( ITD_Struct *, ITD_Struct *, ISC_Struct *, char *, int ); Index: up-imapproxy-1.2.7rc2/src/config.c =================================================================== --- up-imapproxy-1.2.7rc2.orig/src/config.c 2009-10-16 12:49:51.000000000 +0200 +++ up-imapproxy-1.2.7rc2/src/config.c 2009-10-16 12:51:35.000000000 +0200 @@ -125,7 +125,6 @@ static void SetNumericValue( char *, int *, unsigned int ); static void SetBooleanValue( char *, unsigned int *, unsigned int ); - /* * An array of Config_Structs will need to be allocated, one for * every possible keyword/value combination (plus a NULL). Note that @@ -320,7 +319,25 @@ } +/*++ + * Function: SetDefaultConfigValues + * + * Purpose: Set global configuration default values + * + * Parameters: pointer to global config struct + * + * Returns: nada. + * + * Authors: Jose Luis Tallon + *-- + */ +void SetDefaultConfigValues(ProxyConfig_Struct *PC_Struct) +{ + PC_Struct->server_connect_retries = DEFAULT_SERVER_CONNECT_RETRIES; + PC_Struct->server_connect_delay = DEFAULT_SERVER_CONNECT_DELAY; + return; +} /*++ * Function: SetConfigOptions Index: up-imapproxy-1.2.7rc2/src/main.c =================================================================== --- up-imapproxy-1.2.7rc2.orig/src/main.c 2009-10-16 12:49:51.000000000 +0200 +++ up-imapproxy-1.2.7rc2/src/main.c 2009-10-16 12:49:51.000000000 +0200 @@ -363,7 +363,8 @@ syslog( LOG_INFO, "%s: Using default configuration file '%s'.", fn, ConfigFile ); } - + + SetDefaultConfigValues(&PC_Struct); SetConfigOptions( ConfigFile ); SetLogOptions(); debian/patches/fix_compiler_warnings.patch0000644000000000000000000001107211265741046016235 0ustar Index: up-imapproxy-1.2.7rc2/src/main.c =================================================================== --- up-imapproxy-1.2.7rc2.orig/src/main.c 2009-10-16 02:44:49.000000000 +0200 +++ up-imapproxy-1.2.7rc2/src/main.c 2009-10-16 02:44:59.000000000 +0200 @@ -628,7 +628,7 @@ pthread_create( &RecycleThread, &attr, (void *)ICC_Recycle_Loop, NULL ); syslog(LOG_INFO, "%s: Launched ICC recycle thread with id %d", - fn, RecycleThread ); + fn, (int)RecycleThread ); /* * Now start listening and accepting connections. @@ -1154,7 +1154,6 @@ ICD_Struct conn; int BytesRead; char *fn = "SetBannerAndCapability()"; - int NumRef = 0; /* initialize some stuff */ memset( &itd, 0, sizeof itd ); Index: up-imapproxy-1.2.7rc2/src/request.c =================================================================== --- up-imapproxy-1.2.7rc2.orig/src/request.c 2009-10-16 02:44:49.000000000 +0200 +++ up-imapproxy-1.2.7rc2/src/request.c 2009-10-16 02:45:20.000000000 +0200 @@ -524,7 +524,7 @@ if ( !Username ) { - snprintf( SendBuf, BufLen, "\n\n-----> C= %d %s PROXY: user tracing disabled. Expect further output until client logout.\n", time( 0 ), TraceUser ); + snprintf( SendBuf, BufLen, "\n\n-----> C= %d %s PROXY: user tracing disabled. Expect further output until client logout.\n", (int)time(0), TraceUser ); write( Tracefd, SendBuf, strlen( SendBuf ) ); memset( TraceUser, 0, sizeof TraceUser ); @@ -569,7 +569,7 @@ return( -1 ); } - snprintf( SendBuf, BufLen, "\n\n-----> C= %d %s PROXY: user tracing enabled.\n", time( 0 ), TraceUser ); + snprintf( SendBuf, BufLen, "\n\n-----> C= %d %s PROXY: user tracing enabled.\n", (int)time(0), TraceUser ); write( Tracefd, SendBuf, strlen( SendBuf ) ); UnLockMutex( &trace ); @@ -821,7 +821,7 @@ if ( getpeername( Client->conn->sd, (struct sockaddr *)&cli_addr, &sockaddrlen ) < 0 ) { - syslog( LOG_WARNING, "AUTH_LOGIN: failed: getpeername() failed for client sd: %s", Username, strerror( errno ) ); + syslog( LOG_WARNING, "AUTH_LOGIN: user '%s' failed: getpeername() failed for client sd: %s", Username, strerror( errno ) ); return( -1 ); } @@ -1234,7 +1234,8 @@ if ( Server->TraceOn ) { - snprintf( TraceBuf, sizeof TraceBuf - 1, "\n\n-----> C= %d %s SERVER: sd [%d]\n", time( 0 ), ( (TraceUser) ? TraceUser : "Null username" ), Server->conn->sd ); + snprintf( TraceBuf, sizeof TraceBuf - 1, "\n\n-----> C= %d %s SERVER: sd [%d]\n", + (int)time(0), ( (*TraceUser) ? TraceUser : "Null username" ), Server->conn->sd ); write( Tracefd, TraceBuf, strlen( TraceBuf ) ); write( Tracefd, Server->ReadBuf, status ); } @@ -1280,7 +1281,7 @@ if ( Client->TraceOn ) { - snprintf( TraceBuf, sizeof TraceBuf - 1, "\n\n-----> C= %d %s CLIENT: sd [%d]\n", time( 0 ), ( (TraceUser) ? TraceUser : "Null username" ), Client->conn->sd ); + snprintf( TraceBuf, sizeof TraceBuf - 1, "\n\n-----> C= %d %s CLIENT: sd [%d]\n", (int)time(0), ( (*TraceUser) ? TraceUser : "Null username" ), Client->conn->sd ); write( Tracefd, TraceBuf, strlen( TraceBuf ) ); write( Tracefd, Client->ReadBuf, status ); } @@ -1442,7 +1443,7 @@ status = IMAP_Line_Read( Server ); if ( Server->TraceOn ) { - snprintf( TraceBuf, sizeof TraceBuf - 1, "\n\n-----> C= %d %s SERVER: sd [%d]\n", time( 0 ), ( (TraceUser) ? TraceUser : "Null username" ), Server->conn->sd ); + snprintf( TraceBuf, sizeof TraceBuf - 1, "\n\n-----> C= %d %s SERVER: sd [%d]\n", (int)time(0), ( (*TraceUser) ? TraceUser : "Null username" ), Server->conn->sd ); write( Tracefd, TraceBuf, strlen( TraceBuf ) ); write( Tracefd, Server->ReadBuf, status ); } @@ -1477,7 +1478,7 @@ if ( Client->TraceOn ) { - snprintf( TraceBuf, sizeof TraceBuf - 1, "\n\n-----> C= %d %s CLIENT: sd [%d]\n", time( 0 ), ( (TraceUser) ? TraceUser : "Null username" ), Client->conn->sd ); + snprintf( TraceBuf, sizeof TraceBuf - 1, "\n\n-----> C= %d %s CLIENT: sd [%d]\n", (int)time(0), ( (*TraceUser) ? TraceUser : "Null username" ), Client->conn->sd ); write( Tracefd, TraceBuf, strlen( TraceBuf ) ); write( Tracefd, Client->ReadBuf, status ); } @@ -1940,7 +1941,7 @@ if ( BytesRead == -1 ) { - syslog( LOG_NOTICE, "%s: Failed to read string literal from client on login." ); + syslog( LOG_NOTICE, "%s: Failed to read string literal from client on login.", fn ); snprintf( SendBuf, BufLen, "%s NO LOGIN failed\r\n", Tag ); if ( IMAP_Write( Client.conn, SendBuf, strlen(SendBuf) ) == -1 ) { debian/patches/retry_connect_imapserver.diff0000644000000000000000000001145311266047701016572 0ustar Index: up-imapproxy-1.2.7rc2/include/imapproxy.h =================================================================== --- up-imapproxy-1.2.7rc2.orig/include/imapproxy.h 2009-10-16 02:48:18.000000000 +0200 +++ up-imapproxy-1.2.7rc2/include/imapproxy.h 2009-10-16 12:48:04.000000000 +0200 @@ -279,6 +279,8 @@ char *listen_addr; /* address we bind to */ char *server_hostname; /* server we proxy to */ char *server_port; /* port we proxy to */ + unsigned int server_connect_retries; /* connect retries to IMAP server */ + unsigned int server_connect_delay; /* delay between connection retry rounds */ unsigned int cache_size; /* number of cache slots */ unsigned int cache_expiration_time; /* cache exp time in seconds */ unsigned int send_tcp_keepalives; /* flag to send keepalives */ Index: up-imapproxy-1.2.7rc2/scripts/imapproxy.conf =================================================================== --- up-imapproxy-1.2.7rc2.orig/scripts/imapproxy.conf 2009-10-16 02:48:18.000000000 +0200 +++ up-imapproxy-1.2.7rc2/scripts/imapproxy.conf 2009-10-16 02:48:27.000000000 +0200 @@ -15,6 +15,15 @@ # +## connect_retries +## +## This setting controls how many times we retry connecting to our server. +## The delay between retries is configurable with 'connect_delay' +# +connect_retries 10 +connect_delay 5 + +# ## cache_size ## ## This setting determines how many in-core imap connection structures Index: up-imapproxy-1.2.7rc2/src/config.c =================================================================== --- up-imapproxy-1.2.7rc2.orig/src/config.c 2009-10-16 02:48:18.000000000 +0200 +++ up-imapproxy-1.2.7rc2/src/config.c 2009-10-16 12:48:04.000000000 +0200 @@ -372,6 +372,11 @@ ADD_TO_TABLE( "server_port", SetStringValue, &PC_Struct.server_port, index ); + ADD_TO_TABLE( "connect_retries", SetNumericValue, + &PC_Struct.server_connect_retries, index ); + ADD_TO_TABLE( "connect_delay", SetNumericValue, + &PC_Struct.server_connect_delay, index ); + ADD_TO_TABLE( "cache_size", SetNumericValue, &PC_Struct.cache_size, index ); Index: up-imapproxy-1.2.7rc2/src/main.c =================================================================== --- up-imapproxy-1.2.7rc2.orig/src/main.c 2009-10-16 02:48:27.000000000 +0200 +++ up-imapproxy-1.2.7rc2/src/main.c 2009-10-16 12:49:32.000000000 +0200 @@ -276,6 +276,7 @@ static int ParseBannerAndCapability( char *, unsigned int, char *, unsigned int, unsigned int ); static void ServerInit( void ); +static int TestServerAlive( struct addrinfo *ai ); static void Daemonize( const char* ); static void Usage( void ); @@ -737,10 +738,10 @@ { char *fn = "ServerInit()"; struct rlimit rl; - int rc; + int rc, retry; struct passwd *pw; struct addrinfo aihints, *ai; - int gaierrnum, sd; + int gaierrnum; /* open the global trace file and make proc_username own it */ @@ -820,18 +821,27 @@ /* * fill in the address family, the host address, and the * service port of our global socket address structure + * Try to connect at least once (<=) before giving up */ ISD.airesults = ai; ISD.srv = NULL; - for ( ; ai != NULL; ai = ai->ai_next ) + for ( retry=0; retry <= PC_Struct.server_connect_retries && NULL == ISD.srv; retry++ ) { - if ( ( sd = socket( ai->ai_family, ai->ai_socktype, ai->ai_protocol ) ) - < 0 ) continue; - if ( connect( sd, (struct sockaddr *)ai->ai_addr, ai->ai_addrlen ) ) - continue; - close( sd ); - ISD.srv = ai; - break; + ai = ISD.airesults; + for ( ; ai != NULL; ai = ai->ai_next ) + { + if( ! TestServerAlive(ai) ) + { /* connect to server succeeded */ + ISD.srv = ai; + break; + } + } + if( ISD.srv ) + break; + + syslog( LOG_INFO, "%s: Connection to server failed. Sleeping %d seconds to retry...", fn, + PC_Struct.server_connect_delay); + sleep( PC_Struct.server_connect_delay ); } if ( ai == NULL ) { @@ -840,6 +850,31 @@ } } +/*++ + * Function: TestServerAlive + * + * Purpose: Attempt connecting to server + * + * Parameters: ai -- addrinfo corresponding to resolved server address + * + * Returns: 0 upon successful connection + * + * Authors: Jose Luis Tallon + * + */ +int TestServerAlive(struct addrinfo *ai) +{ + int sd=-1; + + if( ( sd=socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol) ) < 0 ) + return -1; /* could not create socket */ + + if( connect(sd, (struct sockaddr *)ai->ai_addr, ai->ai_addrlen) ) + return -1; /* could not connect socket */ + + close( sd ); + return 0; +} /*++ * Function: Daemonize debian/patches/fix_logging.diff0000644000000000000000000000117711265741310013751 0ustar Index: up-imapproxy-1.2.7rc2/src/select.c =================================================================== --- up-imapproxy-1.2.7rc2.orig/src/select.c 2009-10-16 02:44:49.000000000 +0200 +++ up-imapproxy-1.2.7rc2/src/select.c 2009-10-16 02:47:20.000000000 +0200 @@ -349,7 +349,8 @@ { if ( Server->LiteralBytesRemaining ) { - syslog( LOG_ERR, "%s: Server response to SELECT command contains unexpected literal data on sd [%d].", fn ); + syslog( LOG_ERR, "%s: Server response to SELECT command contains unexpected literal data on sd [%d].", + fn, Server->conn ); /* * Must eat the literal. */