Mutt

starting remote script via ssh containing nohup

爱⌒轻易说出口 提交于 2019-12-22 04:39:09
问题 I want to start a script remotely via ssh like this: ssh user@remote.org -t 'cd my/dir && ./myscript data my@email.com' The script does various things which work fine until it comes to a line with nohup: nohup time ./myprog $1 >my.log && mutt -a ${1%.*}/`basename $1` -a ${1%.*}/`basename ${1%.*}`.plt $2 < my.log 2>&1 & it is supposed to do start the program myprog, pipe its output to mylog and send an email with some datafiles created by myprog as attachment and the log as body. Though when

Send Html page As Email using “mutt”

只谈情不闲聊 提交于 2019-12-18 11:42:18
问题 I have been using mutt to send emails from inside another application & it works fine. I have to send html files and currently I have to send them as attachments. So I use mutt -s "hi" -a attach.html user@domain.com < /dev/null But if I try to send the html file as the body as follows mutt -e content_type=text/html Email address -s "subject" < test.html then instead of the html file i get the source text of the html file. Is there any way that I can make the body of the message as html

Change sender's address in mutt via console

隐身守侯 提交于 2019-12-12 02:25:54
问题 I want to dynamically set the sender's address when using mutt via console (not composing). I checked everything which is described, tried everything from this SO question but nothing works. There is no change at all, no matter what I do. I set set from="sender@help.me" set edit_headers=yes in both the /etc/Muttrc and ~/.muttrc, also, I tried all sort of -e commands, like -e "set from=email@example.com" -e 'my_hdr From:sender@help.me' -e "send-hook . 'my_hdr From: Other Name <otheremail\

Tell Mutt to attach files (listed in file)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 23:08:51
问题 I'm doing my first steps with Mutt (with msmtp in Slackware 13.1). I'm already able to send mail with attachments like so: cat mail.txt | mutt -a "/date.log" -a "/report.sh" -s "subject of message" -- myself@gmail.com I would like to define the files to be attached in another file and then tell Mutt to read it, something like this: mutt -? listoffilestoattach.txt Is it possible? Or there are similar approaches? 回答1: You can populate an array with the list of file names fairly easily, then use

Revert all mutt custom config

白昼怎懂夜的黑 提交于 2019-12-11 20:27:39
问题 I am trying to setup a two (maybe more) mailboxes in mutt with very different settings. I have setup folder-hooks for each but it custom settings are not fully the same. I wonder how to reset all custom settings setup for one mailbox before applying settings from the other. The setup is: .muttrc: some custom config... mre custom config... folder-hook home source .mutt/home.config folder-hook work source .mutt/work.config I'd like to reset all configs setup by home.config when I apply work

正式的介绍「Mutt」:命令行的邮件大师 (一文详解)

萝らか妹 提交于 2019-12-07 20:57:01
为什么要用Mutt? 这个世界已经有了成百上千的漂亮邮件客户端,为什么还要用命令行里的? 其实说什么功能都没用。说到本质上,其实是一种Geek精神,一种爱折腾的精神,一种Customizability的精神。就像明明有WhatsApp,还要用IRC一样的精神;明明有Finder,还要用Ranger的精神。 在终端里待久了,会比较烦GUI,所以不管什么软件都会寻求终端的替代方案。 对于这个需求来说,在Linux的世界里,似乎就只有一个选择:Mutt。 Mutt的可配置性,强如Vim。配置起来也和Vim差不多,有专门的 ~/.muttrc 供你配置软件本身。 需要理解的是: Mutt本身是一个框架而已。收件、发件、编辑邮件等功能,是要通过搭配不同的程序来做到的。 Mutt的模块搭配方案 就像穿衣搭配一样,收件发件过滤邮件转发邮件各种功能都有很多种程序可以用,mutt怎么搭配呢? 常用选项有这些(User/Transport/Delivery): MUA 收件: fetchmail 或 getmail 或 OfflineIMAP MTA 发件: sendmail 或 msmtp 或 postfix 。其中 msmtp 兼容强, postfix 对国内不友好 MDA 分类: procmail 或 maildrop 邮件编辑:VIM。 参考邮件代理(功能分类):Email agent

