Closed emory closed 12 years ago
Whoops, this was a silly mistake on my part. Can you try with the latest master please? I believe it fixes the issue. Please reopen if not.
Oops, still being weird:
% ruby -Ilib bin/heliotrope-import -i nas01.local -d EmoryMail -o
IMAP username: lusername
IMAP password:
Loading mail source...
; connecting to nas01.local:143 (ssl: false)...
/Network/Servers/buster.local/Volumes/nethome/emory/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/imap.rb:1397:in
connect':`SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol (OpenSSL::SSL::SSLError)
from /Network/Servers/buster.local/Volumes/nethome/emory/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/imap.rb:1397:in start_tls_session'
from /Network/Servers/buster.local/Volumes/nethome/emory/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/imap.rb:999:in
initialize'
from /Volumes/nethome/emory/Projects/heliotrope/lib/heliotrope/imap-dumper.rb:141:in new'
from /Volumes/nethome/emory/Projects/heliotrope/lib/heliotrope/imap-dumper.rb:141:in
load!'
from bin/heliotrope-import:127:in <main>'
the IMAP server is a ReadyNAS NV+ (sparc) running dovecot.
Ok, I found a bug in how I was creating the Net::IMAP that would cause it to use SSL even if you used ssl: false. I think that is the cause of the above. Can you try again please?
Bigger problem:
· @buster · ~/Projects/heliotrope % ruby -Ilib bin/heliotrope-import -i nas01.local -d What -o
IMAP username: emory
IMAP password:
Loading mail source...
; connecting to nas01.local:143 (ssl: false)...
; login as emory ...
; is this your first time, sweetie? downloading all uids...
; found 0 messages to import
Importing mail...
; scanned 0, indexed 0, skipped 0 bad and 0 seen messages in 5.2s = 0.0 m/s
Done.
IMAP repo has plenty of messages, offlineimap/mutt can see them all at any rate!
p.s.
; is this your first time, sweetie? downloading all uids...
Never change.
Sorry I never got back to you on this. I suspect you have a buggy IMAP server, or maybe this just requires some IMAP knowledge that I don't have. Heliotrope does a "uid search not deleted" to get the uids of all messages. Does this not work for you? Can you figure out what Mutt, et al are doing?
I think it's entirely possible that it's a buggy IMAP server, I won't be able to do much about that one though.
Since I can't get turnsole to work right either, I'm not in a hurry to get my mail into heliotrope. I'll be watching the project though and make attempts as I can!
William Morgan wrote:
Sorry I never got back to you on this. I suspect you have a buggy IMAP server, or maybe this just requires some IMAP knowledge that I don't have. Heliotrope does a "uid search not deleted" to get the uids of all messages. Does this not work for you? Can you figure out what Mutt, et al are doing?
Reply to this email directly or view it on GitHub: https://github.com/wmorgan/heliotrope/issues/28#issuecomment-3307516
Excerpts from emory's message of Thu Dec 29 17:25:59 -0800 2011:
I think it's entirely possible that it's a buggy IMAP server, I won't be able to do much about that one though.
Well, if you can figure out what Mutt does, I'm all ears. Maybe uid search is not a well-supported command. Who knows. Optionally, you can use offlineimap or something to download your mail locally, and import from there.
Since I can't get turnsole to work right either, I'm not in a hurry to get my mail into heliotrope.
William w@masanjin.net
I get an error for self-signed SSL when I connect using SSL and couldn't figure out how to tell heliotrope to trust my untrustworthy self-signed certificate.
Upon attempting to use non-SSL'ed IMAP (which I have enabled server-side, using dovecot and enabling plain-text authentication) I get the above error.
I'm not sure that I'm not doing something dumb.