Subject: | get_bodystructure fails |
Date: | Tue, 20 Nov 2007 16:26:54 +0100 |
To: | bug-Mail-IMAPClient [...] rt.cpan.org |
From: | Jakob Hirsch <jh [...] plonk.de> |
Hi,
I'm using Mail::IMAPClient 2.2.9 to store and fetch messages witch MIME
parts. Unfortunately, get_bodystructure simply returns undef when I
connect to our IMAP server. I tried it with another server (dovecot),
where it runs fine. With debug mode enabled, I tracked it down to the
server's response to the FETCH BODYSTRUCTURE:
dovecot (works):
Show quoted text
> get_bodystructure: reassembled output=1* 1 FETCH (BODYSTRUCTURE (("audio" "wav" ("name" "1195501023.30329.497213357499.wav") NIL NIL "base64" 66858 NIL ("attachment" ("filename" "1195501023.30329.497213357499.wav")) NIL) "mixed" ("boundary" "----------=_1195501026-30329-0") NIL NIL))
our server (does not work):
Show quoted text> get_bodystructure: reassembled output=1* 1 FETCH (BODYSTRUCTURE (("AUDIO" "wav" ("name" "1195501023.30329.497213357499.wav") NIL NIL "BASE64" 66858 NIL ("attachment" ("filename" "1195501023.30329.497213357499.wav")) NIL NIL) "mixed" ("boundary" "----------=_1195501026-30329-0") NIL NIL NIL))
So there's are two additional "nil" in the response, which
Mail::IMAPClient seems to dislike. I don't know if this is a mistake of
our IMAP server (it's ok for all the various MUAs that are used with it,
but that's probably not a strong indicator) or of the module.
Of you need further information, I'll be happy to give it.
Thanks for any hint/help in advance!
Regards,
Jakob