tags:

views:

3

answers:

0

I am using PHP's IMAP functions to parse mail in a POP3 mailbox, parsing out the attachments. After reading the attachments, I need to move the file to another mailbox. Since POP3 mailboxes don't support imap_mail_move, I'm having to come up with another solution.

Well, my mail is in MailDir format so I know I can get to the actual mail files. The problem I'm having is that I don't know, when I read the message via IMAP, which mail FILE I have open and don't know how to get the maildir index or filename for the current message using IMAP functions.

I can read the index db file to find the file name if I can get the index from the message.

I can see no way of doing this, is it possible at all?