Bug#584535: Patch for OfflineIMAP to handle multi-line headers

2010-09-07 Thread Roland Mas
tag 584525 + patch
thanks

The problem mentioned in bug #584535 seems to be that OfflineIMAP
doesn't understand multi-line headers.  The following patch (based on
6.2.0.2-2 from Sid) addresses that problem:

--- offlineimap/folder/IMAP.py.old  2010-09-07 14:15:48.0 +0200
+++ offlineimap/folder/IMAP.py  2010-09-07 14:37:31.0 +0200
@@ -234,6 +234,9 @@
  'savemessage_addheader: called to add %s: %s' % (headername,
   headervalue))
 insertionpoint = content.find("\r\n")
+while ((insertionpoint > 0) and (content[insertionpoint+2].isspace())):
+i = content[insertionpoint+2:].find("\r\n")
+insertionpoint += i+2
 ui.debug('imap', 'savemessage_addheader: insertionpoint = %d' % 
insertionpoint)
 leader = content[0:insertionpoint]
 ui.debug('imap', 'savemessage_addheader: leader = %s' % repr(leader))

Roland.
-- 
Roland Mas

Certains disent que les vrais hommes ne font pas de backups.
Mais ils disent aussi que même les vrais hommes pleurent parfois.



--
To UNSUBSCRIBE, email to debian-qa-packages-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/87vd6haft8@mirexpress.internal.placard.fr.eu.org



Bug#147296: BSP -- patch and delayed upload

2003-03-15 Thread Roland Mas
tag 147296 + pending
tag 147269 + patch
thanks

Hi,

A bug-squashing party is happening.  I took the liberty of fixing this
bug.  I'm about to upload 1.2.1-29.1 to a 7-day delayed upload queue,
and I attach my patch, in case you had a regular upload planned.

Roland.

diff -ur jade-1.2.1.old/debian/changelog jade-1.2.1/debian/changelog
--- jade-1.2.1.old/debian/changelog 2003-03-15 20:57:13.0 +0100
+++ jade-1.2.1/debian/changelog 2003-03-15 21:15:50.0 +0100
@@ -1,3 +1,10 @@
+jade (1.2.1-29.1) unstable; urgency=low
+
+  * Non-maintainer upload during bug-squashing party.
+  * Update SGML catalogs on remove (closes: #147296).
+
+ -- Roland Mas <[EMAIL PROTECTED]>  Sat, 15 Mar 2003 21:15:50 +0100
+
 jade (1.2.1-29) unstable; urgency=low
 
   * Orphan package (revert maint. to qa group) upstream inactive
diff -ur jade-1.2.1.old/debian/jade.prerm jade-1.2.1/debian/jade.prerm
--- jade-1.2.1.old/debian/jade.prerm2003-03-15 20:57:13.0 +0100
+++ jade-1.2.1/debian/jade.prerm2003-03-15 21:20:14.0 +0100
@@ -2,10 +2,17 @@
 
 set -e
 
+PACKAGE=jade
+
+# this file will be automatically created
+CENTRALCAT=/etc/sgml/${PACKAGE}.cat
+
 case "$1" in
 remove|deconfigure|upgrade)
# remove jade catalog
install-sgmlcatalog --remove jade
+# remove our central catalog from the super catalog
+update-catalog --quiet --remove --super ${CENTRALCAT}
 ;;
 esac
 
-- 
Roland Mas

Et c'est tellement plus mignon de se faire traiter de con en chanson...
  -- in En chantant (Michel Sardou)