aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-07-22 03:48:43 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-07-22 03:48:43 +0800
commit908df637f32ce2cb2688062fbe41792608c83e21 (patch)
tree11921c75392559dbe1b58de3f87ef49d085c76ac /camel
parentdcd508a9a1959d54034b088481e6e4221cd17e31 (diff)
downloadgsoc2013-evolution-908df637f32ce2cb2688062fbe41792608c83e21.tar.gz
gsoc2013-evolution-908df637f32ce2cb2688062fbe41792608c83e21.tar.zst
gsoc2013-evolution-908df637f32ce2cb2688062fbe41792608c83e21.zip
Updated with some of the same fixes I've made to camel-imap-folder.c like
2000-07-21 Jeffrey Stedfast <fejj@helixcode.com> * providers/imap/camel-imap-stream.c (stream_read): Updated with some of the same fixes I've made to camel-imap-folder.c like recalculating message part lengths. svn path=/trunk/; revision=4266
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog4
-rw-r--r--camel/providers/imap/camel-imap-stream.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 74b3ce3b8d..6deb5a1d91 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,9 @@
2000-07-21 Jeffrey Stedfast <fejj@helixcode.com>
+ * providers/imap/camel-imap-stream.c (stream_read): Updated with some of the
+ same fixes I've made to camel-imap-folder.c like recalculating message part
+ lengths.
+
* providers/imap/camel-imap-store.c (camel_imap_command_extended): Rewrote
the code to check for "* %d RECENT". Still needs to be modified, but should
no longer cause an infinite loop by detecting mis-detecting RECENT messages.
diff --git a/camel/providers/imap/camel-imap-stream.c b/camel/providers/imap/camel-imap-stream.c
index 9f45ed2291..eb0a48a735 100644
--- a/camel/providers/imap/camel-imap-stream.c
+++ b/camel/providers/imap/camel-imap-stream.c
@@ -168,10 +168,10 @@ stream_read (CamelStream *stream, char *buffer, size_t n)
if (*q == '\n')
part_len--;
}
- /* we want to make sure we get up to the last \n */
- for ( ; *q && *q != '\n'; q++, part_len++);
+ /* FIXME: This is a hack for IMAP daemons that send us a UID at the end of each FETCH */
+ for (q--, part_len--; q > p && *(q-1) != '\n'; q--, part_len--);
- imap_stream->cache = g_strndup (p, part_len);
+ imap_stream->cache = g_strndup (p, part_len + 1);
g_free (result);
imap_stream->cache_ptr = imap_stream->cache;
mulators?h=mate-1.16&id=25f70b1c10f891aa79af1b3e1a57a67dfe18714c'>- Remove the dynticks patch for now, it seems to cause even worse timingnox2009-09-054-198/+107 * The --without-libgsm configure option is (now) called --without-gsm.gerald2009-09-032-4/+4 * Update to Wine 1.1.29. Among others, this includes the following changes:gerald2009-09-036-12/+22 * - Update to 7.5miwi2009-09-032-4/+4 * - Retire MASTER_SITE_SOURCEFORGE_EXTENDED, it's no longer needed - all mirror...amdmi32009-09-022-4/+2 * . update to version 3.1.25;bsam2009-08-313-36/+47 * - Update to v50miwi2009-08-292-4/+4 * Add ports with kernel modules to 'kld' virtual category.bland2009-08-263-3/+3 * - Fix build for FreeBSD 8dinoex2009-08-251-5/+4 * Update to Wine 1.1.28. Among others, this includes the following changes:gerald2009-08-236-10/+774 * - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-2236-57/+37 * Bump PORTREVISIONs of the gnutls dependant ports to chase gnutls update.novel2009-08-172-1/+2 * Mark as only for amd64 and i386.linimon2009-08-151-0/+2 * - Update to 0.133u2miwi2009-08-1510-32/+34 * - Update to 3.0.51r22226beat2009-08-1545-175/+3045 * Configure --without-libgsm which avoids a warning message.gerald2009-08-122-2/+4 * - Add option for libao supportamdmi32009-08-111-17/+22 * . update packages to the most recent:bsam2009-08-096-62/+64 * Update to Wine 1.1.27. Among others, this includes the following changes:gerald2009-08-086-8/+26 * A full-system simulation infrastructure and toolsbsam2009-08-045-0/+413 * -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-036-6/+86 * - Reset maintainer and remove old MASTER_SITES.wxs2009-08-021-1/+1 * - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-3127-21/+27 * bsnes is an emulator that began development on 2004-10-14.amdmi32009-07-297-0/+193 * - Mark BROKEN on 6.Xpav2009-07-281-0/+4 * - Update to 0.133miwi2009-07-278-18/+40 * - Update to 0.1333miwi2009-07-278-30/+32 * - Update to 0.28pgollucci2009-07-232-5/+4 * - Update to 3.0.0pgollucci2009-07-212-8/+8 * o Fix -m 0001.0002.0003 (cisco format) option issue.nork2009-07-213-8/+42 * Update to Wine 1.1.26. Among others, this includes the following changes:gerald2009-07-196-36/+24 * Update to 0.10.6 - from the official announcement:nox2009-07-192-4/+4 * - update to jpeg7dinoex2009-07-186-9/+12 * Update to Wine 1.1.25. Among others, this includes the following changes:gerald2009-07-076-8/+18 * Bump PORTREVISION after libogg and libvorbisfile major version increment.naddy2009-07-073-2/+3 * - Update to 0.73miwi2009-07-052-6/+5 * Really remove obsoleted patch file this timejohans2009-07-031-11/+0 * - Update to 0.7.2johans2009-07-033-26/+67 * - Update CONFLICTSgabor2009-06-272-2/+2 * Update to Wine 1.1.24. Among others, this includes the following changes:gerald2009-06-208-12/+18 * Update maintainer's email address. Had already been done for hislinimon2009-06-201-1/+1 * - Update to 2.8acm2009-06-183-4/+5 * - Add GID and UID for emulators/virtualbox.beat2009-06-185-10/+10 * Fix dependency on gtkmmmbr2009-06-181-1/+2 * - Fix plistnox2009-06-1610-5/+10 * - Actually install VBoxTestOGL (it was built, just not installed...)nox2009-06-1615-10/+70 * - Restore VBoxGuestAdditionsmiwi2009-06-165-0/+15 * VirtualBox is a family of powerful x86 virtualization products formiwi2009-06-1646-0/+1731