From e891b183daa7a37e4c94afc2cb85f5b667076b03 Mon Sep 17 00:00:00 2001 From: Kyuho Jo Date: Tue, 21 Aug 2012 17:40:00 +0900 Subject: [PATCH] Init RSA repo. --- Makefile.am | 14 +- debian/changelog | 623 +++++++++++++++++++++++++++++++++++ debian/control | 2 +- debian/copyright | 2 + debian/libuw-imap-toolkit-0.postinst | 6 - imap-2007e/c-client/auth_md5.c | 2 - imap-2007e/c-client/auth_pla.c | 14 +- imap-2007e/c-client/imap4r1.c | 141 ++++++-- imap-2007e/c-client/imap4r1.h | 3 + imap-2007e/c-client/lnx_mail.c | 41 --- imap-2007e/c-client/mail.c | 14 +- imap-2007e/c-client/mail.h | 28 +- imap-2007e/c-client/osdep.c | 3 +- imap-2007e/c-client/pop3.c | 8 +- imap-2007e/c-client/smtp.c | 37 +-- packaging/uw-imap-toolkit.spec | 3 +- 16 files changed, 782 insertions(+), 159 deletions(-) diff --git a/Makefile.am b/Makefile.am index edf3f43..063cbb3 100755 --- a/Makefile.am +++ b/Makefile.am @@ -24,13 +24,13 @@ libuw_imap_toolkit_la_SOURCES= imap-2007e/c-client/lnx_osdep.c \ libuw_imap_toolkit_la_CPPFLAGS= -I. \ -I$(includedir)/openssl \ -I$(srcdir)/imap-2007e/c-client \ - -I./common \ - $(DLOG_CFLAGS) \ - $(SSL_CFLAGS) \ + -I./common \ + $(DLOG_CFLAGS) \ + $(SSL_CFLAGS) \ -D_DEBUG_LOG \ - -DFEATURE_NEW_DEBUG \ - -D__HEADER_OPTIMIZATION__ \ - -D__SEND_OPTMIZATION__ \ + -D__FEATURE_HEADER_OPTIMIZATION__ \ + -D__FEATURE_SEND_OPTMIZATION__ \ + -D__FEATURE_XLIST_SUPPORT__ \ -DCREATEPROTO=unixproto -DEMPTYPROTO=unixproto \ -DMAILSPOOL=\"/var/spool/mail\" \ -DANONYMOUSHOME=\"/var/spool/mail/anonymous\" \ @@ -49,7 +49,7 @@ libuw_imap_toolkit_la_CPPFLAGS= -I. \ -DEXPORT_API="__attribute__((visibility(\"default\")))" # -DFEATURE_CORE_DEBUG -# -D__NON_BLOCKING_SSL_WRITE__ +# -D__NON_BLOCKING_SSL_WRITE__ libuw_imap_toolkit_la_LIBADD = -L$(prefix)/lib \ $(SSL_LIBS) diff --git a/debian/changelog b/debian/changelog index ba1d899..154f623 100755 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,27 @@ +uw-imap-toolkit (0.1.2-0) unstable; urgency=low + + * New Feature : XLIST supported. + * Git : 165.213.180.234:slp/pkgs/u/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.2-0 + + -- Kyuho Jo Thu, 19 Apr 2012 18:41:57 +0900 + +uw-imap-toolkit (0.1.1-0slp2+51) unstable; urgency=low + + * Add the parsing logic in imap_parse_string. + * Git : 165.213.180.234:slp/pkgs/u/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+51 + + -- Kyuho Jo Fri, 03 Feb 2012 16:33:41 +0900 + +uw-imap-toolkit (0.1.1-0slp2+50) unstable; urgency=low + + * Modified Package configuration file. + * Git : 165.213.180.234:slp/pkgs/u/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+50 + + -- Kyuho Jo Mon, 26 Dec 2011 16:37:26 +0900 + uw-imap-toolkit (0.1.1-0slp2+49) unstable; urgency=low * Removed redundant code for dnet. @@ -5,3 +29,602 @@ uw-imap-toolkit (0.1.1-0slp2+49) unstable; urgency=low * Tag: uw-imap-toolkit_0.1.1-0slp2+49 -- Kyuho Jo Thu, 22 Dec 2011 18:11:13 +0900 + +uw-imap-toolkit (0.1.1-0slp2+48) unstable; urgency=low + + * Improved in using 'select' function. (Merged from imap-2007f) + * Git : 165.213.180.234:slp/pkgs/u/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+48 + + -- Kyuho Jo Fri, 02 Dec 2011 20:27:58 +0900 + +uw-imap-toolkit (0.1.1-0slp2+47) unstable; urgency=low + + * Enabled timeout on SSL connection + * Git : 165.213.180.234:slp/pkgs/u/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+47 + + -- Kyuho Jo Wed, 30 Nov 2011 20:11:39 +0900 + +uw-imap-toolkit (0.1.1-0slp2+46) unstable; urgency=low + + * Merged the connman + * Git : 165.213.180.234:slp/pkgs/u/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+46 + + -- Sunghyun Kwon Tue, 29 Nov 2011 13:11:37 +0900 + +uw-imap-toolkit (0.1.1-0slp2+45) unstable; urgency=low + + * Disabled __NON_BLOCKING_SSL_WRITE__ + * Git : 165.213.180.234:slp/pkgs/u/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+45 + + -- Kyuho Jo Fri, 09 Sep 2011 17:12:09 +0900 + +uw-imap-toolkit (0.1.1-0slp2+44) unstable; urgency=low + + * Proper handling for error 'NET_ERR_CONNECTION_OPENING'. + * Git : 165.213.180.234:slp/pkgs/u/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+44 + + -- Kyuho Jo Tue, 09 Aug 2011 20:03:26 +0900 + +uw-imap-toolkit (0.1.1-0slp2+43) unstable; urgency=low + + * Enabled __NON_BLOCKING_SSL_WRITE__ + * Git : 165.213.180.234:slp/pkgs/u/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+43 + + -- Kyuho Jo Tue, 09 Aug 2011 14:22:12 +0900 + +uw-imap-toolkit (0.1.1-0slp2+42) unstable; urgency=low + + * Trying to open DNET Connection again for DNET disconnected when creating a socket. + * Git : 165.213.180.234:slp/pkgs/u/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+42 + + -- Kyuho Jo Mon, 04 Jul 2011 15:13:30 +0900 + +uw-imap-toolkit (0.1.1-0slp2+41) unstable; urgency=low + + * Connection Failure recovery + * Git : 165.213.180.234:slp/pkgs/u/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+41 + + -- Kyuho Jo Thu, 09 Jun 2011 18:12:33 +0900 + +uw-imap-toolkit (0.1.1-0slp2+40) unstable; urgency=low + + * Disabled __NON_BLOCKING_SSL_WRITE__ + * Git : 165.213.180.234:slp/pkgs/u/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+40 + + -- Kyuho Jo Thu, 12 May 2011 20:51:40 +0900 + +uw-imap-toolkit (0.1.1-0slp2+39) unstable; urgency=low + + * Fixed build break on checking API change + * Git : 165.213.180.234:slp/pkgs/u/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+39 + + -- Kyuho Jo Mon, 14 Feb 2011 15:35:38 +0900 + +uw-imap-toolkit (0.1.1-0slp2+38) unstable; urgency=low + + * Fixed build break. + * Git : 165.213.180.234:slp/pkgs/u/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+38 + + -- Kyuho Jo Mon, 14 Feb 2011 11:57:20 +0900 + +uw-imap-toolkit (0.1.1-0slp2+37) unstable; urgency=low + + * Rollback imap-network/imap-network.h + * Git : 165.213.180.234:slp/pkgs/u/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+37 + + -- Kyuho Jo Mon, 14 Feb 2011 11:24:38 +0900 + +uw-imap-toolkit (0.1.1-0slp2+36) unstable; urgency=low + + * Rollback imap-network/imap-network.h + * Git : 165.213.180.234:slp/pkgs/u/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+36 + + -- Kyuho Jo Mon, 14 Feb 2011 10:49:41 +0900 + +uw-imap-toolkit (0.1.1-0slp2+35) unstable; urgency=low + + * Modification on checking connection status. + * Git : 165.213.180.234:slp/pkgs/u/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+35 + + -- Kyuho Jo Mon, 14 Feb 2011 09:50:41 +0900 + +uw-imap-toolkit (0.1.1-0slp2+34) unstable; urgency=low + + * Enabled PARTIAL_BODY_DOWNLOAD. + * Git : 165.213.180.234:slp/pkgs/u/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+34 + + -- Kyuho Jo Tue, 18 Jan 2011 16:07:49 +0900 + +uw-imap-toolkit (0.1.1-0slp2+33) unstable; urgency=low + + * Removed an unused feature, USE_PROPER_PROFILE_SELECTION + * Git : 165.213.180.234:slp/pkgs/u/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+33 + + -- Choongho Lee Thu, 16 Dec 2010 11:17:05 +0900 + +uw-imap-toolkit (0.1.1-0slp2+32) unstable; urgency=low + + * Bug fix on libuw-imap-toolkit-0.postinst + * Git : 165.213.180.234:slp/pkgs/u/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+32 + + -- Choongho Lee Wed, 15 Dec 2010 12:25:35 +0900 + +uw-imap-toolkit (0.1.1-0slp2+31) unstable; urgency=low + + * Using get_host_by_name instead of dnet functions. + * Git : 165.213.180.234:slp/pkgs/u/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+31 + + -- Kyuho Jo Thu, 09 Dec 2010 15:13:08 +0900 + +uw-imap-toolkit (0.1.1-0slp2+30) unstable; urgency=low + + * Build option tweak + * Git : 165.213.180.234:/git/slp/pkgs/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+30 + + -- Kyuho Jo Tue, 23 Nov 2010 15:12:41 +0900 + +uw-imap-toolkit (0.1.1-0slp2+29) unstable; urgency=low + + * Fixed the problem on downloadnig body regarding parse address. + * Git : 165.213.180.234:/git/slp/pkgs/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+29 + + -- Kyuho Jo Wed, 10 Nov 2010 16:22:01 +0900 + +uw-imap-toolkit (0.1.1-0slp2+28) unstable; urgency=low + + * Fixed the problem which set flag as seen on server when downloading is fixed. + * Git : 165.213.180.234:/git/slp/pkgs/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+28 + + -- Kyuho Jo Thu, 04 Nov 2010 18:04:09 +0900 + +uw-imap-toolkit (0.1.1-0slp2+27) unstable; urgency=low + + * Fixed the problem on using unhealthy stream. + * Git : 165.213.180.234:/git/slp/pkgs/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+27 + + -- Kyuho Jo Tue, 19 Oct 2010 16:40:46 +0900 + +uw-imap-toolkit (0.1.1-0slp2+26) unstable; urgency=low + + * PARTIAL_BODY_DOWNLOAD + * Git : 165.213.180.234:/git/slp/pkgs/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+26 + + -- Kyuho Jo Mon, 18 Oct 2010 16:54:43 +0900 + +uw-imap-toolkit (0.1.1-0slp2+25) unstable; urgency=low + + * Getting dnet status by using net_is_connected. + * Git : 165.213.180.234:/git/slp/pkgs/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+25 + + -- Kyuho Jo Mon, 18 Oct 2010 14:02:44 +0900 + +uw-imap-toolkit (0.1.1-0slp2+24) unstable; urgency=low + + * Removed using crypt funcion. + * Git : 165.213.180.234:/git/slp/pkgs/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+24 + + -- Kyuho Jo Wed, 13 Oct 2010 20:14:57 +0900 + +uw-imap-toolkit (0.1.1-0slp2+23) unstable; urgency=low + + * version up + * Git : 165.213.180.234:/git/slp/pkgs/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+22 + + -- Kyuho Jo Wed, 13 Oct 2010 17:12:56 +0900 + +uw-imap-toolkit (0.1.1-0slp2+22) unstable; urgency=low + + * Send/Sync Optimized + * Git : 165.213.180.234:/git/slp/pkgs/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+22 + + -- Kyuho Jo Wed, 13 Oct 2010 16:43:50 +0900 + +uw-imap-toolkit (0.1.1-0slp2+21) unstable; urgency=low + + * Fixed problem on building for i386 + * Git : 165.213.180.234:/git/slp/pkgs/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+21 + + -- Kyuho Jo Fri, 10 Sep 2010 22:11:38 +0900 + +uw-imap-toolkit (0.1.1-0slp2+20) unstable; urgency=low + + * Removed using crypt function because it caused build break on i386. + * Git : 165.213.180.234:/git/slp/pkgs/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+20 + + -- Kyuho Jo Tue, 07 Sep 2010 14:24:53 +0900 + +uw-imap-toolkit (0.1.1-0slp2+19) unstable; urgency=low + + * Removed using crypt function because it caused build break on i386. + * Git : 165.213.180.234:/git/slp/pkgs/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+19 + + -- Kyuho Jo Tue, 07 Sep 2010 14:20:23 +0900 + +uw-imap-toolkit (0.1.1-0slp2+18) unstable; urgency=low + + * Removed using crypt function because it caused build break on i386. + * Git : 165.213.180.234:/git/slp/pkgs/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+18 + + -- Kyuho Jo Tue, 07 Sep 2010 14:14:37 +0900 + +uw-imap-toolkit (0.1.1-0slp2+17) unstable; urgency=low + + * Modify a dnet header file path + * Git : 165.213.180.234:/git/slp/pkgs/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+17 + + -- Choongho Lee Thu, 02 Sep 2010 13:54:50 +0900 + +uw-imap-toolkit (0.1.1-0slp2+16) unstable; urgency=low + + * Rebuild for dnet change + * Git : 165.213.180.234:/git/slp/pkgs/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+16 + + -- Choongho Lee Fri, 20 Aug 2010 19:34:41 +0900 + +uw-imap-toolkit (0.1.1-0slp2+15) unstable; urgency=low + + * Modify debian/control + * - Remove dlog-dev from libuw-imap-toolkit-0 package + * - Add dlog-dev to libuw-imap-toolkit-dev package + * Git : 165.213.180.234:/git/slp/pkgs/uw-imap-toolkit + * Tag: uw-imap-toolkit_0.1.1-0slp2+15 + + -- Choongho Lee Mon, 16 Aug 2010 14:59:25 +0900 + +uw-imap-toolkit (0.1.1-0slp2+14) unstable; urgency=low + + * Rebuild because of dlog lib changing + * Git: 165.213.180.234:/git/slp2.0/slp2.0-pkgs/uw-imap-toolkit-0 + * Tag: uw-imap-toolkit_0.1.1-0slp2+14 + + -- Choongho Lee Fri, 25 Jun 2010 18:09:22 +0900 + +uw-imap-toolkit (0.1.1-0slp2+13) unstable; urgency=low + + * Change error codes to negative values + * Git: 165.213.180.234:/git/slp2.0/slp2.0-pkgs/uw-imap-toolkit-0 + * Tag: uw-imap-toolkit_0.1.1-0slp2+13 + + -- Choongho Lee Mon, 21 Jun 2010 17:53:32 +0900 + +uw-imap-toolkit (0.1.1-0slp2+12) unstable; urgency=low + + * Rebuild because of dlog lib changing + * Git: 165.213.180.234:/git/slp2.0/slp2.0-pkgs/uw-imap-toolkit-0 + * Tag: uw-imap-toolkit_0.1.1-0slp2+12 + + -- Choongho Lee Fri, 18 Jun 2010 09:37:12 +0900 + +uw-imap-toolkit (0.1.1-0slp2+11) unstable; urgency=low + + * Change LOG_TAG for dlog + * Git: 165.213.180.234:/git/slp2.0/slp2.0-pkgs/uw-imap-toolkit-0 + * Tag: uw-imap-toolkit_0.1.1-0slp2+11 + + -- Choongho Lee Thu, 17 Jun 2010 10:40:02 +0900 + +uw-imap-toolkit (0.1.1-0slp2+10) unstable; urgency=low + + * Change DLOG interface - Modify macros which are using dlog API + * Git: 165.213.180.234:/git/slp2.0/slp2.0-pkgs/uw-imap-toolkit-0 + * Tag: uw-imap-toolkit_0.1.1-0slp2+10 + + -- Choongho Lee Thu, 17 Jun 2010 10:00:41 +0900 + +uw-imap-toolkit (0.1.1-0slp2+9) unstable; urgency=low + + * Rebuild because of dbus lib changing + * Git: 165.213.180.234:/git/slp2.0/slp2.0-pkgs/uw-imap-toolkit-0 + * Tag: uw-imap-toolkit_0.1.1-0slp2+9 + + -- Choongho Lee Mon, 14 Jun 2010 10:48:30 +0900 + +uw-imap-toolkit (0.1.1-0slp2+8) unstable; urgency=low + + * Update for dnet change + * Git: 165.213.180.234:/git/slp2.0/slp2.0-pkgs/uw-imap-toolkit-0 + * Tag: uw-imap-toolkit_0.1.1-0slp2+8 + + -- Kyuho Jo Fri, 04 Jun 2010 13:17:42 +0900 + +uw-imap-toolkit (0.1.1-0slp2+7) unstable; urgency=low + + * Remove the codes which are related to _dnet_set_nework_status() + * Git: 165.213.180.234:/git/slp2.0/slp2.0-pkgs/uw-imap-toolkit-0 + * Tag: uw-imap-toolkit_0.1.1-0slp2+7 + + -- Choongho Lee Fri, 28 May 2010 20:20:09 +0900 + +uw-imap-toolkit (0.1.1-0slp2+6) unstable; urgency=low + + * Add USING_ONLY_ONE_CONNECTION feature + * Add new parameter for net_cb_open_rsp() + * Git: 165.213.180.234:/git/slp2.0/slp2.0-pkgs/uw-imap-toolkit-0 + * Tag: uw-imap-toolkit_0.1.1-0slp2+6 + + -- Choongho Lee Wed, 26 May 2010 19:17:43 +0900 + +uw-imap-toolkit (0.1.1-0slp2+5) unstable; urgency=low + + * Modifed debian/control + * Git: 165.213.180.234:/git/slp2.0/slp2.0-pkgs/uw-imap-toolkit-0 + * Tag: uw-imap-toolkit_0.1.1-0slp2+5 + + -- Kyuho Jo Tue, 25 May 2010 20:03:30 +0900 + +uw-imap-toolkit (0.1.1-0slp2+4) unstable; urgency=low + + * Rebuilding for DNET changes + * Git: 165.213.180.234:/git/slp2.0/slp2.0-pkgs/uw-imap-toolkit-0 + * Tag: uw-imap-toolkit_0.1.1-0slp2+4 + + -- Kyuho Jo Wed, 28 Apr 2010 11:22:49 +0900 + +uw-imap-toolkit (0.1.1-0slp2+3) unstable; urgency=low + + * Fix for CPU consumption 100% + * Git: 165.213.180.234:/git/slp2.0/slp2.0-pkgs/uw-imap-toolkit-0 + * Tag: uw-imap-toolkit_0.1.1-0slp2+3 + + -- Kyuho Jo Sun, 25 Apr 2010 17:08:42 +0900 + +uw-imap-toolkit (0.1.1-0slp2+2) unstable; urgency=low + + * Add the script for changing permission and owner + * Git: 165.213.180.234:/git/slp2.0/slp2.0-pkgs/uw-imap-toolkit-0 + * Tag: uw-imap-toolkit_0.1.1-0slp2+2 + + -- Choongho Lee Tue, 20 Apr 2010 15:24:35 +0900 + +uw-imap-toolkit (0.1.1-0slp2+1) unstable; urgency=low + + * Modify to use TOP command for getting header from hotmail server(or the server which doesn't support CAPA command) instead of RETR command. + * Git: 165.213.180.234:/git/slp2.0/slp2.0-pkgs/uw-imap-toolkit-0 + * Tag: uw-imap-toolkit_0.1.1-0slp2+1 + + -- Choongho Lee Tue, 06 Apr 2010 17:42:29 +0900 + +uw-imap-toolkit (0.1.1-0slp2+0) unstable; urgency=low + + * Toolchain Upgrade + * Adapt new version policy + + -- Choongho Lee Thu, 25 Mar 2010 13:18:27 +0900 + +uw-imap-toolkit (0.1.1-0) unstable; urgency=low + + * 1. Increase timeout value of select() in resp_wait() from 60 sec to 180 (160 + a) sec + * 2. Return failure if # of serial profiles is 0 in the case of using SERIAL + + -- Choongho Lee Tue, 23 Mar 2010 18:40:42 +0900 + +uw-imap-toolkit (0.1.0-33) unstable; urgency=low + + * Add mail_lookup_auth_name_smtp() to seperate from pop3 + + -- Choongho Lee Mon, 22 Mar 2010 19:06:34 +0900 + +uw-imap-toolkit (0.1.0-32) unstable; urgency=low + + * Modify _init_dnet_context() not to return error code which occurs if ret == false; + + -- Choongho Lee Mon, 22 Mar 2010 10:22:56 +0900 + +uw-imap-toolkit (0.1.0-31) unstable; urgency=low + + * Modify the process related to select() in resp_wait + + -- Choongho Lee Mon, 08 Mar 2010 19:56:39 +0900 + +uw-imap-toolkit (0.1.0-30) unstable; urgency=low + + * Rebuild for applying dlog and Fix select time out bug + + -- Choongho Lee Thu, 04 Mar 2010 10:33:02 +0900 + +uw-imap-toolkit (0.1.0-29) unstable; urgency=low + + * Set timeout for waiting response from dnet + + -- Kyuho Jo Wed, 03 Mar 2010 17:35:42 +0900 + +uw-imap-toolkit (0.1.0-28) unstable; urgency=low + + * Modify smtp_challenge to treat a reply whose length is only 3. + + -- Choongho Lee Tue, 23 Feb 2010 19:29:19 +0900 + +uw-imap-toolkit (0.1.0-27) unstable; urgency=low + + * Rollback to 0.1.0-25 + + -- Kyuho Jo Tue, 23 Feb 2010 16:40:30 +0900 + +uw-imap-toolkit (0.1.0-26) unstable; urgency=low + + * Rollback to 0.1.0-23 + + -- Choongho Lee Tue, 23 Feb 2010 15:44:08 +0900 + +uw-imap-toolkit (0.1.0-25) unstable; urgency=low + + * Return error code for connection error + + -- Kyuho Jo Tue, 23 Feb 2010 11:50:20 +0900 + +uw-imap-toolkit (0.1.0-24) unstable; urgency=low + + * Modify debian/rules to delete auto created files + + -- Choongho Lee Mon, 22 Feb 2010 19:14:21 +0900 + +uw-imap-toolkit (0.1.0-23) unstable; urgency=low + + * Fix a bug (email-service coyldn't connect AOL SMTP server) + + -- Kyuho Jo Wed, 17 Feb 2010 11:15:59 +0900 + +uw-imap-toolkit (0.1.0-22) unstable; urgency=low + + * Print DNET profile type + + -- Choongho Lee Wed, 03 Feb 2010 20:54:53 +0900 + +uw-imap-toolkit (0.1.0-21) unstable; urgency=low + + * Add USE_PROPER_PROFILE_SELECTION feature : To select dnet profile type + + -- Choongho Lee Wed, 03 Feb 2010 12:31:21 +0900 + +uw-imap-toolkit (0.1.0-20) unstable; urgency=low + + * For DNET update + + -- Kyuho Jo Mon, 01 Feb 2010 10:12:51 +0900 + +uw-imap-toolkit (0.1.0-19) unstable; urgency=low + + * Fix : make _dnet_get_connection_status() return g_dnet_connection_status(), Remove dependency to drm-service + + -- Choongho Lee Thu, 28 Jan 2010 09:25:10 +0900 + +uw-imap-toolkit (0.1.0-18) unstable; urgency=low + + * Separate NET_ERR_NONE and NET_ERR_ACTIVE_CONNECTION_EXISTS in _dnet_connection_open + + -- Choongho Lee Wed, 27 Jan 2010 17:36:08 +0900 + +uw-imap-toolkit (0.1.0-17) unstable; urgency=low + + * Change API/header/define/... to new name + + -- Choongho Lee Tue, 26 Jan 2010 20:37:15 +0900 + +uw-imap-toolkit (0.1.0-16) unstable; urgency=low + + * Add log for Handling exceptional error code, 'already connected' + + -- Choongho Lee Mon, 25 Jan 2010 15:38:01 +0900 + +uw-imap-toolkit (0.1.0-15) unstable; urgency=low + + * Handling exceptional error code for 'already connected'. + + -- Kyuho Jo Fri, 22 Jan 2010 23:56:02 +0900 + +uw-imap-toolkit (0.1.0-14) unstable; urgency=low + + * Change calling API from NetPMAppProfGetProperProfile to NetPMGetDefaultProfileId, Change debug log macro + + -- Choongho Lee Wed, 20 Jan 2010 20:50:11 +0900 + +uw-imap-toolkit (0.1.0-13) unstable; urgency=low + + * Changed logging macro - minor change + + -- Choongho Lee Thu, 14 Jan 2010 18:47:31 +0900 + +uw-imap-toolkit (0.1.0-12) unstable; urgency=low + + * small change - dlog + + -- Choongho Lee Wed, 13 Jan 2010 11:52:34 +0900 + +uw-imap-toolkit (0.1.0-11) unstable; urgency=low + + * Changed logging system to dlog + + -- unknown Mon, 11 Jan 2010 16:49:09 +0900 + +uw-imap-toolkit (0.1.0-10) unstable; urgency=low + + * disable logging + + -- unknown Mon, 04 Jan 2010 17:18:19 +0900 + +uw-imap-toolkit (0.1.0-9) unstable; urgency=low + + * Changed email data path from /opt/dbspace/ums/.email to /opt/.email temporarily + + -- unknown Mon, 04 Jan 2010 16:47:59 +0900 + +uw-imap-toolkit (0.1.0-8) unstable; urgency=low + + * Disable printf logging. + + -- unknown Mon, 04 Jan 2010 14:21:00 +0900 + +uw-imap-toolkit (0.1.0-7) unstable; urgency=low + + * Separated packages : uw-imap-toolkit-dev, uw-imap-toolkit-0 + + -- unknown Fri, 18 Dec 2009 11:14:50 +0900 + +uw-imap-toolkit (0.1.0-6) unstable; urgency=low + + * Public Initial Release. + + -- unknown Thu, 17 Dec 2009 14:37:12 +0900 + +uw-imap-toolkit (0.1.0-5) unstable; urgency=low + + * modified imap-network.h + + -- unknown Wed, 16 Dec 2009 19:16:17 +0900 + +uw-imap-toolkit (0.1.0-4) unstable; urgency=low + + * added .so libraries + + -- unknown Wed, 16 Dec 2009 18:54:38 +0900 + +uw-imap-toolkit (0.1.0-3) unstable; urgency=low + + * modified some header files + + -- unknown Wed, 16 Dec 2009 18:18:32 +0900 + +uw-imap-toolkit (0.1.0-2) unstable; urgency=low + + * add uw-imap-toolkit.pc + + -- unknown Wed, 16 Dec 2009 17:55:43 +0900 + +uw-imap-toolkit (0.1.0-1) unstable; urgency=low + + * Initial Release. + + -- unknown Mon, 14 Dec 2009 17:36:32 +0900 diff --git a/debian/control b/debian/control index 36ea629..8c5840c 100755 --- a/debian/control +++ b/debian/control @@ -16,7 +16,7 @@ Description: IMAP-2007e developed by University of Washington Package: libuw-imap-toolkit-dev Section: libs Architecture: any -Depends: openssl, libuw-imap-toolkit-0, dlog-dev, libvconf-dev +Depends: openssl, libuw-imap-toolkit-0 Description: IMAP-2007e developed by University of Washington IMAP-2007e development library for E-mail Framework XB-Generate-Docs: yes diff --git a/debian/copyright b/debian/copyright index e21197b..0f9c685 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,5 +1,6 @@ ======================================================================== Copyright 1988-2008 University of Washington + Copyright (c) 2000 - 2011 Samsung Electronics Co., Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -7,3 +8,4 @@ http://www.apache.org/licenses/LICENSE-2.0 ======================================================================== + diff --git a/debian/libuw-imap-toolkit-0.postinst b/debian/libuw-imap-toolkit-0.postinst index 75b0329..d1519ea 100755 --- a/debian/libuw-imap-toolkit-0.postinst +++ b/debian/libuw-imap-toolkit-0.postinst @@ -6,11 +6,8 @@ echo "[UW-IMAP-TOOLKIT] Start setting permission ..." # 1. libraries chmod 644 /usr/lib/libuw-imap-toolkit.so.0.0.0 -chmod 644 /usr/lib/libimap-network.so.0.0.0 chmod 644 /usr/lib/libuw-imap-toolkit.so chmod 644 /usr/lib/libuw-imap-toolkit.so.0 -chmod 644 /usr/lib/libimap-network.so.0 -chmod 644 /usr/lib/libimap-network.so echo "[UW-IMAP-TOOLKIT] Finish setting permission." ################################################################# @@ -21,11 +18,8 @@ if [ ${USER} = "root" ] then # 1. libraries chown root:root /usr/lib/libuw-imap-toolkit.so.0.0.0 - chown root:root /usr/lib/libimap-network.so.0.0.0 chown root:root /usr/lib/libuw-imap-toolkit.so chown root:root /usr/lib/libuw-imap-toolkit.so.0 - chown root:root /usr/lib/libimap-network.so.0 - chown root:root /usr/lib/libimap-network.so else echo "[UW-IMAP-TOOLKIT] Can't change owner. USER is not root." fi diff --git a/imap-2007e/c-client/auth_md5.c b/imap-2007e/c-client/auth_md5.c index 7a7d6f1..29ab947 100755 --- a/imap-2007e/c-client/auth_md5.c +++ b/imap-2007e/c-client/auth_md5.c @@ -28,8 +28,6 @@ /* MD5 context */ - - #define MD5BLKLEN 64 /* MD5 block length */ #define MD5DIGLEN 16 /* MD5 digest length */ diff --git a/imap-2007e/c-client/auth_pla.c b/imap-2007e/c-client/auth_pla.c index faf1bb7..4813c4c 100755 --- a/imap-2007e/c-client/auth_pla.c +++ b/imap-2007e/c-client/auth_pla.c @@ -1,6 +1,6 @@ /* ======================================================================== * Copyright 1988-2006 University of Washington - * + * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -59,9 +59,6 @@ long auth_plain_client (authchallenge_t challenger,authrespond_t responder, void *challenge; unsigned long clen; long ret = NIL; -#ifdef _DEBUG_LOG - char tmp[512]; -#endif /* snarl if not SSL/TLS session */ if (!mb->sslflag && !mb->tlsflag) mm_log ("SECURITY PROBLEM: insecure server advertised AUTH=PLAIN",WARN); @@ -88,11 +85,6 @@ long auth_plain_client (authchallenge_t challenger,authrespond_t responder, char *t = response; /* copy authorization id */ memset(response, 0x00, rlen); - -#ifdef _DEBUG_LOG - sprintf (tmp,"auth_plain_client : rlen[%d]", rlen); - mm_log (tmp,WARN); -#endif if (mb->authuser[0]) for (u = user; *u; *t++ = *u++); *t++ = '\0'; /* delimiting NUL */ @@ -113,10 +105,6 @@ long auth_plain_client (authchallenge_t challenger,authrespond_t responder, else { ++*trial; /* can try again if necessary */ ret = LONGT; /* check the authentication */ -#ifdef _DEBUG_LOG - sprintf (tmp,"auth_plain_client : trial[%d]", *trial); - mm_log (tmp,WARN); -#endif } } memset (response,0,rlen); /* erase credentials */ diff --git a/imap-2007e/c-client/imap4r1.c b/imap-2007e/c-client/imap4r1.c index 0cbda0b..d9ebdc4 100755 --- a/imap-2007e/c-client/imap4r1.c +++ b/imap-2007e/c-client/imap4r1.c @@ -1,6 +1,7 @@ /* ======================================================================== * Copyright 1988-2008 University of Washington - * + * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -558,13 +559,22 @@ void imap_list_work (MAILSTREAM *stream,char *cmd,char *ref,char *pat, args[0] = &aref; args[1] = &apat; args[2] = NIL; aref.type = ASTRING; aref.text = (void *) (ref ? ref : ""); apat.type = LISTMAILBOX; apat.text = (void *) pat; - /* referrals armed? */ + +#ifdef __FEATURE_XLIST_SUPPORT__ + if (LOCAL->cap.xlist) { /* xlist? */ + if (!compare_cstring (cmd,"LIST")) cmd = "XLIST"; + } +#endif /* __FEATURE_XLIST_SUPPORT__ */ + + /* referrals armed? */ if (LOCAL->cap.mbx_ref && mail_parameters (stream,GET_IMAPREFERRAL,NIL)) { /* yes, convert LIST -> RLIST */ if (!compare_cstring (cmd,"LIST")) cmd = "RLIST"; /* and convert LSUB -> RLSUB */ else if (!compare_cstring (cmd,"LSUB")) cmd = "RLSUB"; } + + imap_send (stream,cmd,args); } else if (LEVEL1176 (stream)) {/* convert to IMAP2 format wildcard */ @@ -1339,7 +1349,7 @@ void imap_close (MAILSTREAM *stream,long options) void imap_fast (MAILSTREAM *stream,char *sequence,long flags) { /* Open source selected only FT_UID, and ignored other flags sent by application. This is corrected */ -#ifdef __HEADER_OPTIMIZATION__ +#ifdef __FEATURE_HEADER_OPTIMIZATION__ IMAPPARSEDREPLY *reply = imap_fetch (stream,sequence,flags); #else IMAPPARSEDREPLY *reply = imap_fetch (stream,sequence,flags & FT_UID); @@ -1414,7 +1424,7 @@ long imap_overview (MAILSTREAM *stream,overview_t ofn) ov.optional.lines = 0; /* now overview each message */ ov.optional.xref = NIL; if (ofn) for (i = 1; i <= stream->nmsgs; i++) -#ifdef __HEADER_OPTIMIZATION__ +#ifdef __FEATURE_HEADER_OPTIMIZATION__ /* New last parameter 0 or 1 added to identify if the call is to fetch header or fetch body * 0 mean fetch mail header; 1 means fetch mail full body or attachment */ if (((elt = mail_elt (stream,i))->sequence) && @@ -3591,8 +3601,7 @@ IMAPPARSEDREPLY *imap_reply (MAILSTREAM *stream,char *tag) * [g.shyamakshi@samsung.com] Stream->unhealthy check is required to recognize other conditions as well - Unknown body/RFC822 message property, Unexpected tagged response, Junk data (stream invalid), etc * On recognizing stream as unhealthy, no further reply should be parsed. */ - if(stream->unhealthy) - { + if(stream->unhealthy) { break; } } @@ -4062,6 +4071,57 @@ void imap_parse_unsolicited (MAILSTREAM *stream,IMAPPARSEDREPLY *reply) fs_give ((void **) &t); /* flush mailbox name */ } } +#ifdef __FEATURE_XLIST_SUPPORT__ + else if (!strcmp (reply->key,"XLIST") && + reply->text && (*reply->text == '(') && + (s = strchr (reply->text,')')) && (s[1] == ' ')) { + char delimiter = '\0'; + *s++ = '\0'; /* tie off attribute list */ + /* parse attribute list */ + if (t = strtok_r (reply->text+1," ",&r)) do { + if (!compare_cstring (t,"\\NoInferiors")) i |= LATT_NOINFERIORS; + else if (!compare_cstring (t,"\\NoSelect")) i |= LATT_NOSELECT; + else if (!compare_cstring (t,"\\Marked")) i |= LATT_MARKED; + else if (!compare_cstring (t,"\\Unmarked")) i |= LATT_UNMARKED; + else if (!compare_cstring (t,"\\HasChildren")) i |= LATT_HASCHILDREN; + else if (!compare_cstring (t,"\\HasNoChildren")) i |= LATT_HASNOCHILDREN; + + /* Mailbox type attribute*/ + else if (!compare_cstring (t,"\\Inbox")) i |= LATT_XLIST_INBOX; /* RFC 6154 and Gmail */ + else if (!compare_cstring (t,"\\AllMail")) i |= LATT_XLIST_ALL; /* Gmail */ + else if (!compare_cstring (t,"\\All")) i |= LATT_XLIST_ALL; /* RFC 6154 */ + else if (!compare_cstring (t,"\\Drafts")) i |= LATT_XLIST_DRAFTS; /* RFC 6154 and Gmail */ + else if (!compare_cstring (t,"\\Sent")) i |= LATT_XLIST_SENT; /* RFC 6154 and Gmail */ + else if (!compare_cstring (t,"\\Spam")) i |= LATT_XLIST_JUNK; /* Gmail */ + else if (!compare_cstring (t,"\\Junk")) i |= LATT_XLIST_JUNK; /* RFC 6154 */ + else if (!compare_cstring (t,"\\Starred")) i |= LATT_XLIST_FLAGGED; /* Gmail */ + else if (!compare_cstring (t,"\\Flagged")) i |= LATT_XLIST_FLAGGED; /* RFC 6154 */ + else if (!compare_cstring (t,"\\Trash")) i |= LATT_XLIST_TRASH; /* RFC 6154 and Gmail */ + /* ignore extension flags */ + } + while (t = strtok_r (NIL," ",&r)); + switch (*++s) { /* process delimiter */ + case 'N': /* NIL */ + case 'n': + s += 4; /* skip over NIL */ + break; + case '"': /* have a delimiter */ + delimiter = (*++s == '\\') ? *++s : *s; + s += 3; /* skip over */ + } + /* parse the mailbox name */ + if (t = imap_parse_astring (stream,&s,reply,&j)) { + /* prepend prefix if requested */ + if (LOCAL->prefix && ((strlen (LOCAL->prefix) + j) < IMAPTMPLEN)) + sprintf (s = LOCAL->tmp,"%s%s",LOCAL->prefix,(char *) t); + else s = t; /* otherwise just mailbox name */ + /* pass data to main program */ + if (reply->key[1] == 'S') mm_lsub (stream,delimiter,s,i); + else mm_list (stream,delimiter,s,i); + fs_give ((void **) &t); /* flush mailbox name */ + } + } +#endif /* __FEATURE_XLIST_SUPPORT__ */ else if (!strcmp (reply->key,"NAMESPACE")) { if (LOCAL->namespace) { mail_free_namespace (&LOCAL->namespace[0]); @@ -4971,32 +5031,44 @@ unsigned char *imap_parse_string (MAILSTREAM *stream,unsigned char **txtptr, while (i -= j); } if (len) *len = i; /* set return value */ - if (md && mg) { /* have special routine to slurp string? */ - if (md->first) { /* partial fetch? */ - md->first--; /* restore origin octet */ - md->last = i; /* number of octets that we got */ - } - else md->flags |= MG_COPY;/* otherwise flag need to copy */ - string = (*mg) (net_getbuffer,LOCAL->netstream,i,md); - } - else { /* must slurp into free storage */ - string = (char *) fs_get ((size_t) i + 1); - *string = '\0'; /* init in case getbuffer fails */ - /* get the literal */ - if (rp) for (k = 0; j = min ((long) MAILTMPLEN,(long) i); i -= j) { - net_getbuffer (LOCAL->netstream,j,string + k); - (*rp) (md,k += j); - } - else net_getbuffer (LOCAL->netstream,i,string); - } - fs_give ((void **) &reply->line); - if (flags && string) /* need to filter newlines? */ - for (st = string; st = strpbrk (st,"\015\012\011"); *st++ = ' '); - /* get new reply text line */ - if (!(reply->line = net_getline (LOCAL->netstream))) - reply->line = cpystr (""); - if (stream->debug) mm_dlog (reply->line); - *txtptr = reply->line; /* set text pointer to point at it */ + /* illegal string parsing */ + while (c == '}') c = *++*txtptr; + + if (*++*txtptr == ' ') { + string = (char *) fs_get ((size_t) i + 1); + for (j = 0; j < i; j++) { /* copy the string */ + string[j] = *++*txtptr; + } + ++*txtptr; /* bump last char */ + string[j] = '\0'; /* tie off string */ + } else { + if (md && mg) { /* have special routine to slurp string? */ + if (md->first) { /* partial fetch? */ + md->first--; /* restore origin octet */ + md->last = i; /* number of octets that we got */ + } + else md->flags |= MG_COPY;/* otherwise flag need to copy */ + string = (*mg) (net_getbuffer,LOCAL->netstream,i,md); + } + else { /* must slurp into free storage */ + string = (char *) fs_get ((size_t) i + 1); + *string = '\0'; /* init in case getbuffer fails */ + /* get the literal */ + if (rp) for (k = 0; j = min ((long) MAILTMPLEN,(long) i); i -= j) { + net_getbuffer (LOCAL->netstream,j,string + k); + (*rp) (md,k += j); + } + else net_getbuffer (LOCAL->netstream,i,string); + } + fs_give ((void **) &reply->line); + if (flags && string) /* need to filter newlines? */ + for (st = string; st = strpbrk (st,"\015\012\011"); *st++ = ' '); + /* get new reply text line */ + if (!(reply->line = net_getline (LOCAL->netstream))) + reply->line = cpystr (""); + if (stream->debug) mm_dlog (reply->line); + *txtptr = reply->line; /* set text pointer to point at it */ + } break; default: sprintf (LOCAL->tmp,"Not a string: %c%.80s",c,(char *) *txtptr); @@ -5560,6 +5632,9 @@ void imap_parse_capabilities (MAILSTREAM *stream,char *t) else if (!compare_cstring (s,"ANONYMOUS")) LOCAL->cap.authanon = T; } } +#ifdef __FEATURE_XLIST_SUPPORT__ + else if (!compare_cstring (t,"XLIST")) LOCAL->cap.xlist = T; +#endif /* __FEATURE_XLIST_SUPPORT__ */ /* ignore other capabilities */ } /* disable LOGIN if PLAIN also advertised */ @@ -5586,7 +5661,7 @@ IMAPPARSEDREPLY *imap_fetch (MAILSTREAM *stream,char *sequence,long flags) flags & FT_UID); args[0] = &aseq; aseq.type = SEQUENCE; aseq.text = (void *) sequence; args[1] = &aarg; aarg.type = ATOM; -#ifdef __HEADER_OPTIMIZATION__ +#ifdef __FEATURE_HEADER_OPTIMIZATION__ aenv.type = ATOM; aenv.text = (void *) "ENVELOPE"; /* g.shyamakshi@samsung.com - Check FT_SELECTEDHDRS flag to fetch only selected header fields */ ahhr.type = ATOM; diff --git a/imap-2007e/c-client/imap4r1.h b/imap-2007e/c-client/imap4r1.h index 8ee8a18..3f94c68 100755 --- a/imap-2007e/c-client/imap4r1.h +++ b/imap-2007e/c-client/imap4r1.h @@ -90,6 +90,9 @@ typedef struct imap_cap { /* supported authenticators */ unsigned int auth : MAXAUTHENTICATORS; THREADER *threader; /* list of threaders */ +#ifdef __FEATURE_XLIST_SUPPORT__ + unsigned int xlist : 1; +#endif /* __FEATURE_XLIST_SUPPORT__ */ } IMAPCAP; /* IMAP4rev1 level or better */ diff --git a/imap-2007e/c-client/lnx_mail.c b/imap-2007e/c-client/lnx_mail.c index 5c74520..6ed835b 100755 --- a/imap-2007e/c-client/lnx_mail.c +++ b/imap-2007e/c-client/lnx_mail.c @@ -55,28 +55,10 @@ tcp_getdata_lnx(TCPSTREAM* stream) sockid = stream->tcpsi; maxfd = sockid + 1; - //IMAP_DEBUG_LOG("start sockid %d", sockid); if (sockid < 0) return false; while (stream->ictr < 1) { -//#ifdef TEST_CANCEL_JOB -#if 0 - if (!em_core_check_thread_status()) - { - IMAP_DEBUG_EXCEPTION("\t thread canceled...\n"); - tcp_abort(stream); - goto JOB_CANCEL; - } -#endif - - - //if (_g_canceled){ - // IMAP_DEBUG_LOG1("thread canceled\n"); - // tcp_abort(stream); - // return 0; - //} - tmout.tv_usec = 0;//1000*10; tmout.tv_sec = 1; @@ -86,8 +68,6 @@ tcp_getdata_lnx(TCPSTREAM* stream) sret = select(maxfd, &readfds, NULL, NULL, &tmout); if (sret < 0) { - IMAP_DEBUG_LOG("select error [%d]", errno); - tcp_abort(stream); return false; } @@ -107,19 +87,12 @@ tcp_getdata_lnx(TCPSTREAM* stream) if ((nread = read(sockid, stream->ibuf, BUFLEN)) < 0) { IMAP_DEBUG_EXCEPTION("\t socket read failed...\n"); - - //em_core_set_network_error(EMF_ERROR_SOCKET_FAILURE); //TODO: confirm me - - //if (errno==EINTR) contine; tcp_abort(stream); return false; } if (!nread) { IMAP_DEBUG_EXCEPTION("\t socket read no data...\n"); - - //em_core_set_network_error(EMF_ERROR_INVALID_RESPONSE); //TODO: confirm me - tcp_abort(stream); return false; } @@ -128,21 +101,7 @@ tcp_getdata_lnx(TCPSTREAM* stream) stream->iptr = stream->ibuf; } -#if 0 - if (_g_canceled) { - IMAP_DEBUG_EXCEPTION("\t thread canceled...\n"); - - tcp_abort(stream); - return false; - } -#endif - //IMAP_DEBUG_LOG("end"); return true; - -#ifdef TEST_CANCEL_JOB -JOB_CANCEL: - return false; -#endif } /* TCP/IP receive line diff --git a/imap-2007e/c-client/mail.c b/imap-2007e/c-client/mail.c index ac9f916..a4ffc43 100755 --- a/imap-2007e/c-client/mail.c +++ b/imap-2007e/c-client/mail.c @@ -1,6 +1,6 @@ /* ======================================================================== * Copyright 1988-2008 University of Washington - * + * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -1508,7 +1508,7 @@ void mail_fetch_overview_default (MAILSTREAM *stream,overview_t ofn) ov.optional.lines = 0; ov.optional.xref = NIL; for (i = 1; i <= stream->nmsgs; i++) -#ifdef __HEADER_OPTIMIZATION__ +#ifdef __FEATURE_HEADER_OPTIMIZATION__ /* New last parameter 0 or 1 added to identify if the call is to fetch header or fetch body * 0 mean fetch mail header; 1 means fetch mail full body or attachment */ if (((elt = mail_elt (stream,i))->sequence) && @@ -1540,7 +1540,7 @@ void mail_fetch_overview_default (MAILSTREAM *stream,overview_t ofn) /* New last parameter 0 or 1 added to identify if the call is to fetch header or fetch body * 0 mean fetch mail header; 1 means fetch mail full body or attachment */ -#ifdef __HEADER_OPTIMIZATION__ +#ifdef __FEATURE_HEADER_OPTIMIZATION__ ENVELOPE *mail_fetch_structure (MAILSTREAM *stream,unsigned long msgno, BODY **body,long flags,int iDownload) #else @@ -1555,7 +1555,7 @@ ENVELOPE *mail_fetch_structure (MAILSTREAM *stream,unsigned long msgno, unsigned long hdrsize; STRING bs; /* do the driver's action if specified */ -#ifdef __HEADER_OPTIMIZATION__ +#ifdef __FEATURE_HEADER_OPTIMIZATION__ if (stream->dtb && stream->dtb->structure && iDownload == 1) return (*stream->dtb->structure) (stream,msgno,body,flags); #else @@ -1583,7 +1583,7 @@ ENVELOPE *mail_fetch_structure (MAILSTREAM *stream,unsigned long msgno, env = &elt->private.msg.env; b = &elt->private.msg.body; } -#ifdef __HEADER_OPTIMIZATION__ +#ifdef __FEATURE_HEADER_OPTIMIZATION__ if(iDownload==1) { if (stream->dtb && ((body && !*b) || !*env || (*env)->incomplete)) { @@ -2779,7 +2779,7 @@ BODY *mail_body (MAILSTREAM *stream,unsigned long msgno,unsigned char *section) unsigned long i; /* make sure have a body */ -#ifdef __HEADER_OPTIMIZATION__ +#ifdef __FEATURE_HEADER_OPTIMIZATION__ if (section && *section && mail_fetch_structure (stream,msgno,&b,NIL,1) && b) #else if (section && *section && mail_fetchstructure (stream,msgno,&b) && b) @@ -4970,7 +4970,7 @@ THREADNODE *mail_thread_references (MAILSTREAM *stream,char *charset, /* still missing data? */ if (!s->date || !s->subject || !s->message_id || !s->references) { /* try to load data from envelope */ -#ifdef __HEADER_OPTIMIZATION__ +#ifdef __FEATURE_HEADER_OPTIMIZATION__ /* New last parameter 0 or 1 added to identify if the call is to fetch header or fetch body * 0 mean fetch mail header; 1 means fetch mail full body or attachment */ if (env = mail_fetch_structure (stream,s->num,NIL,NIL,0)) diff --git a/imap-2007e/c-client/mail.h b/imap-2007e/c-client/mail.h index 1a31103..138b162 100755 --- a/imap-2007e/c-client/mail.h +++ b/imap-2007e/c-client/mail.h @@ -1,6 +1,6 @@ /* ======================================================================== * Copyright 1988-2008 University of Washington - * + * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -574,6 +574,19 @@ /* has no selectable inferiors */ #define LATT_HASNOCHILDREN (long) 0x40 +#ifdef __FEATURE_XLIST_SUPPORT__ + +#define LATT_XLIST_INBOX (long) 0x0100 /* XLIST - Inbox */ +#define LATT_XLIST_ALL (long) 0x0200 /* XLIST - All or AllMail */ +#define LATT_XLIST_DRAFTS (long) 0x0400 /* XLIST - Drafts */ +#define LATT_XLIST_SENT (long) 0x0800 /* XLIST - Sent */ +#define LATT_XLIST_JUNK (long) 0x1000 /* XLIST - Junk or Spam */ +#define LATT_XLIST_FLAGGED (long) 0x2000 /* XLIST - Flagged or Starred */ +#define LATT_XLIST_TRASH (long) 0x4000 /* XLIST - Trash */ +#define LATT_XLIST_ARCHIVE (long) 0x8000 /* XLIST - Archive */ + +#endif /* __FEATURE_XLIST_SUPPORT__ */ + /* Sort functions */ @@ -743,9 +756,7 @@ typedef struct mail_envelope { #define MESSAGE struct mail_body_message #define PARAMETER struct mail_body_parameter #define PART struct mail_body_part -#ifdef __DOWNLOAD_BODY_ATTACHMENT_OPTIMIZATION__ -#define PARTLIST struct mail_body_part_list -#endif +#define PARTLIST struct mail_body_part_list /* __FEATURE_DOWNLOAD_BODY_ATTACHMENT_OPTIMIZATION__ */ #define PARTTEXT struct mail_body_text /* Message body text */ @@ -802,12 +813,11 @@ PART { PART *next; /* next body part */ }; -#ifdef __DOWNLOAD_BODY_ATTACHMENT_OPTIMIZATION__ +/* __FEATURE_DOWNLOAD_BODY_ATTACHMENT_OPTIMIZATION__ */ PARTLIST{ BODY *body; /* body information for this part */ PART *next; /* next body part */ }; -#endif /* RFC-822 Message */ @@ -1536,14 +1546,14 @@ DRIVER { #define mail_fetchflags(stream,sequence) \ mail_fetch_flags (stream,sequence,NIL) #define mail_fetchflags_full mail_fetch_flags -#ifdef __HEADER_OPTIMIZATION__ +#ifdef __FEATURE_HEADER_OPTIMIZATION__ #define mail_fetchenvelope(stream,msgno) \ mail_fetch_structure (stream,msgno,NIL,NIL,0) #else #define mail_fetchenvelope(stream,msgno) \ mail_fetch_structure (stream,msgno,NIL,NIL) #endif -#ifdef __HEADER_OPTIMIZATION__ +#ifdef __FEATURE_HEADER_OPTIMIZATION__ #define mail_fetchstructure(stream,msgno,body) \ mail_fetch_structure (stream,msgno,body,NIL,0) #else @@ -1661,7 +1671,7 @@ void mail_fetch_overview (MAILSTREAM *stream,char *sequence,overview_t ofn); void mail_fetch_overview_sequence (MAILSTREAM *stream,char *sequence, overview_t ofn); void mail_fetch_overview_default (MAILSTREAM *stream,overview_t ofn); -#ifdef __HEADER_OPTIMIZATION__ +#ifdef __FEATURE_HEADER_OPTIMIZATION__ ENVELOPE *mail_fetch_structure (MAILSTREAM *stream,unsigned long msgno, BODY **body,long flags,int iDownload); #else diff --git a/imap-2007e/c-client/osdep.c b/imap-2007e/c-client/osdep.c index 4aa955c..61a5972 100755 --- a/imap-2007e/c-client/osdep.c +++ b/imap-2007e/c-client/osdep.c @@ -1,6 +1,7 @@ /* ======================================================================== * Copyright 1988-2007 University of Washington - * + * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/imap-2007e/c-client/pop3.c b/imap-2007e/c-client/pop3.c index 4e29d6e..e7fb8f2 100755 --- a/imap-2007e/c-client/pop3.c +++ b/imap-2007e/c-client/pop3.c @@ -1,6 +1,7 @@ /* ======================================================================== * Copyright 1988-2007 University of Washington - * + * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -442,10 +443,7 @@ MAILSTREAM *pop3_open (MAILSTREAM *stream) sprintf(temp, "Pop3_open - mb->apop - %d", mb.apop); mm_log(temp, NIL); - //EM_DEBUG_LOG("Pop3_open - mb->apop - %d", mb.apop); -// printf(" >>>>>>>>>>>>>>>>>>>>>>>> Stream APOP [ %d ]>>>> \n", stream->apop); - if(timestamp && mb.apop != 0) apop = 1; else @@ -456,8 +454,6 @@ MAILSTREAM *pop3_open (MAILSTREAM *stream) apop = 0; } - //EM_DEBUG_LOG(" >>>>>>>>>>>>>>>>>>>>>>>> Stream APOP [ %d ]>>>> \n", apop); - if(apop) { mm_log(timestamp, NIL); diff --git a/imap-2007e/c-client/smtp.c b/imap-2007e/c-client/smtp.c index 0d87090..023464a 100755 --- a/imap-2007e/c-client/smtp.c +++ b/imap-2007e/c-client/smtp.c @@ -1,6 +1,7 @@ /* ======================================================================== * Copyright 1988-2008 University of Washington - * + * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -290,11 +291,6 @@ long smtp_auth (SENDSTREAM *stream,NETMBX *mb,char *tmp) AUTHENTICATOR *at; long ret = NIL; -#ifdef _DEBUG_LOG - sprintf(tmp,"smtp_auth : username[%s], authname[%s]",mb->user, mb->authuser); - mm_log(tmp, NIL); -#endif - for (auths = ESMTP.auth, stream->saslcancel = NIL; !ret && stream->netstream && auths && (at = mail_lookup_auth (find_rightmost_bit (&auths) + 1)); ) { @@ -398,7 +394,7 @@ void *smtp_challenge (void *s,unsigned long *len) char tmp[MAILTMPLEN]; void *ret = NIL; SENDSTREAM *stream = (SENDSTREAM *) s; -#if 1 // for smtp.mail.yahoo.co.kr + // for smtp.mail.yahoo.co.kr if (!strcmp(stream->reply+4, "ok, go on")) { sprintf (tmp,"smtp_challenge : Server bug: non-empty initial PLAIN challenge 3: %.80s",stream->reply+4); mm_log (tmp,WARN); @@ -406,19 +402,13 @@ void *smtp_challenge (void *s,unsigned long *len) *len = 0; // MUST BE return cpystr("ok, go on"); } -#endif -#ifdef _DEBUG_LOG - sprintf (tmp,"smtp_challenge : reply[%s]",stream->reply); - mm_log(tmp, NIL); -#endif -#if 1 // for smtp.naver.com or other servers that reply only "THREE" response digit code whose string length is 3 + // for smtp.naver.com or other servers that reply only "THREE" response digit code whose string length is 3 if ( (stream->replycode == SMTPAUTHREADY) && strlen(stream->reply) <= 3 ) // only response digit code exists in the reply buffer { *len = 0; return cpystr(""); } -#endif if ((stream->replycode == SMTPAUTHREADY) && !(ret = rfc822_base64 ((unsigned char *) stream->reply + 4, strlen (stream->reply + 4),len))) { @@ -441,9 +431,6 @@ long smtp_response (void *s,char *response,unsigned long size) SENDSTREAM *stream = (SENDSTREAM *) s; unsigned long i,j; char *t,*u; -#ifdef _DEBUG_LOG - char tmp[256]; -#endif if (response) { /* make CRLFless BASE64 string */ if (size) { @@ -451,10 +438,6 @@ long smtp_response (void *s,char *response,unsigned long size) j < i; j++) if (t[j] > ' ') *u++ = t[j]; *u = '\0'; /* tie off string */ -#ifdef _DEBUG_LOG - sprintf (tmp,"smtp_response : encoded response to send[%s]", t); - mm_log(tmp, NIL); -#endif i = smtp_send (stream,t,NIL); fs_give ((void **) &t); } @@ -704,11 +687,6 @@ long smtp_send (SENDSTREAM *stream,char *command,char *args) if (args) sprintf (s,"%s %s",command,args); else strcpy (s,command); -#ifdef _DEBUG_LOG - char tmp[512]; - sprintf(tmp, "smtp_send command : [%s]", s); - mm_log(tmp, NIL); -#endif if (stream->debug) mail_dlog (s,stream->sensitive); strcat (s,"\015\012"); /* send the command */ @@ -736,11 +714,6 @@ long smtp_reply (SENDSTREAM *stream) if (stream->reply) fs_give ((void **) &stream->reply); /* get reply */ if (stream->netstream && (stream->reply = net_getline (stream->netstream))) { -#ifdef _DEBUG_LOG - char tmp[512]; - sprintf(tmp, "smtp_reply : reply[%s]", stream->reply); - mm_log(tmp, NIL); -#endif if (stream->debug) mm_dlog (stream->reply); /* return response code */ reply = atol (stream->reply); @@ -871,7 +844,7 @@ static long smtp_seterror (SENDSTREAM *stream,long code,char *text) } -#ifdef __SEND_OPTMIZATION__ +#ifdef __FEATURE_SEND_OPTMIZATION__ /* Simple Mail Transfer Protocol filter mail * Accepts: stream * string diff --git a/packaging/uw-imap-toolkit.spec b/packaging/uw-imap-toolkit.spec index 5b7e231..71fbbea 100644 --- a/packaging/uw-imap-toolkit.spec +++ b/packaging/uw-imap-toolkit.spec @@ -1,10 +1,11 @@ +#sbs-git:slp/pkgs/u/uw-imap-toolkit uw-imap-toolkit 0.1.1 a675e5c581b6726dcb93c63d826d6827bf29d671 %define _optdir /opt %define _appdir %{_optdir}/apps Name: uw-imap-toolkit Summary: IMAP-2007e developed by University of Washington -Version: 0.1.1 +Version: 0.1.1 Release: 0 Group: TO_BE/FILLED_IN License: TO BE FILLED IN -- 2.7.4