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

What if INBOX name is empty? (as in 'folder:""') #302

Open
atrent opened this issue Nov 17, 2020 · 4 comments
Open

What if INBOX name is empty? (as in 'folder:""') #302

atrent opened this issue Nov 17, 2020 · 4 comments

Comments

@atrent
Copy link

atrent commented Nov 17, 2020

I'm trying to config an INBOX filter but since I'm using maildir++ my config file would be something like:

[MailMover]
folders = ""
rename = False
max_age = 2

# rules
"" = 'subject:prova':systems

but this does not work, how could I workaround it?

Thank you

P.S. I'm attaching an excerpt of notmuch-search-term man:

  folder:<maildir-folder> or folder:/<regex>/
              The folder: prefix searches for email messages by maildir or MH folder. For MH-style folders, this is equivalent to path:. For maildir, this
              includes messages in the "new" and "cur" subdirectories. The exact syntax for maildir  folders  depends  on  your  mail  configuration.  For
              maildir++, folder:"" matches the inbox folder (which is the root in maildir++), other folder names always start with ".", and nested folders
              are separated by "."s, such as folder:.classes.topology. For "file system" maildir, the inbox is typically folder:INBOX and  nested  folders
              are separated by slashes, such as folder:classes/topology.

              folder: will find a message if any copy of that message is in the specific folder.

@GuillaumeSeren
Copy link
Collaborator

Hello !
can you show more about the maildir struture, I guess you could find a way to define the folder/subfolder couple,
I have to look into the MailMover to see, but I need more details.

@atrent
Copy link
Author

atrent commented Nov 21, 2020

mail maildir is something like:

$ ls Maildir/
cur
new
tmp
(+ dovecot files)

and subfolders are like:

$ ls -a Maildir
.folder1
.folder2
.folder3
...
(every .folder has cur/new/tmp subfolders)

@atrent
Copy link
Author

atrent commented Nov 21, 2020

currently my workaround is to move everything form inbox into a "pending" folder with imapfilter, then I can use something such as:

pending = 'subject:prova':systems

and it works

@GuillaumeSeren
Copy link
Collaborator

Hey @atrent

so you have maildir inside maildir right ?

Can you show a terminal / verbose call of the issue ?

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

No branches or pull requests

2 participants