Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

send data from Thunderbird to Firefox - how?

1 view
Skip to first unread message

Frank R. Suchy

unread,
Sep 7, 2008, 11:06:19 AM9/7/08
to
Hi all,

is there a convenient way to send data from Thunderbird to Firefox?

My extension T should send some data from a mail body to Firefox where
another extension F picks it up and calls a web page and fills a form
accoridngly.

I don't want to use the clipboard.
So I guess I have to write a file somewhere...

- is there some direct way for Thunderbird and Firefox to communicate
with each other?

- How can T notify Firefox of new data?
- I'm not yet familiar with using the filesystem from extensions...
- how can T find out about Firefox's profile folder(s)?

Many thanks in advance!
Frank

white...@fastmail.us

unread,
Sep 7, 2008, 12:50:57 PM9/7/08
to
Frank,

My addon, ThunderbirdBiff does something along these lines. It uses a
socket connection for IPC.

David

Eric H. Jung

unread,
Sep 7, 2008, 12:55:00 PM9/7/08
to dev-extensions

----- Original Message ----
> From: Frank R. Suchy <such...@gmx.de>


> - is there some direct way for Thunderbird and Firefox to communicate
> with each other?
>
> - How can T notify Firefox of new data?
> - I'm not yet familiar with using the filesystem from extensions...
> - how can T find out about Firefox's profile folder(s)?

You could use standard cross-platform inter-process communication mechanisms--sockets come to mind--but there's no guarantee that Firefox is running and listening on the socket when you want to send it data.



white...@fastmail.us

unread,
Sep 7, 2008, 1:07:52 PM9/7/08
to

This is true but I "solved" it by having TB create the listener socket
and having FF connect to it. This way, if FF starts before TB, the
socket connection fails - it then retries periodically. If TB starts
before FF, it knows that it has no clients and can simply avoid trying
to send anything. It all works pretty well in my addon.

0 new messages