2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
+ * nnimap.el (nnimap-insert-partial-structure): Be way more permissive
+ when interpreting the structures.
+
* nnregistry.el: Added.
* nndraft.el (nndraft-request-expire-articles): Use the group name
(defun nnimap-insert-partial-structure (structure parts &optional subp)
(let ((type (car (last structure 4)))
- (boundary (cadr (member "BOUNDARY" (car (last structure 3))))))
+ (boundary (let ((bstruc structure))
+ (while (consp (car bstruc))
+ (pop bstruc))
+ (setq bstruc (car (cdr bstruc)))
+ (and (stringp (car bstruc))
+ (string= (downcase (car bstruc)) "boundary")
+ (cadr bstruc)))))
(when subp
(insert (format "Content-type: multipart/%s; boundary=%S\n\n"
(downcase type) boundary)))