FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » comment utiliser l'addresse book de thunderbird
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
comment utiliser l'addresse book de thunderbird [message #174332] Sun, 05 June 2011 09:06 Go to next message
Andre[1] is currently offline  Andre[1]
Messages: 7
Registered: June 2011
Karma: 0
Junior Member
How to access the thunderbird's address book.
I am writing a script that send a file by e-mail, and I would like to
select e-mail adresses from thunderbird. Is there a way to do this either
in php or in perl.
Many thanks in advances
Andre
Re: comment utiliser l'addresse book de thunderbird [message #174334 is a reply to message #174332] Sun, 05 June 2011 12:37 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 6/5/2011 5:06 AM, Andre wrote:
> How to access the thunderbird's address book.
> I am writing a script that send a file by e-mail, and I would like to
> select e-mail adresses from thunderbird. Is there a way to do this either
> in php or in perl.
> Many thanks in advances
> Andre

No. PHP runs on the server. The address book is on the client. Server
scripts cannot access resources on the client.

And for security reasons, not even a client-side language such as
javascript can access it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: comment utiliser l'addresse book de thunderbird [message #174336 is a reply to message #174332] Sun, 05 June 2011 18:09 Go to previous messageGo to next message
Peter H. Coffin is currently offline  Peter H. Coffin
Messages: 245
Registered: September 2010
Karma: 0
Senior Member
On 05 Jun 2011 09:06:48 GMT, Andre wrote:
> How to access the thunderbird's address book.
> I am writing a script that send a file by e-mail, and I would like to
> select e-mail adresses from thunderbird. Is there a way to do this either
> in php or in perl.

Bearing in mind Jerry's caveat that you can't do this from a website
to a client at all, you can have a script on your machine, running php
there, to read your own Mozilla address boo. The file format that the
mozilla address books are in is a Mork file database, which is a very
elaborate text format that can be easily parse into data sturctures.
There's parser libraries for perl, python, c++ but not yet for php. Some
details of the format can be found at https://wiki.mozilla.org/Mork .

--
If you've got the luxury to kvetch about having to reinstall software or
do yardwork, life's okay.
Re: comment utiliser l'addresse book de thunderbird [message #174338 is a reply to message #174332] Sun, 05 June 2011 21:31 Go to previous messageGo to next message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma: 0
Senior Member
On Sun, 05 Jun 2011 09:06:48 +0000, Andre wrote:

> How to access the thunderbird's address book. I am writing a script that
> send a file by e-mail, and I would like to select e-mail adresses from
> thunderbird. Is there a way to do this either in php or in perl.
> Many thanks in advances
> Andre

You sound like you could be a spammer who has discovered that thunderbird/
firefox, unlike outlook / explorer, does not allow your trojan scripts to
raid address books from the web browser and send out your spam emails.

Why should we exercise ourselves to help you find a way around this
commendable security feature?

Rgds

Denis McMahon
Re: comment utiliser l'addresse book de thunderbird [message #174342 is a reply to message #174338] Mon, 06 June 2011 09:22 Go to previous message
Andre[1] is currently offline  Andre[1]
Messages: 7
Registered: June 2011
Karma: 0
Junior Member
Le Sun, 05 Jun 2011 21:31:31 +0000, Denis McMahon a écrit :

> On Sun, 05 Jun 2011 09:06:48 +0000, Andre wrote:
>
>> How to access the thunderbird's address book. I am writing a script
>> that send a file by e-mail, and I would like to select e-mail adresses
>> from thunderbird. Is there a way to do this either in php or in perl.
>> Many thanks in advances
>> Andre
>
> You sound like you could be a spammer who has discovered that
> thunderbird/ firefox, unlike outlook / explorer, does not allow your
> trojan scripts to raid address books from the web browser and send out
> your spam emails.
>
> Why should we exercise ourselves to help you find a way around this
> commendable security feature?
>
> Rgds
>
> Denis McMahon

I should have told that, I run a linux server with apache, php, mysql and
I also use it as my own pc with thunderbird, an firefox.
Many thanks for the answers.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: syntax question
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 03:37:34 GMT 2024

Total time taken to generate the page: 0.02371 seconds