Skip to content
/ lemail Public

仿 Linux shell 命令的邮箱命令行客户端

Notifications You must be signed in to change notification settings

dlgchg/lemail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lemail

lemail仿 Linux shell 命令的邮箱命令行客户端.

命令列表及说明

新增邮箱

新增一个邮箱

lemail add

例子

lemail add -type=1 [email protected] -pass=123456
// type 邮箱类型,目前只有QQ(0),163(1),Gmail(2)

邮箱列表

显示已添加的邮箱信息

lemail show

删除邮箱

使用分配的uuid来删除邮箱信息

lemail del

例子

lemail del -uuid=9b76ea1c-d37c-44e5-a330-cf6ecb882807

修改邮箱信息

lemail up

例子

lemail up -uuid=9b76ea1c-d37c-44e5-a330-cf6ecb882807 [email protected] -pass=123456789

使用邮箱

使用邮箱来进行发送邮件操作

lemail use

例子

lemail use -uuid=9b76ea1c-d37c-44e5-a330-cf6ecb882807

查看10封邮件头

lemail -l

查看正在使用的邮箱

lemail using

发送邮件

发送一封简单的邮件

只有接收人,标题和正文,接收人支持多人,以逗号分割

lemail send-simple

例子

//单发
lemail send-simple [email protected] -title=xxxx -body=xxxxxxxxg
//多发
lemail send-simple [email protected],[email protected] -title=xxxx -body=xxxxxxxxg

发送带附件的邮件

lemail send-attach

例子

lemail send-attach [email protected] -title=xxxx -body=xxxxxxxxg -attach=/xx/xx/xx.png

发送完整的邮件

包含以上内容,追加抄送人和暗送人,支持多人,以逗号分割

lemail send

例子

//简单发送
lemail send [email protected] -title=xxxx -body=xxxxxxxx
//发送多人
lemail send [email protected],[email protected] -title=xxxx -body=xxxxxxxx
//添加附件
lemail send [email protected] -title=xxxx -body=xxxxxxxx -attach=x/x/xxx.jpg
//添加抄送和暗送
lemail send [email protected] [email protected] [email protected] -title=xxxx -body=xxxxxxxx -attach=x/x/xxx.jpg

查看已发送邮件

默认显示前20条

lemail send-list

例子

lemail send-list -all=true //-all=true 全部

删除邮件

lemail send-remove

例子

//根据id删除
lemail send-remove -id=1 -all=false
//全部删除
lemail send-remove -id= -all=true