OfflineIMAP and Mutt with Gmail's All Mail folder

我怕爱的太早我们不能终老 提交于 2019-12-07 19:37:34
问题 OfflimeIMAP I am trying to sync my Gmail - All Mail folder with idlefolders through offlineimap. My .offlineimaprc config has this - idlefolders = ['INBOX', '[Gmail].All Mail'] My name of my All Mail folder in .mail (where my mailboxes are) looks like drwx------ 5 ry ry 4096 Oct 12 18:13 [Gmail].All Mail I think the name is wrong in idlefolders. I see a lot of people online using [Gmail]/All Mail. My INBOX folder sync fine but All Mail does not. MUTT Also trying to set a macro shortcut to All

使用mutt作为email客户端

南笙酒味 提交于 2019-12-07 11:31:54
All mail clients suck.This one just sucks less. 由于 mutt 是一个有着unix哲学的程序,可定制性很强,其高级功能可以由不同的程序来完成,比如以下搭配: mutt 使用mutt内建的imap,pop,smtp支持,最简单的方式,只需要安装mutt这一个软件包。 mutt + msmtp 最简单的组合,配合imap协议,可以满足大多数人的要求 其中smtp功能由msmtp实现,你甚至可以把imap功能也由其他软件来实现 mutt + msmtp + getmail + procmail 稍微复杂一点的组合,mutt是客户端,msmtp作为mta,getmail用来收取邮件,procmail过滤邮件。 mta还可以使用exim4或者postfix替代,一般使用msmtp就够了,因为postfix实在是太好了,邮件服务器通常会选择postfix。 msmtp可以使用esmtp替代。 邮件收取功能也可以使用fetchmail替代getmail,由于需要本地mta投递,所以同时需要procmail。 procmail是一个功能及其强大的邮件过滤系统。ps:看到这句话,你就应该明白,我显然没有使用它。。。 由于Gmail服务器端垃圾邮件过滤已经做得很好了,而且我使用的是imap协议,所以不需要getmail去收取邮件

利用mail实时监测服务器程序状态

雨燕双飞 提交于 2019-12-06 19:52:13
1 mail环境搭建 1.1 安装mail套件 ubuntu环境:apt-get install mutt msmtp centos环境:我没有采用mutt,是用的sendmail或mail中的一种,有需要的同学可以参考 这里 。 1.2 配置 1.2.1 MUTT 系统全局设置/etc/Muttrc,如果使用某个系统用户,可以在~/.muttrc中设置。 vi .muttrc set sendmail="/usr/bin/msmtp" set use_from=yes set realname="20043790" set from=20043790@163.com set envelope_from=yes 1.2.2 MSMTP 创建~/.msmtprc和~/.msmtp.log,分别为配置和日志文件。 vi .msmtprc account default host smtp.163.com from 20043790@163.com auth plain user 20043790 password 123456 logfile ~/.msmtp.log 由于password是明码,所以我们需要修改此文件的权限。 chmod 600 .msmtprc touch ~/.msmtp.log 1.2.3 验证邮件服务器 查看SMTP服务器是否支持认证的TLS加密:

CentOS 安装配置 msmtp 和 mutt

做~自己de王妃 提交于 2019-12-06 19:51:53
一、安装配置msmtp 1、下载、解压 msmtp 先使用putty等工具登陆ssh wget http://downloads.sourceforge.net/msmtp/msmtp-1.4.30.tar.bz2?big_mirror=0 tar jxvf msmtp-1.4.30.tar.bz2 2、安装 ./msmtp-1.4.30/configure –prefix=/usr/local/msmtp make make install 注意红色标记出的目录,因为是解压到那个目录的。 3、配置msmtp账号 切换到,cd /usr/local/msmtp 新建文件夹etc,mkdir etc 使用vi新建文件,输入:vi /usr/local/msmtp/etc/msmtprc ,编辑内容如下: # Set default values for all following accounts. defaults logfile /usr/local/msmtp/msmtp.log # The SMTP server of the provider. account test # SMTP邮件服务器地址 host smtp.qq.com # 发送的邮件Email from xiaobaichi@i0554.com auth login # 邮件服务器登录账号 user