[#8092] Use CATENATE extension to strip MIME parts
Summary Use CATENATE extension to strip MIME parts
Queue IMP
Queue Version Git master
Type Enhancement
State Accepted
Priority 1. Low
Owners
Requester Michael Slusarz <slusarz (at) horde (dot) org>
Created 03/17/09 (360 days ago)
Due
Updated 04/30/09 (316 days ago)
Assigned
Resolved
Attachments
Milestone
Patch No

History
04/30/09 Jan Schneider State ⇒ Accepted
 
03/17/09 Michael Slusarz Comment #1
State ⇒ New
Patch ⇒
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ Use CATENATE extension to strip MIME parts
Type ⇒ Enhancement
Priority ⇒ 1. Low
Reply to this comment
If CATENATE IMAP extension is available, use it to strip MIME parts.   
From Appendix A of RFC 4469:



    Example 3: The following example demonstrates how the CATENATE

    extension can be used to strip attachments.  Below, a PowerPoint

    attachment was replaced by a small text part explaining that the

    attachment was stripped.



    C: A003 APPEND Drafts (\Seen \Draft $MDNSent) CATENATE

     (URL "/Drafts;UIDVALIDITY=385759045/;UID=21/;section=HEADER"

     TEXT {42}

    S: + Ready for literal data

    C:

    C: --------------030308070208000400050903

    C:  URL "/Drafts;UIDVALIDITY=385759045/;UID=21/;section=1.MIME"

     URL "/Drafts;UIDVALIDITY=385759045/;UID=21/;section=1" TEXT {255}

    S: + Ready for literal data

    C:

    C: --------------030308070208000400050903

    C: Content-type: text/plain; charset="us-ascii"

    C: Content-transfer-encoding: 7bit

    C:

    C: This body part contained a Power Point presentation that was

    C: deleted upon your request.

    C: --------------030308070208000400050903--

    C: )

    S: A003 OK append Completed