php - Edit an email subject line (IMAP) -


i trying integrate imap email processing in house system bases uses off of subject line / email content.

we need able change text of subject line before moving email new folder. what/where place start?

i've had around , possible in manual sense, via thunderbird plugin or using outlook. can't seem find relevant example in php, or other language matter. hear idea flakey @ best need modify email content , upload imap server.

the outlook implementation seems delete original , save new 1 imap folder on server.

side note: yes know weird requirement, , although forwarding email ourselves moving our fall plan not liked moves original headers useful things reply-all.

any suggestions appreciated.

ps if i'm blind , there obvious i'm missing in manual let me know.

do have code built handle email processing? imap subject line information stored header need utilize php functions of imap_headerinfo() and/or imap_fetchheader() depending on functionality you're looking achieve this. have php check each message header , if matches x format, remove message, , create new 1 appropriately modified header information.


Comments