blat命令
I was reading my boss's blog today, as he's a hard core GTD practitioner - more than I - and I'm trying to get better at it.
我今天在阅读老板的博客,因为他是GTD的核心从业者-比我更多-并且我正在努力做得更好。
He recently went on an automation
rampage
kick around his home IT and wrote a pile of scripts. He also tends to email him self quick little reminders that are filed as todos, as do I, except he can just type
最近,他在自己的家庭IT上进行了自动化
横冲直撞,
并编写了一堆脚本。 他也倾向于通过电子邮件将自己的一些小提醒发送给他,就像我一样,除了他只能输入
todo "Write a blog post on foo"
要做“在foo上写博客文章”
And it'll be mailed to him with an appropriate subject and tagged in his Gmail account.
它将以适当的主题邮寄给他,并在他的Gmail帐户中进行标记。
He's using BLAT under Windows (using sendEmail under Linux). BLAT is a command-line util for sending email under Windows. It'll also post to USENET via NNTP if you like.
他在Windows下使用BLAT (在Linux下使用sendEmail)。 BLAT是用于在Windows下发送电子邮件的命令行实用程序。 如果愿意,它还将通过NNTP发布到USENET。
You can include all the settings on the command-line, or just "install" them in the registry, once, like this:
您可以在命令行中包含所有设置,或者一次将它们“安装”在注册表中,如下所示:
blat -install localhost whatever@yourdomain.com - - FromScott
BLAT -install本地主机whatever@yourdomain.com - - FromScott
Where "FromScott" is the name of a profile we'll use later. Then I can create a TODO.BAT (or TODO.PS1) and put this in it:
“ FromScott”是配置文件的名称,我们将在以后使用。 然后,我可以创建一个TODO.BAT(或TODO.PS1)并将其放入其中:
@echo off
blat -p FromScott -to whatever@yourdomain.com -subject %1 -body %1 > NUL@回声关闭BLAT -p FromScott -to whatever@yourdomain.com -subject%1 -体%1> NUL
I like running BLAT with -debug, because I'm all about -verbose, don't you know.
我喜欢用-debug来运行BLAT,因为我全都关心-verbose,你知道吗。
NOTE: I'm using Vista and when I ran blat for the first time I was warned by the loader I didn't have MSVCR71.dll, so I ended up getting it and putting it in the same folder as BLAT then it was cool.
注意:我使用的是Vista,当我第一次运行blat时,加载程序警告我我没有MSVCR71.dll,因此我最终得到了它并将其放在与BLAT相同的文件夹中,这很酷。
I ended up making todo.bat, worktodo.bat and hometodo.bat and they look like this:
我最终制作了todo.bat,worktodo.bat和hometodo.bat,它们看起来像这样:
start "TODO-ING" /MIN c:\pathto\blat.exe -p FromScott -to me@noneofyourcheese.com -subject %1 -body %1 -debug
启动“ TODO-ING” / MIN c:\ pathto \ blat.exe -p FromScott -to me@noneofyourcheese.com-主题%1 -body%1 -debug
So now,
所以现在
c:>todo "Write a blog post about how my Home IT is automated"
c:> todo“撰写有关家庭IT如何自动化的博客文章”
Enjoy.
请享用。
翻译自: https://www.hanselman.com/blog/blat-command-line-emailer-saves-me-time
blat命令