Diferencia entre revisiones de «Gmail»

De Guía Ubuntu
Saltar a: navegación, buscar
 
m (Formato)
Línea 2: Línea 2:
 
Para aquellos que usen Gmail para gestionar el correo (tanto de Gmail, como de otras cuentas), pueden configurar Gnome para que trate Gmail como el gestor de correo predeterminado.  
 
Para aquellos que usen Gmail para gestionar el correo (tanto de Gmail, como de otras cuentas), pueden configurar Gnome para que trate Gmail como el gestor de correo predeterminado.  
 
Para ello hace falta crear un archivo llamado gnome-gmail que contenga:
 
Para ello hace falta crear un archivo llamado gnome-gmail que contenga:
<nowiki>
 
#!/bin/sh
 
 
# gnome-gmail - a script that passes gnome mailto links to gmail in your browser
 
# Copyright (c) 2006 Matthew C Ruschmann
 
# Version: 1.0
 
 
# Adapted from ymail - by David L Norris
 
# http://webaugur.com/wares/files/ymail
 
 
# This program is free software; you can redistribute it and/or modify
 
# it under the terms of the GNU General Public License as published by
 
# the Free Software Foundation; either version 2 of the License, or
 
# (at your option) any later version.
 
#
 
# This program is distributed in the hope that it will be useful,
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
# GNU Library General Public License for more details.
 
#
 
# You should have received a copy of the GNU General Public License
 
# along with this program; if not, write to the Free Software
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 
# Ask GNOME for the web browser command.
 
BROWSER=`gconftool-2 –get ‘/desktop/gnome/url-handlers/http/command’ | cut -f1 -d’ ‘ `
 
 
# If no arguments just start gmail
 
if test -z “${*}”
 
  then
 
    ${BROWSER} “http://www.gmail.com”
 
    exit
 
fi
 
 
# Grab all command line parameters and strip mailto: if it exists.
 
TOMAIL=`echo “${*}” | sed -e ’s/mailto://g’`
 
TOMAIL=`echo “$TOMAIL” | sed -e ’s/?/&/g’`
 
TOMAIL=`echo “$TOMAIL” | sed -e ’s/&subject=/&su=/g’`
 
 
# This is the URL Yahoo! Companion and Yahoo! Toolbar uses to send email:
 
TOURL=”https://gmail.google.com/gmail?view=cm&cmid=0&fs=1&tearoff=1&to=”
 
 
# Print out what we are about to do
 
echo ${BROWSER} “${TOURL}${TOMAIL}”
 
 
# Execute mail command
 
${BROWSER} “${TOURL}${TOMAIL}” </nowiki>
 
  
Luego lo guardamos en /usr/bin/ y le damos los permisos
+
<bash>
 +
#!/bin/sh
 +
 
 +
# gnome-gmail - a script that passes gnome mailto links to gmail in your browser
 +
# Copyright (c) 2006 Matthew C Ruschmann
 +
# Version: 1.0
 +
 
 +
# Adapted from ymail - by David L Norris
 +
# http://webaugur.com/wares/files/ymail
 +
 
 +
# This program is free software; you can redistribute it and/or modify
 +
# it under the terms of the GNU General Public License as published by
 +
# the Free Software Foundation; either version 2 of the License, or
 +
# (at your option) any later version.
 +
#
 +
# This program is distributed in the hope that it will be useful,
 +
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 +
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 +
# GNU Library General Public License for more details.
 +
#
 +
# You should have received a copy of the GNU General Public License
 +
# along with this program; if not, write to the Free Software
 +
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 +
 
 +
# Ask GNOME for the web browser command.
 +
BROWSER=`gconftool-2 –get ‘/desktop/gnome/url-handlers/http/command’ | cut -f1 -d’ ‘ `
 +
 
 +
# If no arguments just start gmail
 +
if test -z “${*}”
 +
  then
 +
    ${BROWSER} “http://www.gmail.com”
 +
    exit
 +
fi
 +
 
 +
# Grab all command line parameters and strip mailto: if it exists.
 +
TOMAIL=`echo “${*}” | sed -e ’s/mailto://g’`
 +
