xfce4 -> thunar -> 右键 -> 发送到 -> "邮件接收器"

sh/bash/dash/ksh/zsh等Shell脚本
回复
头像
c\nc
帖子: 231
注册时间: 2007-12-25 12:51

xfce4 -> thunar -> 右键 -> 发送到 -> "邮件接收器"

#1

帖子 c\nc » 2009-08-26 17:15

假设你已经配置好了 mutt ,能够发信了。

代码: 全选

$ cat Mutt.sh
#!/bin/bash
case $1 in
	?attach=*)
		IFS=$'\n'
		xterm -e mutt -a $(echo -e "${*//%/\\x}" | awk -F'(?|&)attach=file://' \
			'{for(i=1;i<=NF;i++){if(length($i)>1){sub(/&$/,"",$i);printf("%s\n",$i)}}}')
		;;
	*)
		xterm -e mutt "$@"
		;;
esac
运行 exo-preferred-applications ,将默认邮件客户端设置为 Mutt.sh。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: xfce4 -> thunar -> 右键 -> 发送到 -> "邮件接收器"

#2

帖子 eexpress » 2009-08-26 21:08

mutt不熟。
● 鸣学
头像
rhfcaesar
帖子: 2996
注册时间: 2005-11-17 15:45
来自: 湖北

Re: xfce4 -> thunar -> 右键 -> 发送到 -> "邮件接收器"

#3

帖子 rhfcaesar » 2009-08-30 12:11

试了试,很好用。

代码: 全选

枪杆子里面出政权
回复