I'm working on a dovecot plugin. What's the easiest way to read a specific mail header like "To" or "From"? Cheers /Lars
On Mon, 2007-10-01 at 09:19 +0200, Lars Stavholm wrote:> I'm working on a dovecot plugin. > > What's the easiest way to read a specific > mail header like "To" or "From"?You know you could look into my plugin which does this ;) Look at mail_get_first_header() and friends. johannes -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 828 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20071001/d5fcf04c/attachment-0002.bin>
Johannes Berg wrote:> On Mon, 2007-10-01 at 09:19 +0200, Lars Stavholm wrote: >> I'm working on a dovecot plugin. >> >> What's the easiest way to read a specific >> mail header like "To" or "From"? > > You know you could look into my plugin which does this ;)That was kinda' the obvious answer. I did however ask for the easiest way of doing it. Now, that might be the stuff in your code, but again it might not. How am I to know? Thus the question.> Look at mail_get_first_header() and friends.Yes, of course, thanks. /L