TOMAIL=`echo “$TOMAIL” | sed -e ’s/?/&/g’`
 +
TOMAIL=`echo “$TOMAIL” | sed -e ’s/&subject=/&su=/g’`
 +
 
 +
# This is the URL Yahoo! Companion and Yahoo! Toolbar uses to send email:
 +
TOURL=”https://gmail.google.com/gmail?view=cm&cmid=0&fs=1&tearoff=1&to=”
 +
 
 +
# Print out what we are about to do
 +
echo ${BROWSER} "${TOURL}${TOMAIL}"
 +
 
 +
# Execute mail command
 +
${BROWSER} "${TOURL}${TOMAIL}"
 +
</bash>
 +
 
 +
Luego lo guardamos en ''/usr/bin/'' y le damos los permisos:
 +
 
 
  $ sudo cp gnome-gmail /usr/bin  
 
  $ sudo cp gnome-gmail /usr/bin  
 
  $ sudo chmod 755 /usr/bin/gnome-gmail
 
  $ sudo chmod 755 /usr/bin/gnome-gmail
Finalmente vamos a ''Sistema -> Preferencias -> Aplicaciones preferidas'', en 'Lector de correo' seleccionamos personalizar y en la cajita de texto escribimos: ''gnome-gmail %s''
+
 
 +
Finalmente vamos a ''Sistema -> Preferencias -> Aplicaciones preferidas'', en 'Lector de correo' seleccionamos personalizar y en la cajita de texto escribimos: ''gnome-gmail %s''.
  
 
[[image:Gnome-gmail.jpg|center]]
 
[[image:Gnome-gmail.jpg|center]]

Revisión de 22:53 4 ago 2006

Para aquellos que usen Gmail para gestionar el correo (tanto de Gmail, como de otras cuentas), pueden configurar Gnome para que trate Gmail como el gestor de correo predeterminado. Para ello hace falta crear un archivo llamado gnome-gmail que contenga:

<bash>

  1. !/bin/sh
  1. gnome-gmail - a script that passes gnome mailto links to gmail in your browser
  2. Copyright (c) 2006 Matthew C Ruschmann
  3. Version: 1.0
  1. Adapted from ymail - by David L Norris
  2. http://webaugur.com/wares/files/ymail
  1. This program is free software; you can redistribute it and/or modify
  2. it under the terms of the GNU General Public License as published by
  3. the Free Software Foundation; either version 2 of the License, or
  4. (at your option) any later version.
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU Library General Public License for more details.
  9. You should have received a copy of the GNU General Public License
  10. along with this program; if not, write to the Free Software
  11. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  1. Ask GNOME for the web browser command.

BROWSER=`gconftool-2 –get ‘/desktop/gnome/url-handlers/http/command’ | cut -f1 -d’ ‘ `

  1. If no arguments just start gmail

if test -z “${*}”

 then
   ${BROWSER} “http://www.gmail.com”
   exit

fi

  1. Grab all command line parameters and strip mailto: if it exists.

TOMAIL=`echo “${*}” | sed -e ’s/mailto://g’` TOMAIL=`echo “$TOMAIL” | sed -e ’s/?/&/g’` TOMAIL=`echo “$TOMAIL” | sed -e ’s/&subject=/&su=/g’`

  1. This is the URL Yahoo! Companion and Yahoo! Toolbar uses to send email:

TOURL=”https://gmail.google.com/gmail?view=cm&cmid=0&fs=1&tearoff=1&to=”

  1. Print out what we are about to do

echo ${BROWSER} "${TOURL}${TOMAIL}"

  1. Execute mail command

${BROWSER} "${TOURL}${TOMAIL}" </bash>

Luego lo guardamos en /usr/bin/ y le damos los permisos:

$ sudo cp gnome-gmail /usr/bin 
$ sudo chmod 755 /usr/bin/gnome-gmail

Finalmente vamos a Sistema -> Preferencias -> Aplicaciones preferidas, en 'Lector de correo' seleccionamos personalizar y en la cajita de texto escribimos: gnome-gmail %s.

Gnome-gmail.jpg