Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
net-mail/offlineimap to be removed; what alternative?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
progo
n00b
n00b


Joined: 22 May 2006
Posts: 25

PostPosted: Tue Jun 23, 2020 9:54 am    Post subject: net-mail/offlineimap to be removed; what alternative? Reply with quote

Good day.

I noticed that net-mail/offlineimap is going to be removed from portage. Understandable, it is Python 2 code and stuff.


Outside imapsync are there "drop-in" replacements for this program? I'm just syncing a couple of maildirs (one being Gmail) using cron on my personal user so excessive "server to server" solutions seem like an overkill.
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Tue Jun 23, 2020 11:43 am    Post subject: Reply with quote

so far as I can see offlineimap supports python3
(see e.g. http://www.offlineimap.org/development/2016/06/04/python3-support.html)
since 2016. But maybe that experimental support has been deprecated; I don't know.

An ebuild with python3 instead of python2 dependency might work.
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
progo
n00b
n00b


Joined: 22 May 2006
Posts: 25

PostPosted: Tue Jun 23, 2020 1:22 pm    Post subject: Reply with quote

Judging from Github issue tracker, there are a few unsolved long standing issues with the Py3 port. Apparently it's just not that popular a software, I don't see any major obstacles in there. Of course I only gave a superficial glance on the reported issues.
Back to top
View user's profile Send private message
fturco
Veteran
Veteran


Joined: 08 Dec 2010
Posts: 1184
Location: Italy

PostPosted: Tue Jun 23, 2020 1:58 pm    Post subject: Reply with quote

From offlineimap's GitHub repository:
Nicolas Sebrecht wrote:
Project status and future
As one of the maintainer of OfflineIMAP, I'd like to put my efforts into imapfw. imapfw is software in development that I intend to replace OfflineIMAP with in the long term.

That's why I'm not going to continue OfflineIMAP development. I'll continue to maintain OfflineIMAP (fixing small bugs, reviewing patches and merging, and rolling out new releases), but that's all.

While I keep tracking issues for OfflineIMAP, you should not expect future support.

You won't be left at the side. OfflineIMAP's community is large enough so that you'll find people for most of your issues.

Get news from the blog.

But last blog post was in 2017, and last commit for the imapfw GitHub repository was in 2017, too.
Back to top
View user's profile Send private message
fturco
Veteran
Veteran


Joined: 08 Dec 2010
Posts: 1184
Location: Italy

PostPosted: Tue Jun 23, 2020 2:05 pm    Post subject: Reply with quote

net-mail/isync may be used as an alternative to offlineimap as far as I know, but I haven't personally tested it yet.
Back to top
View user's profile Send private message
progo
n00b
n00b


Joined: 22 May 2006
Posts: 25

PostPosted: Wed Jun 24, 2020 8:49 am    Post subject: Reply with quote

fturco wrote:
net-mail/isync may be used as an alternative to offlineimap


The name "isync" wasn't familiar but the program "mbsync" rings a bell.

I couldn't get the existing local mirror of my IMAP folders to match but it wasn't any sweat to redo the sync. This seems to do the job very well as far as I can tell.

If this was the old offlineimap configuration that I used...

Code:
[general]
accounts = Kapsi
maxsyncaccounts = 3

[Account Kapsi]
localrepository = Local-kapsi
remoterepository = Remote-kapsi

[Repository Local-kapsi]
type = Maildir
localfolders = ~/Mail/Maildir-kapsi

[Repository Remote-kapsi]
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
type = IMAP
remotehost = mail.kapsi.fi
remoteuser = myuser
remotepass = mypass


... This seems to closely resemble the same behavior when using isync:

Code:
SyncState *
Sync Pull All Push All

IMAPAccount myuser@kapsi
Host mail.kapsi.fi
Port 143
User myuser
Pass mypass

IMAPStore kapsi-remote
Account myuser@kapsi
UseNamespace yes

MaildirStore kapsi-local
SubFolders Verbatim
Inbox ~/Mail/kapsi/INBOX/
Path ~/Mail/kapsi/
Flatten .

Channel Kapsi
Master :kapsi-remote:
Slave :kapsi-local:
Patterns *
Create Both


Hopefully somebody finds this useful. (Some cargo culting happening in here, feel free to peruse the manpages.)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum