| Description: |
When using BODY.PEEK[*] as a parameter, this seems to break imaptotcl_symbol due to the nested '[]' in the imap response. The match is incorrect (regex and nested patterns not a good mix) and the subsequent data var is incorrectly updated.
When using just BODY, than all seems fine:The line "1 FETCH (BODY[HEADER.FIELDS (BODY FROM)] {46})" is processed and the element "BODY[HEADER.FIELDS (BODY FROM)]" is set, and appended to the list that is eventually returned to the proc prcoessfetchline, from 'imaptotcl'.
Using BODY.PEEK[1], breaks that flow, setting the element to 'BODY', then 'HEADER.FIELDS', then 'S', then 'BODY.PEEK[1] FROM)]', which fails.
Example usage:
set fields {BODY from:}
imap4::fetch $chan :1 -inline {*}$fields - Ok
set fields {BODY.PEEK[1] from:}
imap4::fetch $chan :1 0inline {*}$fields - fails
|