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

Send Automatically email by Command Line Interface

1,283 views
Skip to first unread message

Olivier Parniere

unread,
Sep 4, 2007, 11:14:26 AM9/4/07
to
Hi,

I try to send a message without click to the Send Button with the CLI

With this command, a message compose window is displayed, But I need
to click the Send Button :

./thunderbird -compose "to=f...@nowhere3.net,subject=foo,body=foo"

is there a way to automatically compose and send a message? like a "-
composeAndSend modifier"

Thanks

Andrew DeFaria

unread,
Sep 4, 2007, 11:39:55 AM9/4/07
to
Why not just talk directly to the email server and send the mail that way? There are many Perl modules that will do that for you (with a little bit of coding on your side).
--
Andrew DeFaria
Patience has its limits. Take it too far, and it's cowardice. - George Jackson

Olivier Parniere

unread,
Sep 4, 2007, 11:57:53 AM9/4/07
to
On 4 sep, 17:39, Andrew DeFaria <And...@DeFaria.com> wrote:
> Olivier Parniere wrote:
> > Hi,
>
> > I try to send a message without click to the Send Button with the CLI
>
> > With this command, a message compose window is displayed, But I need
> > to click the Send Button :
>
> > ./thunderbird -compose "to=...@nowhere3.net,subject=foo,body=foo"

>
> > is there a way to automatically compose and send a message? like a "-
> > composeAndSend modifier"
>
> > Thanks
>
> Why not just talk directly to the email server and send the mail that
> way? There are many Perl modules that will do that for you (with a
> little bit of coding on your side).
> --
> Andrew DeFaria <http://defaria.com>

> Patience has its limits. Take it too far, and it's cowardice. - George
> Jackson

thank you Andrew,

In fact, I need to send mail with thunderbird cause it is the only
software authorized to discuss with the server.
Moreover, I want to keep all the SMIME security configuration of the
thunderbird.


Andrew DeFaria

unread,
Sep 4, 2007, 8:55:56 PM9/4/07
to
On Sep 4, 8:57 am, Olivier Parniere <olivier.parni...@gmail.com>
wrote:

In general, MTAs do not know nor care what software is requesting it
to send an email (AKA what is the server software and how does it tell
whether TB or say Outlook is talking to it?). In fact, I don't think
the RFCs say that it should refuse service based on client (based on
authentication or origination - perhaps -but not based on client).
Thus the phrase "it is the only software authorized to discuss with
the server" doesn't parse or make sense.

The SMIME security configuration of Thunderbird can be duplicated
outside of Thunderbird I suspect. (By that I mean you should be able
to send along a properly formatted SMIME part... Full encryption would
be a bit more difficult...)

Arivald

unread,
Sep 5, 2007, 4:44:14 AM9/5/07
to
Andrew DeFaria pisze:

>>
>> In fact, I need to send mail with thunderbird cause it is the only
>> software authorized to discuss with the server.
>> Moreover, I want to keep all the SMIME security configuration of the
>> thunderbird.
>
> In general, MTAs do not know nor care what software is requesting it
> to send an email (AKA what is the server software and how does it tell
> whether TB or say Outlook is talking to it?). In fact, I don't think
> the RFCs say that it should refuse service based on client (based on
> authentication or origination - perhaps -but not based on client).
> Thus the phrase "it is the only software authorized to discuss with
> the server" doesn't parse or make sense.
>

You forgot about firewall. Modern firewalls can have rules per executable.

About auto-send problem:
It is easy to write extension, which check nsICommandLine interface for
some additional option, and if it is found then sends mail automatically.


--
Arivald

Olivier Parniere

unread,
Sep 5, 2007, 6:41:34 AM9/5/07
to

Ok thanks for all you informations, I am going to study the
feasibility to add this functionnality to Thunderbird


Andrew DeFaria

unread,
Sep 5, 2007, 11:17:40 AM9/5/07
to
Arivald wrote:
Andrew DeFaria pisze:
In fact, I need to send mail with thunderbird cause it is the only software authorized to discuss with the server. Moreover, I want to keep all the SMIME security configuration of the thunderbird.
In general, MTAs do not know nor care what software is requesting it to send an email (AKA what is the server software and how does it tell whether TB or say Outlook is talking to it?). In fact, I don't think the RFCs say that it should refuse service based on client (based on authentication or origination - perhaps -but not based on client). Thus the phrase "it is the only software authorized to discuss with the server" doesn't parse or make sense.
You forgot about firewall. Modern firewalls can have rules per executable.
I assume you have control over your own firewall! Still I did say MTA...
--
Andrew DeFaria
Middle Age is when actions creak louder than words
0 new messages