From: Matthias A. <mat...@gm...> - 2006-11-10 08:36:12
|
David Davis <dda...@ya...> writes: > Does fetchmail have anyway to modify the email that it > retrieves/resends? Not something that you could script - you'll have to hook up your own scripts. > For instance, I need to move messages from an IMAP server to a POP server via > SMTP. (Don't ask.) > > Anyway, the messages on the IMAP server are in folders, and I need someway to > tell the POP client from where the message originated. (Need to add a prefix > to the the subject line, and add an internal 'x-orig-folder:' header) You can use one of the tiny sendmail-to-SMTP clients (too many to list) along with a shell script and use this shell script as "mda" to fetchmail. Adding said header can be done with reformail which ships in Sam Varshavchik's "maildrop" package. HTH, -- Matthias Andree |