Integration with other utilities (notmuch, isync) for indexing and sync'ing is very easy, thanks to close adherence to Unix principles, and gets you a very neat setup. Nothing to envy from Gmail.
Integration with other utilities (notmuch, isync) for indexing and sync'ing is very easy, thanks to close adherence to Unix principles, and gets you a very neat setup. Nothing to envy from Gmail.
In my opinion this concept does not work for most non-cli programs. How do you actually define this "one thing"?
Is "reading an email" one thing? And "writing an email" another thing? What about "spellchecking the email"? What about "managing all my email contacts"? What about "back up my emails"? What about "sign email with GPG"?
Do all of these things really need a separate program?
The unix principle works quite well for stuff like grep/find/awk but there is just now way you could make GIMP follow the unix principle.
That is, I have no problem with being able to read, write, spellcheck, and sign an e-mail, manage my contacts, and back up my archive from within a single program; but it had better be true that, if I want to use vi instead of Nano to write my e-mails, then I can force the program to respect this wish.
(As is probably apparent, I'm a Pine user by experience; I've never used Mutt, but would like to give it a try.)
Mostly everything else is outsourced. Composing is done by your $EDITOR, sending is done by an external program, fetching email by an external program too. Even indexing and querying is usually outsourced to a modern xapian-based tool, like mu or notmuch.
This leads to powerful composable workflows.
;)
Need to convert 10, or 100, or 1,000, or 1,000,000 images? You might use GIMP for the first. You'd best give it up for the 2nd and further.
On Linux desktop, I had an Imagemagick command in my command history which would trim off the top n pixels of images to remove extraneous elements. Quick to call that up and run it on a new screenshot, or a series of shots, prior to posting online. The job was completed before GIMP would finish initialising.
So can the Gimp. I wrote a calendar script in Perl for the Gimp literally 15 years ago.
Imagemagick though makes simple-to-moderately-complex stuff bog easy.
Indeed. This is one of the reasons why the unixy "One app does one thing" philosophers dislike the C++ language so much. C++ is built for creating precisely the kind of apps you are describing - Classes are a well-defined compartment or component that does this "one thing" business while the app co-ordinates their working towards a common good.
C, on the other hand, pertains much to their "one thing" philosophy and they like it very much.
That's essentially what Mutt does. But you could also use other programs to parse and read each email file if you wish. "Fetching email" can also be a different thing. I use offlineimap for that purpose and store my messages in the Maildir format.
> And "writing an email" another thing?
Yes. Even "sending an email" is another thing. The program that edits my emails (vim) is not the same program which sends them (msmtp).
> What about "spellchecking the email"?
I don't do this (with a program), but I assume you could just do it within Vim.
> What about "managing all my email contacts"?
I use OS X Contacts for that, so there's a command-line tool that allows me to search for and then insert those contacts in Mutt.
> What about "back up my emails"?
Again, another program! I keep my Maildir synchronized to my home server and all my other computers using BitTorrent Sync. Changes are backed up with Arq to Amazon Glacier every day.
> What about "sign email with GPG"?
Definitely its own program, although Mutt includes support for it you still need GPG installed and everything set up for that stuff in order to sign your emails. This is true for every other email client isn't it? I know I have to instal GPGMail to get the same functionality on Apple Mail.
So you see, all of these tools are really separate processes in and of themselves. The benefit to all of this is when newer and better technology comes around, you don't have to wait for your software vendor to support it. Instead, you just use a different program that follows the same standards, which have been around for decades. Some people, probably most, find this to be an unacceptable burden. For that, there are definitely great email clients out there like Nylas N1 and Google Inbox...but if you want total control in the same sense that you get from your shell and your editor, Mutt is the client for you.
But no mention of OS X contacts integration. Care to share how you do it?
I don't see how CLI programs avoid this. "One thing" is a human idea, subject to interpretation. Should grep and sed be consolidated? Does find do too much? Why do we have both echo and printf?
> Is "reading an email" one thing? And "writing an email" another thing?
Mutt says so. You read and sort emails in Mutt, you write emails in $EDITOR and then you can add attachments and such back in mutt.
> What about "spellchecking the email"?
Well since mutt outsources writing the email, I can't really comment on what mutt does. But if you don't want to do spellchecking within your editor for whatever reason, mutt lets you pipe the contents of anything to an external program, so you could write your email, then select the message from the attachments list and type "|aspell -a<CR>" and you'll get a basic spellcheck.
> What about "managing all my email contacts"?
I think that's pretty clearly a seperate program's duty, since contacts are used by other applications as well. Not only does mutt agree with me, so do Google and Apple. Mutt makes it simple to integrate with external contact lists to provide autocomplete for known email addresses.
> What about "back up my emails"?
That should be taken care of by both your email provider and your personal backup solution. I don't see why an email client would care about backups.
> What about "sign email with GPG"?
Well that's a job for GPG isn't it? That again can be accomplished by just piping the message into an external command. If you use it frequently you'd write some config and scripts to automate it. I saddly rarely uses PGP for email so I don't have hands on experience with this, but it looks like mutt has built in support for this kind of automation. A more unix-aligned approach would be to ship an /usr/share/mutt/examples/auto-gpg.muttrc or something like that that users can just source in their config files.
> but there is just now way you could make GIMP follow the unix principle.
No? Represent layers as a bunch of image files in a directory. Have one program check when they change and composite them in realtime. Have another program render the output of that one to the screen. Have a third integrate with the rendering program and manage the creation of selections (represented as a selection mask, so it supports everything from rectangular selection to brush selection). Drawing tools and filters become programs that take an image and a selection and some (interactive) options and output a new image. Then you have a UI program that brings all these programs together.
If this isn't as performant as Gimp, you can optimize it, for example, by replacing pipelines between parts of the standard toolchain with some kind of shared memory IPC or something similar.
It's not that the ideas behind unix don't apply to modern software; people just don't give a fuck.
Being just a little bit hard-arsed about these things can pay off dramatically.
There was a suite of programs that worked that way: https://en.wikipedia.org/wiki/MH_Message_Handling_System
http://rand-mh.sourceforge.net/book/mh/shomes.html#WeOBeYRe
Using MIME or GPG required a little configuration (mostly preset properly) which hooked external programs to preprocess before sending or displaying the message.
In fact, sometimes it can be the "only" thing you want. Most often it is the case with open source developers when they want to catch up a huge discussion thread. (Like bugs to email interface). Mutt is excellent here.
If I have something to add to the discussion, I have the option to use the command line or log in to web interface and post my response.
It seems that the unix principle is most relevant when compiling a C program takes too long and no interpreters exist that are fast enough. So, you figure out all the higher level functionality that you will need for system administration and compile that long before needing to do any sysadmin work. When a problem arises on a system, you can write a shell script that uses those already compiled commands, instead of writing a C program and waiting for it to compile. If your initial code sucks, you don't have to debug and recompile; you just debug and re-run the script.
Compiling C programs is now substantially less time consuming, so you could use C for sysadmin work (shudder). C shell was perhaps a similar attempt to get the benefits of C, but without the downside of compilation times. I seem to recall some essay on the harmfulness of using csh, so C will continue to keep its place.
I'm certainly not saying that it is the way to go, but a real Unix philosophy way of dealing with email would be to use a command to pull mails from a mail server as text files (heck, as a text stream!), then other commands to display them, sort them, ...
I use mbsync to synchronize my mail over IMAP with my remote mailserver. I use mu to index it for search. I use msmtp to send mail. And I use mutt to read and write mail.
That is, it just reads emails on a local mailfolder. Fetching emails to that mailfolder from the server, sending emails and doing other operations is a task of 3rd party programs.
[1] OK, it has a few addons for lazy people. But most experienced users ignore them.
I don't think that mutt is the most unix-philosophy-aligned MUA possible, it feels kind of like GNU tools: unixy, but jam packed with too many flags and options and convenience features. The unix philosophy would prefer that the application's design be changed to better accomodate implementing those extra features externally where plausible. But the perfect unix MUA would do the same things as mutt.
I can't but help feeling though these days it just doesn't really gain you anything substantive to bother to learn it, or even continue to use it, and spend the hours it will require to dial in and maintain your configuration.
Most gui clients are good enough.. webmail (Gmail and alternatives) are good enough, unless you have some non-negotiable requirement that mandates you have your own self-hosted email servers, I have a hard time believing its not an overall productivity loss to spend time in mutt (or Gnus for emacs, and other such things).
If you like to tinker with that kind of thing, and you like making your email client a hobby of sorts, cool. But what do you really gain other than a techno-bauble to tinker with?
This is my main gripe with mutt. The days where I could futz around with 100 config setting for hours are long behind me. Just having to set up an smtp daemon every time, and having to maintain it, is such a pain in the ass. Probably most tools have moved on by now (I moved away from mutt in 2004 or 2005) but I used mostly postfix and qmail (when I got fed up with one I switched to the other for a few months, etc). Just having to remember the dozens of idiosyncrasies in those was enough of a PITA to make me switch to an integrated graphical mail program.
My main method of searching email was grep -R ~/.Maildir . When I think back about that - ugh.
Once you are "inside" an app instead of your shell prompt, you are no conforming the Unix ideal.
Emacs has always been That Way. And then CERN/Mosaic happened, and browsers (being all-singing, all-dancing environments that do everything from page layout to hosting interpreters and databases, are also big apps) came along.
This has not lead to awk becoming an MUA, or tmux adding a flight simulator, or tee offering to store things as PDFs. Nor has it stopped the development of building-block tools - I still see more nifty new things built with more or less the same assumptions than I can play with.
The only thing I can think of is that you're referring to GUI apps, at least mostly on Linux. GUIs (or more specifically, what Alan Cooper termed 'sovereign applications', but they are mostly GUIs) are typically subject to Zawinski's Law in ways that command line tools are not. Heck, Mutt is somewhat subject to it, itself, for that reason.
<Hoping no-one runs "w" while I'm in elinks>
Its a nice little useful heuristic or reminder to ask yourself if maybe what you are doing is too much.
But maybe what you are doing isn't too much.
That's all it should ever be, IMHO... a reminder to check yourself at some point or another - but its perfectly valid to conclude that your monolithic, large app can and does many things well, and cohesively adds something of value to the software world, that can't or hasn't been accomplished by tiny composable bits, or at least not nearly as well.
What do you use for mobile access?
An android phablet with a full hardware keyboard.
Some decent pictures: http://pandoralive.info/?p=5519
I switched because of search, which is amazing in gmail and hard in mutt (for me). What do you do?
really? until a few months ago, you couldn't find anything besides whole words with textual search on gmail. why do people have it's search at such high standards? how bad was the alternative you had?
Since someone may ask, my desires are simple in nature, but i'm sure difficult to implement. I simply want to find an email. On the Google Search side of things, i have often been very impressed by the search results i am able to achieve. Yet for email, it's been far less successful.
On Search, i'm able to use synonyms, or hell even vaguely describe (in the case of movies) plots, and often be presented with what i want. On Gmail, it feels like Gmail has no idea about the context or content of my mail (which is arguably their selling point), and instead i'm purely searching by keyword. The frustration is amplified by the fact that Search(proper) works so surprisingly well, i'm sure.
Senders name or email? That has always been an option. Has attachments? Been an option since forever. tags? Since forever. date? Available since forever.
For reference, you used to be able to do this - https://code.google.com/p/chromium/codesearch - with an archived cross-section of code on the Web.
I wonder if we'll ever be able to do regex Google searches in the future, or if AI/machine learning will make that sort of flexibility redundant by the time the hardware would be able to handle it.
But seriously, all these hard core unix fans seem a little odd here. Gmail search has always been powerful, and is even more powerful now. It sounds like a case of user error if it isn't working for someone.
Suppose, for example, I have set up a subdir for conferences. That subdir contains a bunch of subdirectories for individual conferences. I know the e-mail I'm looking for is stored in there, because it relates to a conference publication I wrote. However, that subdir itself is "empty" as far as gmail search is concerned (because it's a "tag" rather than a true subdirectory).
The net effect of these hollow imitations of directories is I can either target the search to a specific tag, or I can search throughout my entire collection of messages. (Or, I suppose, I can tag every e-mail with every single sub-tag represented in the directory hierarchy I have mentally set up, just in case I might want to search for it someday.)
The gmail ideal, of course, is that I abandon the notion of directories altogether, and just let all my messages stew in the ocean of e-mail that one accumulates over the years. Supposedly their "powerful" search capabilities will help me find what I want. In my experience, though, under this approach most reasonable searches produce multiple pages of possible matches. This, of course, is hardly efficient.
It would also be nice if I could perform a search and then pull out that page of returned results into a separate screen/window for ongoing reference. Often when I'm searching for something, I'm looking broadly for resources or related conversations, rather than for a specific message.
Another place where I feel gmail search is brain-dead is its lack of regex capability (which @devdas has already mentioned).
Separate screen of search results is just another tab in your browser - that's actually a vote in favor of web based gmail.
To make my example explicit above, suppose I have a "directory" structure with dirs like `conf`, `conf/iaq2016`, and `conf/gmu2012`. Then a search in `conf` will not turn up results in `conf/iaq2016` or `conf/gmu2012`.
Believe me, I check this once every few months, always hoping that google will have improved their "tag" implementation.
I do appreciate your tip about multiple browser windows, though. In general, I don't like having multiple windows open to the same application-- but that's my problem, and not a design flaw in Gmail's search.
I'm curious, what other search does one do in email?
There's also mutt-kz, with notmuch deeply integrated.
zcat Mail/2015/mbox.gz | grepmail -i whatever | grepmail 'perl.style.*regex' >myresults
mutt -f myresults
I think my dissatisfaction with mutt + rss2email is more about RSS in general. It amounts to just being a short description of the article and a hyperlink, and at that point I might as well just load these websites in my browser.
I need a better article scraper. General solutions that try to detect content, like Firefox's article mode and similar, don't do enough.
We need youtube-dl for text.