ubuntu邮件客户端

Every Geek uses Gmail… it’s pretty much required. And now you can set Gmail as the default client in Ubuntu without any extra software. (Windows requires the Gmail notifier be installed)

每个极客都使用Gmail ...这是非常必要的。 现在,您可以将Gmail设置为Ubuntu中的默认客户端,而无需任何其他软件。 (Windows需要安装Gmail通知程序)

Just go to System \ Preferences \ Preferred Applications

只需转到系统\首选项\首选应用程序

Under Mail Reader, select Custom, and then put this into the Command window, changing “geek” to your username.

在“邮件阅读器”下,选择“自定义”,然后将其放入“命令”窗口,将“ geek”更改为您的用户名。

/home/geek/open_mailto.sh %s

/home/geek/open_mailto.sh%s

Next, you’ll need to save this shell script into your user directory ( /home/username ).

接下来,您需要将此Shell脚本保存到用户目录(/ home / username)中。

For the curious, here’s the contents of the script:

出于好奇,这是脚本的内容:

#!/bin/sh

#!/ bin / sh

firefox https://mail.google.com/mail?view=cm&tf=0&to=`echo $1 | sed ‘s/mailto://’`

firefox https://mail.google.com/mail?view=cm&tf=0&to=`echo $ 1 | sed's / mailto://'`

If you’d like to make the script open a new tab in an existing Firefox window, you can replace the firefox line in the script with the following:

如果您想让脚本在现有的Firefox窗口中打开一个新标签,则可以用以下内容替换脚本中的firefox行:

