[notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-03 Thread Sebastian Spaeth
On Tue, 2 Feb 2010 23:25:18 +0100, Michal Sojka wrote: > I want it to work the same way as you expected. It seems it would be > necessary > to modify notmuch_database_remove_message() so that it changes folder term if > it detects rename. On a tangetial issue: It would help if notmuch were

[notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-03 Thread Sebastian Spaeth
> /media/mail/mail > ??? cur > ? ??? 1265050537.H891745P1231.samir.ibcsolutions.de:2,S > ? ??? 1265050572.H419259P1443.samir.ibcsolutions.de:2,S > ? ??? 1265050598.H121639P1634.samir.ibcsolutions.de:2,S > ? ??? 1265050617.H309805P1774.samir.ibcsolutions.de:2,S > ? ???

Re: [notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-03 Thread Sebastian Spaeth
On Tue, 2 Feb 2010 23:25:18 +0100, Michal Sojka sojk...@fel.cvut.cz wrote: I want it to work the same way as you expected. It seems it would be necessary to modify notmuch_database_remove_message() so that it changes folder term if it detects rename. On a tangetial issue: It would help if

[notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-02 Thread Michal Sojka
On Tuesday 02 February 2010 22:31:38 micah anderson wrote: > On Tue, 02 Feb 2010 13:22:29 -0500, Jameson Rollins wrote: > > I'm starting to think that maybe the folder: field is not the right way > > to do this, though. What if a message moves? > > The easiest way to answer this question is to

[notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-02 Thread Michal Sojka
On Tuesday 02 February 2010 18:48:25 Arvid Picciani wrote: > On Tue, 2 Feb 2010 16:01:08 +0100, Michal Sojka > > wrote: > > Stores the folder (directory name) of the message in the database as a > > term with folder prefix. Hi, I've just made several experiments. I tested both Maildir layout

[notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-02 Thread Arvid Picciani
It's all the dots fault. it works just fine with folders not beginning with . On Tue, 02 Feb 2010 13:22:29 -0500, Jameson Rollins wrote: > I'm going back to my original > suggestion, which was that the configuration should state tag that > should be added for messages in certain folders.

[notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-02 Thread Jameson Rollins
On Tue, 2 Feb 2010 23:25:18 +0100, Michal Sojka wrote: > On Tuesday 02 February 2010 22:31:38 micah anderson wrote: > > The easiest way to answer this question is to try it. I did that, and > > things didn't work as expected. I expected that once the message was > > moved to a different folder,

[notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-02 Thread micah anderson
On Tue, 02 Feb 2010 13:22:29 -0500, Jameson Rollins wrote: > I'm starting to think that maybe the folder: field is not the right way > to do this, though. What if a message moves? The easiest way to answer this question is to try it. I did that, and things didn't work as expected. I expected

[notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-02 Thread Michal Sojka
Stores the folder (directory name) of the message in the database as a term with folder prefix. This patch was originally sent by Andreas Kl?ckner. The differences from the original patch are: - Folder name is taken from strings generated during travesal. It no longer uses glib nor it allocates

[notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-02 Thread Jameson Rollins
On Tue, 02 Feb 2010 18:48:25 +0100, Arvid Picciani wrote: > On Tue, 2 Feb 2010 16:01:08 +0100, Michal Sojka > wrote: > unfortunately it doesnt do anything here :/ > i rebuilt the entire index, but no folder: field is added. > can anyone who got it working tell me their directory layout? > mine

[notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-02 Thread Jameson Rollins
On Tue, 02 Feb 2010 11:20:02 -0500, Jameson Rollins wrote: > I just gave it a try, though, and it seemed to be behaving a little > strangely. I currently have two subdirectories, "inbox" and "sent". > However, new mail to either directory was showing up under the search: > > notmuch search

[notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-02 Thread Jameson Rollins
On Tue, 2 Feb 2010 16:01:08 +0100, Michal Sojka wrote: > Stores the folder (directory name) of the message in the database as a > term with folder prefix. > > This patch was originally sent by Andreas Kl?ckner. The differences > from the original patch are: > - Folder name is taken from strings

[notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-02 Thread Michal Sojka
Stores the folder (directory name) of the message in the database as a term with folder prefix. This patch was originally sent by Andreas Klöckner. The differences from the original patch are: - Folder name is taken from strings generated during travesal. It no longer uses glib nor it allocates

Re: [notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-02 Thread Jameson Rollins
On Tue, 2 Feb 2010 16:01:08 +0100, Michal Sojka sojk...@fel.cvut.cz wrote: Stores the folder (directory name) of the message in the database as a term with folder prefix. This patch was originally sent by Andreas Klöckner. The differences from the original patch are: - Folder name is taken

Re: [notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-02 Thread Jameson Rollins
On Tue, 02 Feb 2010 11:20:02 -0500, Jameson Rollins jroll...@finestructure.net wrote: I just gave it a try, though, and it seemed to be behaving a little strangely. I currently have two subdirectories, inbox and sent. However, new mail to either directory was showing up under the search:

Re: [notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-02 Thread Arvid Picciani
On Tue, 2 Feb 2010 16:01:08 +0100, Michal Sojkasojk...@fel.cvut.cz wrote: Stores the folder (directory name) of the message in the database as a term with folder prefix. unfortunately it doesnt do anything here :/ i rebuilt the entire index, but no folder: field is added. can anyone who got

Re: [notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-02 Thread Jameson Rollins
On Tue, 02 Feb 2010 18:48:25 +0100, Arvid Picciani a...@exys.org wrote: On Tue, 2 Feb 2010 16:01:08 +0100, Michal Sojkasojk...@fel.cvut.cz wrote: unfortunately it doesnt do anything here :/ i rebuilt the entire index, but no folder: field is added. can anyone who got it working tell me

Re: [notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-02 Thread Arvid Picciani
It's all the dots fault. it works just fine with folders not beginning with . On Tue, 02 Feb 2010 13:22:29 -0500, Jameson Rollins jroll...@finestructure.net wrote: I'm going back to my original suggestion, which was that the configuration should state tag that should be added for messages

Re: [notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-02 Thread Michal Sojka
On Tuesday 02 February 2010 18:48:25 Arvid Picciani wrote: On Tue, 2 Feb 2010 16:01:08 +0100, Michal Sojkasojk...@fel.cvut.cz wrote: Stores the folder (directory name) of the message in the database as a term with folder prefix. Hi, I've just made several experiments. I tested both

Re: [notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-02 Thread Michal Sojka
On Tuesday 02 February 2010 22:31:38 micah anderson wrote: On Tue, 02 Feb 2010 13:22:29 -0500, Jameson Rollins jroll...@finestructure.net wrote: I'm starting to think that maybe the folder: field is not the right way to do this, though. What if a message moves? The easiest way to answer

Re: [notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-02 Thread Jameson Rollins
On Tue, 2 Feb 2010 23:25:18 +0100, Michal Sojka sojk...@fel.cvut.cz wrote: On Tuesday 02 February 2010 22:31:38 micah anderson wrote: The easiest way to answer this question is to try it. I did that, and things didn't work as expected. I expected that once the message was moved to a

Re: [notmuch] [PATCHv2] Preserve folder information when indexing

2010-02-02 Thread Sebastian Spaeth
/media/mail/mail ├── cur │ ├── 1265050537.H891745P1231.samir.ibcsolutions.de:2,S │ ├── 1265050572.H419259P1443.samir.ibcsolutions.de:2,S │ ├── 1265050598.H121639P1634.samir.ibcsolutions.de:2,S │ ├── 1265050617.H309805P1774.samir.ibcsolutions.de:2,S │ ├──