Issuing system commands to unix from gmail message and emailing back results?

11 views
Skip to first unread message

John Haggerty

unread,
Aug 15, 2009, 7:28:27 AM8/15/09
to Gmail4j, boun...@gmail.com
I am wondering if there is a way to do something similar with gmail4j
that is done with
http://www.prasannatech.net/2009/03/running-unix-commands-c-java-python.html#2.Running_Unix_or_Linux_commands_from_java
and with https://sourceforge.net/projects/ogss/ as the maintainer of
ogss has given up on his project and libgmail has as well but the
generic theory seems to work?

Just wondering as my java is more than a little rusty creating a
program of that quality would be unfortunately beyond me :(

Tomas

unread,
Aug 16, 2009, 10:56:44 AM8/16/09
to Gmail4j
Yes, it would be possible, although it could be a serious security
hole - anyone could send an email to your account, emails are easy to
fake and they are prone to http sniffing unless encrypted with PGP
(which is not yet supported by gmail4j). A small application using
gmail4j could run as a daemon, constantly check for new messages,
search for unix commands (perhaps with some additional marker syntax)
and execute them. However this cannot be a part of gmail4j
functionality as it's out of scope.

On Aug 15, 2:28 pm, John Haggerty <bouncy...@gmail.com> wrote:
> I am wondering if there is a way to do something similar with gmail4j
> that is done withhttp://www.prasannatech.net/2009/03/running-unix-commands-c-java-pyth...
> and withhttps://sourceforge.net/projects/ogss/as the maintainer of
Reply all
Reply to author
Forward
0 new messages