You are not logged in.

#1 2013-09-07 05:59:05

cutuchiqueno
Member
Registered: 2013-07-06
Posts: 70

[SOLVED] The correct email environment for the shell

Some month ago I decided to move as many tasks as possible to the shell. On the way I came to Arch. Everything is working great, but one issue I just couldn't solve although I came back to it so often: Building a working setup to consume my Email. Yes, I worked myself through the wiki and yes I read many posts and still I am stucked.

I started to only work with "mutt" but I never got it working with the 3 IMAP accounts on my hosted server [each with the same domain] and my pop3 account at work. After I read so often that mutt was not designed originally to support IMAP and that it is basically a reading app I tried a setup combining fdm to fetch the Emails and mutt to read them (Basically fdm fetched and labeled the Emails and instead of folders I used the labels as filters in mutt). This approach has two problems:

1) fdm deletes the emails on the IMAP server, so I can't read them on another device anymore or by using 'keep' it is downloading them again and again at every fetch operation.
2) when I read the Emails in mutt the status read or unread is not changed on the server.

The setup I would like to achieve is the following: Emails from IMAP server are downloaded to read them offline; To read the Email I want to use mutt (I don't like Alpine); When I read the Emails in mutt the status of the Email should change to read both on the server and on my machine.

Is this possible?

Last edited by cutuchiqueno (2013-09-14 19:05:00)

Offline

#2 2013-09-07 06:43:25

rufus
Banned
From: san francisco
Registered: 2013-04-20
Posts: 153

Re: [SOLVED] The correct email environment for the shell


end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     'the machine is not the end to the means., we are. In history, in board rooms and politic the greatest  decision and effort
        evolves from passion, lust for life, and a common sense of humanity. Never forget what you are and why'.         -me

Offline

#3 2013-09-07 09:11:27

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,042

Re: [SOLVED] The correct email environment for the shell

cutuchiqueno wrote:

Some month ago I decided to move as many tasks as possible to the shell. On the way I came to Arch. Everything is working great, but one issue I just couldn't solve although I came back to it so often: Building a working setup to consume my Email. Yes, I worked myself through the wiki and yes I read many posts and still I am stucked.

I started to only work with "mutt" but I never got it working with the 3 IMAP accounts on my hosted server [each with the same domain] and my pop3 account at work. After I read so often that mutt was not designed originally to support IMAP and that it is basically a reading app I tried a setup combining fdm to fetch the Emails and mutt to read them (Basically fdm fetched and labeled the Emails and instead of folders I used the labels as filters in mutt). This approach has two problems:

1) fdm deletes the emails on the IMAP server, so I can't read them on another device anymore or by using 'keep' it is downloading them again and again at every fetch operation.
2) when I read the Emails in mutt the status read or unread is not changed on the server.

The setup I would like to achieve is the following: Emails from IMAP server are downloaded to read them offline; To read the Email I want to use mutt (I don't like Alpine); When I read the Emails in mutt the status of the Email should change to read both on the server and on my machine.

Is this possible?

Ignore Rufus. I think you've shown evidence of having done research already. Anyway, most people around these parts use Offlineimap for syncing their IMAP servers to local folders to be read in Mutt.

Offline

#4 2013-09-07 09:36:44

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] The correct email environment for the shell

Pat Brisbin's posts on using mutt, offlineimap with multiple accounts remains the gold standard.

It is linked to from the bottom of the mutt page on the wiki.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2013-09-07 12:22:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: [SOLVED] The correct email environment for the shell

While mutt certainly does work just fine with imap accounts directly, the documentation for this isn't great.  I used such a set up for a while, and every example configuration used gmail as a simplified imap example.  But I wasn't finding the non-simplified instructions for those of us who don't use gmail.

I did get it working just fine, so it can be done.  But then I also started using offlineimap, and now I just don't know how I got by without it.  Offlineimap + mutt is simple, efficient, and works great.

When that's all set up, you may also be interested in NotMuch to for mail indexing (searching).

Last edited by Trilby (2013-09-07 12:23:10)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2013-09-07 17:06:08

cutuchiqueno
Member
Registered: 2013-07-06
Posts: 70

Re: [SOLVED] The correct email environment for the shell

Thanks a lot for all your feedback.

@jakobcreutzfeldt special thanks. Indeed, I played around so much without getting to a working setup that I just confused in the end. Maybe I should have described all the approaches I tried already in a more precise way.

The idea behind fdm instead of offlineIMAP was, that I have both IMAP in private and POP3 in working environment and fdm is capable to handle both. Additionally, it has a nice filtering function. The only problem is that using 'keep' Emails are downloaded again and if don't use it the Emails will be deleted on the server. Otherwise this would be my choice

@jasonwryan sorry, that's really something I have to focus on more; that there are more resources referenced below, I sometimes forget this. The Post looks promising, I'll try it out because the appraoch which is documented in the wiki for multiple accounts didn't work for me. I couldn't find out why. Although, the problem with IMAP and POP3 remains. Maybe I try to setup POP3 directly in mutt and hope that this addition will not break the rest of it.

@Trilby I just stumbled upon notMuch today, but I think this will be the next step ;-)

So, thanks again. Maybe someone has an additional best practice advise for my my "POP3 and IMAP" probem

Offline

#7 2013-09-14 19:04:39

cutuchiqueno
Member
Registered: 2013-07-06
Posts: 70

Re: [SOLVED] The correct email environment for the shell

I had to apply a paralel strategy which I tried to avoid before: I now use offlineIMAP for IMAP by following the mentioned tutorial and fdm for my working email that is POP3. Thanks for the orienting input.

Offline

Board footer

Powered by FluxBB