Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Marin Usalj
@supermarin
Offlineimap v7.2.3
Nicolas Sebrecht
@nicolas33
This should be python2
Marin Usalj
@supermarin
thanks for the quick answer Nicholas, mind elaborating on the first message?
Nicolas Sebrecht
@nicolas33
Can't find a pythonfile somewhere in our repository.
Marin Usalj
@supermarin
FWIW it seems like it should be possible to use python3 as per https://github.com/keith/dotfiles/blob/master/mutt/offlineimaphelpers.py
Nicolas Sebrecht
@nicolas33
The pythonfile is not executed. It's imported by offlineimap.
Marin Usalj
@supermarin
oh gotcha
so need to force launch offlineimap with python3?
Nicolas Sebrecht
@nicolas33
We had people trying to port offlineimap to py3.
We couldn't get it working.
Marin Usalj
@supermarin
I see
looking at the file above again, there's a shebang but seems like it's all py2 syntax
will just port the helpers to py2 then, thank you!
Nicolas Sebrecht
@nicolas33
The shebang in this file does nothing.
'offlineimaphelpers'
Marin Usalj
@supermarin
yep got it
if it's imported makes sense
Ghost
@ghost~5c7a27c5d73408ce4fb96504
@nicolas33 my distro is CRUX
here is my port for offlineimap. https://abdullah.today/ports/offlineimap/Pkgfile
Nicolas Sebrecht
@nicolas33
@AbdullahKhan7_gitlab Thanks. Is this official for crux?
ZaxonXP
@ZaxonXP
In the offlineimap.conf file there is a section about generating mailboxes for mutt. [mbnames]. I am interested in filtering the names using mbnames_folderfilter, but somehow it is not working: mbnames_folderfilter = lambda foldername: foldername not in ['[Gmail].Drafts', '[Gmail].Spam', '[Gmail].Bin']
how should I do it?
Nahra
@Nahra
Hi, here is error I am getting when connecting to gmail imap server: https://clbin.com/zcHlf
I can connect using webmail or other mail client without any problem.
I also can connect to other imap servers from other providers without any problem using offlineimap.
Can somebody help?
Nahra
@Nahra
Here is configuration I use: https://clbin.com/FcdJ1
Nicolas Sebrecht
@nicolas33
@Nahra I don't think it's possile to login to gmail with LOGIN anymore. Perhaps there's a configuration option in the webmail, though.
Nahra
@Nahra
Ah. What would be possible so?
Nicolas Sebrecht
@nicolas33
@Nahra XOAUTH.
Jack Henahan
@jhenahan
Just to be sure I understand, sync_deletes = no will cause offlineimap to ignore deletes from the upstream, right? I'm trying to set up a durable archive of one of my accounts, and I want to be sure that emails that are deleted on the remote will remain as long as I've pulled them at some point
I guess I'd have to set readonly to avoid those getting pushed back up, unless it's smarter than I think it is
Jack Henahan
@jhenahan
So my best move may be to set up a second repository matching the first which is readonly and doesn't sync deletes, and just keep that in a separate maildir
Nahra
@Nahra
Thanks @nicolas33, I got it working :)
Nicolas Sebrecht
@nicolas33
Just to be sure I understand, sync_deletes = no will cause offlineimap to ignore deletes from the upstream, right?
No, sync_deletes = no won't make the other side aware of the deletion from THIS side.
@jhenahan
And yes, setting up a full new account is best to decorrelate one purpose from the other.
Norbert Preining
@norbusan

Dear all,
since quite some time I am trying to get offlineimap again working with gmail. I say "again" because till some month ago it was working, and then it stopped. I am using a gsuite gmail account of my company, and the access for "less secure apps" is turned off in gsuite. In addition we are using 2-factor authentication.

I have tried the xoauth method as described
https://github.com/OfflineIMAP/offlineimap/blob/master/offlineimap.conf#L899 but I always get authentication errors.

My guess is that it is related to this: https://gsuiteupdates.googleblog.com/2019/06/third-party-apps-gmail-data.html but I am not really sure what is necessary.

Has anyone seen a similar behavior and knows how to get it working?

Of course I have tried application passwords, but the access is blocked due to "less secure apps not allowed" (and my company does not want to enable it).

Interestingly, thunderbird is able to get the emails, so there needs to be a way to do it ...

Nicolas Sebrecht
@nicolas33
My understanding is that if the admin forbid the access to thrid apps it's not possible to end-users to authenticate anymore. I think that Thunderbird uses PLAIN authentication via SSL.
IOW, XOAUTH2 is bloked but you could still use the PLAIN auth mechanism in offlineimap via SSL.
Norbert Preining
@norbusan
Thanks @nicolas33 so you mean THunderbird uses normal login with second-factor check to authenticate? But this is something that wouldn't work in offlineimap, right? How could I provide the second factor?
Nicolas Sebrecht
@nicolas33
@norbusan I'm not sure about Thunderbird. That's a guess.
I'm not a gmail user for years. If XOAUTH2 requires the use of the third party app I think it's possible to use the usual IMAP AUTH method which is supported by offlineimap (PLAIN in SSL).
This message was deleted
Nicolas Sebrecht
@nicolas33
The second auth factor is another thing. It's usually done by providing a mobile phone number in gmail to google.
Chris Coleman
@chris001
Hi @nicolas33 Please check your email! -Chris
Chris Coleman
@chris001
Hi @nicolas33 I sent you another mail. -Chris