From 84588282684982cdac7e80ddb6ebf042f8721cb1 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Mon, 31 Jan 2011 16:04:37 +0100 Subject: [PATCH] libetpan: added fixes for certain imap functions --- .../libetpan/0001-fix-searchkey-subject.patch | 41 +++++++++++++++++++ mail/libetpan/0002-fix-date_time_new.patch | 41 +++++++++++++++++++ mail/libetpan/0003-fix-date_time_send.patch | 41 +++++++++++++++++++ 3 files changed, 123 insertions(+) create mode 100644 mail/libetpan/0001-fix-searchkey-subject.patch create mode 100644 mail/libetpan/0002-fix-date_time_new.patch create mode 100644 mail/libetpan/0003-fix-date_time_send.patch diff --git a/mail/libetpan/0001-fix-searchkey-subject.patch b/mail/libetpan/0001-fix-searchkey-subject.patch new file mode 100644 index 000000000..dba2aa50a --- /dev/null +++ b/mail/libetpan/0001-fix-searchkey-subject.patch @@ -0,0 +1,41 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../libetpan/0001-fix-searchkey-subject.patch +# Copyright (C) 2011 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or 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. +# --- SDE-COPYRIGHT-NOTE-END --- + +From ec8835073ad1da456d007c9a20366968cda32b6b Mon Sep 17 00:00:00 2001 +From: Nadeem Shehzad +Date: Tue, 25 Jan 2011 12:04:33 +0100 +Subject: [PATCH 1/3] fix: searchkey subject corrected by passing correct type "subject" instead of "since". + +--- + src/low-level/imap/mailimap_types_helper.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/src/low-level/imap/mailimap_types_helper.c b/src/low-level/imap/mailimap_types_helper.c +index 7f0934b..b84e542 100644 +--- a/src/low-level/imap/mailimap_types_helper.c ++++ b/src/low-level/imap/mailimap_types_helper.c +@@ -800,7 +800,7 @@ mailimap_search_key_new_since(struct mailimap_date * sk_since) + struct mailimap_search_key * + mailimap_search_key_new_subject(char * sk_subject) + { +- return mailimap_search_key_new(MAILIMAP_SEARCH_KEY_SINCE, NULL, NULL, ++ return mailimap_search_key_new(MAILIMAP_SEARCH_KEY_SUBJECT, NULL, NULL, + NULL, NULL, NULL, NULL, NULL, NULL, + sk_subject, NULL, NULL, NULL, NULL, + NULL, 0, NULL, +-- +1.6.3.3 + diff --git a/mail/libetpan/0002-fix-date_time_new.patch b/mail/libetpan/0002-fix-date_time_new.patch new file mode 100644 index 000000000..5727c4af9 --- /dev/null +++ b/mail/libetpan/0002-fix-date_time_new.patch @@ -0,0 +1,41 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../libetpan/0002-fix-date_time_new.patch +# Copyright (C) 2011 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or 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. +# --- SDE-COPYRIGHT-NOTE-END --- + +From 5ba50e1a12d0ac27d2158d0c9546f4adde888568 Mon Sep 17 00:00:00 2001 +From: Nadeem Shehzad +Date: Tue, 25 Jan 2011 12:09:38 +0100 +Subject: [PATCH 2/3] fix: date_time_new by correcting seconds assingment to dt_sec rather than dt_day. + +--- + src/low-level/imap/mailimap_types.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/src/low-level/imap/mailimap_types.c b/src/low-level/imap/mailimap_types.c +index aee05de..322846b 100644 +--- a/src/low-level/imap/mailimap_types.c ++++ b/src/low-level/imap/mailimap_types.c +@@ -836,7 +836,7 @@ mailimap_date_time_new(int dt_day, int dt_month, int dt_year, int dt_hour, + date_time->dt_year = dt_year; + date_time->dt_hour = dt_hour; + date_time->dt_min = dt_min; +- date_time->dt_day = dt_sec; ++ date_time->dt_sec = dt_sec; + date_time->dt_zone = dt_zone; + + return date_time; +-- +1.6.3.3 + diff --git a/mail/libetpan/0003-fix-date_time_send.patch b/mail/libetpan/0003-fix-date_time_send.patch new file mode 100644 index 000000000..f5951b3c5 --- /dev/null +++ b/mail/libetpan/0003-fix-date_time_send.patch @@ -0,0 +1,41 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../libetpan/0003-fix-date_time_send.patch +# Copyright (C) 2011 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or 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. +# --- SDE-COPYRIGHT-NOTE-END --- + +From 5e442095eb236f81a50f61ce0c37079c40c0d501 Mon Sep 17 00:00:00 2001 +From: Nadeem Shehzad +Date: Tue, 25 Jan 2011 12:14:53 +0100 +Subject: [PATCH 3/3] fix: date_time_send by assigning correct value to date_year_send i.e. send rather than month. + +--- + src/low-level/imap/mailimap_sender.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/src/low-level/imap/mailimap_sender.c b/src/low-level/imap/mailimap_sender.c +index 8c9f6e6..3ab5603 100644 +--- a/src/low-level/imap/mailimap_sender.c ++++ b/src/low-level/imap/mailimap_sender.c +@@ -907,7 +907,7 @@ mailimap_date_time_send(mailstream * fd, + if (r != MAILIMAP_NO_ERROR) + return r; + +- r = mailimap_date_year_send(fd, date_time->dt_month); ++ r = mailimap_date_year_send(fd, date_time->dt_year); + if (r != MAILIMAP_NO_ERROR) + return r; + +-- +1.6.3.3 +