firefox -remote “openurl(https://mail.google.com/mail?view=cm&tf=0&to=`echo $1 | sed ‘s/mailto://’`,new-tab)”

firefox -remote“ openurl(https://mail.google.com/mail?view=cm&tf=0&to=echo $ 1 | sed's / mailto://',new-tab)”

Update: If you want to make the script file hidden by default, you can rename it with a . at the beginning of the file like this: .open_mailto.sh. You’ll have to change the path in the preferences, of course.

更新:如果要默认隐藏脚本文件,可以使用来重命名该脚本文件。 在文件开头的位置是:.open_mailto.sh。 当然,您必须在首选项中更改路径。

Open a terminal and type in the following command, to make the script executable:

打开终端并输入以下命令,以使脚本可执行:

chmod u+x ~/open_mailto.sh

chmod u + x〜/ open_mailto.sh

Now it should be working.

现在应该可以了。

To test it out… I clicked the contact link on my page… and it immediately opened in Gmail.

要对其进行测试...我单击了页面上的联系人链接...,该链接立即在Gmail中打开。

Note that if you aren’t logged into Gmail you’ll be prompted to login to gmail… and you’ll have to click the email link again. Seems like Gmail’s login redirector won’t open the send mail page. But then again… why aren’t you logged into Gmail?

请注意,如果您没有登录Gmail,系统将提示您登录gmail…,并且您必须再次单击电子邮件链接。 似乎Gmail的登录重定向器无法打开“发送邮件”页面。 但是再说一次……为什么不登录Gmail?

Update: Changed to point to a script so that the mailto: tag would be removed. Thanks VERY much to Mr Linux for not just noticing, but giving me the working script.

更新:更改为指向脚本,以便删除mailto:标记。 非常感谢Linux先生,他不仅注意到了我,还给了我有效的脚本。

翻译自: https://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/

ubuntu邮件客户端

ubuntu邮件客户端_在Ubuntu中将Gmail设置为默认邮件客户端相关推荐

  1. 在乌班图中将py3设置为默认解释器

    ubuntu16.04中将python3设置为默认 直接执行这两个命令即可: sudo update-alternatives --install /usr/bin/python python /us ...

  2. 开源邮件客户端_排名前6位的开源桌面电子邮件客户端

    开源邮件客户端 本文最初于2015年10月8日发布,并进行了更新以反映新信息和项目更改. 移动和Web技术仍然没有使桌面过时,尽管有一些常规的说法相反,但桌面客户端似乎并不会很快消失. 并且有充分的理 ...

  3. 安装ubuntu 创建分区_安装Ubuntu后如何创建单独的主分区

    安装ubuntu 创建分区 Ubuntu doesn't use a separate /home partition by default, although many Linux users pr ...

  4. android pdf阅读器开发_如何在 Windows 10 中将 Firefox 设置为默认 PDF 阅读器

    PDF 作为办公一族中的必备文档,很多人都会编辑或者创建 PDF 文档,而在 Windows 系统中并没有默认的 PDF 阅读器.而在新版的 Microsoft Edge微软已在开始提供有真正的高级 ...

  5. ubuntu mysql安装_在 Ubuntu 18.0-10上安装 MySQL8

    直接使用apt install mysql-server安装,那么恭喜你踩坑. sudo apt install mysql-server默认会安装MySQL 5.7,将会出现一些莫名的问题,例如:安 ...

  6. ubuntu mysql 优化_在Ubuntu上使用MySQL设置远程数据库优化站点性能

    欢迎大家前往腾讯云+社区,获取更多腾讯海量技术实践干货哦~ 介绍 随着您的应用程序或网站的增长,您可能已经超出了当前的服务器设置.如果您在同一台计算机上托管Web服务器和数据库后端,最好将这两个功能分 ...

  7. studio 3t 在ubuntu中使用_在ubuntu中使用ufw配置防火墙

    软硬件环境 ubuntu 18.04 64bit ufw 简介 ufw是ubuntu系统下的一个防火墙配置工具,相较linux原始版防火墙的iptables来讲,更加容易上手.本文跟大家分享一下ufw ...

  8. ubuntu迁移到_为什么Ubuntu开发人员门户迁移到DjangoCMS

    ubuntu迁移到 多年来,Canonical使用了各种内容管理系统,包括Drupal和Zope ,并且我们的许多网站都在WordPress上运行: 实际上,许多人仍然这样做. 我们的开发人员门户网站 ...

  9. sougou ubuntu 优麒麟_在Ubuntu 19.10/优麒麟19.10中安装搜狗输入法Linux 2.3版

    搜狗输入法Linux版推出了sogoupinyin_2.3.1.0112_amd64.deb包,支持Ubuntu 19.10/优麒麟Ubuntukylin 19.10及Ubuntu 16.04/18. ...

  10. java邮件支持_使用Spring的JAVA Mail支持简化邮件发送功能

    闲来无事,翻看<Spring in Action>,发现Spring集成了对JAVA Mail的支持,有点小激动的看了一遍,嗯,话说真的简单了很多. Spring的邮件发送的核心是Mail ...

最新文章

  1. 2016百度之星 - 初赛(Astar Round2A)Gym Class(拓扑排序)
  2. 【正一专栏】恒大中超七连冠到手了
  3. windows cmd 窗口 显示信息慢_你玩过Windows 10新版CMD了吗?
  4. python字典get计数_Python内部是如何存储GC引用变量的计数的?
  5. dcf是ea211发动机吗_大众有的车怎么把ea211换成dcf了?
  6. 如何修改Chrome默认字体
  7. 74HC AHCT LS LV ABT区别
  8. 站在我个人的角度上来说。。。。。
  9. python3练习-查找文件
  10. 【蓝桥杯真题】蓝桥杯真题之旋转
  11. SpringBoot文件夹压缩下载实现示例
  12. layuiadmin上手好难_滑步车比赛好拍吗?
  13. python2 if写法_python 中if-else的多种简洁的写法
  14. 这不就是微信朋友圈屏蔽功能吗?推特现在才做出来未免太迟了吧
  15. java编程找出吸血鬼数字,Java 找到四位数的所有吸血鬼数字 基础代码实例
  16. 163点游戏python算法
  17. 物联网导论【刘云浩】-笔记总结
  18. 区块链技术的未来前景与发展趋势
  19. java使用二维数组和控制台实现五子棋单机版
  20. 1166:求f(x,n)

热门文章

  1. IP-Guard准入控制网关实现机制
  2. 大学生就业的三方协议基本概述
  3. EverEdit 4.2.0.4457 免安装已激活 x64
  4. vue.js之minix
  5. 工资,一般讲税前还是税后?
  6. [C#]C# 如何捕获键盘按钮和组合键以及KeyPress/KeyDown事件之间的区别 (附KeyChar/KeyCode值)
  7. arduino 嗡鸣器 音乐_arduino笔记一:用arduino实现蜂鸣器播放音乐
  8. 关于机器学习中鲁棒性和泛化能力
  9. 网络——5层结构介绍
  10. 蚂蚁金服Java面试题、笔试题(含答案)-中级