Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sup doesn't find any sent mails anymore #479

Open
fxkr opened this issue Sep 25, 2015 · 14 comments
Open

Sup doesn't find any sent mails anymore #479

fxkr opened this issue Sep 25, 2015 · 14 comments
Labels

Comments

@fxkr
Copy link

fxkr commented Sep 25, 2015

Hi,

to test #450 I used the git version and promptly ran into #467. Luckily I had a backup of my config.yaml. But now, when I send a mail, it doesn't show up in sup anymore.

If someone replies, my mail will show up as <an unreceived message>.
If it's an older message it'll show it as Sup Auto-generated Fake Sender.
I tried running sup-sync and now my inbox is empty. Nooooo!
Additionally, it says Searching for threads... now, and if I press any key it crashes:

--- RuntimeError from thread: load threads for thread-index-mode
invalid source 1
/home/fxkr/sup-git/lib/sup/index.rb:241:in `block in build_message'
/home/fxkr/sup-git/lib/sup/index.rb:239:in `map'
/home/fxkr/sup-git/lib/sup/index.rb:239:in `build_message'
/home/fxkr/sup-git/lib/sup/index.rb:165:in `block (2 levels) in each_id_by_date'
/home/fxkr/sup-git/lib/sup/thread.rb:344:in `call'
/home/fxkr/sup-git/lib/sup/thread.rb:344:in `block in load_n_threads'
/home/fxkr/sup-git/lib/sup/index.rb:165:in `block in each_id_by_date'
/home/fxkr/sup-git/lib/sup/index.rb:288:in `block in each_id'
/home/fxkr/sup-git/lib/sup/index.rb:288:in `each'
/home/fxkr/sup-git/lib/sup/index.rb:288:in `each_id'
/home/fxkr/sup-git/lib/sup/index.rb:165:in `each_id_by_date'
/home/fxkr/sup-git/lib/sup/thread.rb:340:in `load_n_threads'
/home/fxkr/sup-git/lib/sup/modes/thread_index_mode.rb:686:in `load_n_threads'
(eval):12:in `load_n_threads'
/home/fxkr/sup-git/lib/sup/modes/thread_index_mode.rb:670:in `block in load_n_threads_background'
/home/fxkr/sup-git/lib/sup.rb:103:in `block in reporting_thread'

I have :sent_source: sup://sent in config.yaml, and here's my sources.yaml:


---
- !supmua.org,2006-10-01/Redwood/Maildir
  uri: maildir:///~/.mail
  usual: true
  archived: false
  sync_back: true
  id: 1
  labels: []
- !supmua.org,2006-10-01/Redwood/SentLoader {}

Help?

@gauteh
Copy link
Member

gauteh commented Sep 25, 2015

Could be related to #467

@gauteh
Copy link
Member

gauteh commented Sep 25, 2015

Ah, I saw you noticed that already. Did you find the new sources.yaml and config.yaml in .config/sup/? The sent.mbox should be in .local/share/sup/.

The config.yaml and sources.yaml you describe, are they in .config/sup?

@gauteh gauteh added the bug label Sep 25, 2015
@fxkr
Copy link
Author

fxkr commented Sep 25, 2015

I found sources.yml and config.yaml in .config/sup/, but they seemed to be default files. I restored these from a backup before starting sup again.

@gauteh
Copy link
Member

gauteh commented Sep 25, 2015

Is sent.mbox in .local/share/sup ?

@fxkr
Copy link
Author

fxkr commented Sep 25, 2015

Yes, but it's empty.

@gauteh
Copy link
Member

gauteh commented Sep 25, 2015

@ZJvandeWeg: #401 ping!

@gauteh
Copy link
Member

gauteh commented Sep 25, 2015

Ok. Is the old one still in ~/.sup ?

@fxkr
Copy link
Author

fxkr commented Sep 25, 2015

I'm not sure if it was. It isn't now, but I'm not absolutely sure anymore how I got to that state. (Good that I have a global shell history...)

(I tried to go back to the non-git version, though I think I made things worse. Damn.)

@gauteh
Copy link
Member

gauteh commented Sep 25, 2015

If you go back, you need to restore all the files to ~/.sup.

There was a question when you started the git version the first time, about what to do about the configs. What did you answer there?

@fxkr
Copy link
Author

fxkr commented Sep 25, 2015

Yes, that's what I tried - starting with an empty ~/.sup, merging .local/share/sup and .config/sup into ~/.sup. I'm sure I didn't overwrite any files at that point (mv -i). My ~/.sup/sent.mbox is empty now, but it came from ~/.local/share/sup/.

y.

@gauteh
Copy link
Member

gauteh commented Sep 25, 2015

Weird... @ZJvandeWeg: Is there a race condition where sources and configs are instantiated before the copy, then written after the copy - effectively resetting them?

@ZJvandeWeg
Copy link
Contributor

Im unsure how all the files, config, sources and mbox are reset to the default. These should have been copied.
I would agree there is a race condition. Will look into that later

@gauteh
Copy link
Member

gauteh commented Sep 25, 2015

This and #467 is critical. I have reverted the xdg patches and put them in the xdg branch, for git testers: please move all the content of .config/sup/* and .local/share/sup/* back to ~/.sup.

@ZJvandeWeg: We need more testing on this before we can keep it in develop, we can't risk more data loss.

@ZJvandeWeg
Copy link
Contributor

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants