[RCD] Arbitrary email headers

Thomas Bruederli thomas at roundcube.net
Fri Oct 17 11:30:08 CEST 2014

Hello Mike

I don't quiet understand the problem. Roundcube parses *all* headers
when loading a message. You can access them through
$MESSAGE->headers->get('X-Your-Header'). Only when fetching headers
for the message list, the number of headers is limited to a set we
actually use for the list display. Maybe that's what you're referring
to. But here you can use a plugin hook to tell Roundcube to fetch
additional headers from IMAP. See
http://trac.roundcube.net/wiki/Plugin_Hooks#storage_init. Just
register to that plugin hook and append your header to the
'fetch_headers' argument.

If that doesn't yet solve your problem, please post a more information
about what you're intending to do, maybe along with some of your code.

Kind regards,

On Fri, Oct 17, 2014 at 2:24 AM, W. Michael Petullo <mike at flyn.org> wrote:
> From what I can tell, Roundcube has a fixed set of email subjects that it
> parses. I am interested in modifying Ythan's MoveSpam plugin to consider
> bogofilter's X-Bogosity header (which Roundcube does not parse) instead
> of a tagged Subject header.
> Is there any interest in adding to Roundcube the ability to parse
> arbitrary email headers? Is there a good reason that Roundcube only
> supports a fixed set of headers?
> Thank you,
> --
> Mike
> :wq
> _______________________________________________
> Roundcube Development discussion mailing list
> dev at lists.roundcube.net
> http://lists.roundcube.net/mailman/listinfo/dev

More information about the dev mailing list