Skip to main content
5 votes

Can I delete or move mail files from maildir cur folder?

You can use dovecot's own tools for that, e.g. doveadm move. You can use search queries to select mails. This selects all mails in a date range and moves them to the Archive doveadm move -u jane ...
sebix's user avatar
  • 484
4 votes
Accepted

Compressed Maildir [was Strange Postfix Maildir files]

As I further explored the subject, felt something was out of place definitively. My suspicions also grew even more, as when ungzipping some messages, the name was actually updated to reflected the ...
Rui F Ribeiro's user avatar
2 votes
Accepted

Be notified of new mail in any Maildir inbox under ~/Mail, in the Zsh shell

Since Maildir mailboxes are used, new mail may be found by looking for any regular file in any directory called new under ~/Mail. We ignore the fact that for a directory to be a legal Maildir mailbox, ...
Kusalananda's user avatar
  • 356k
2 votes
Accepted

Convert Thunderbird IMAP mail folder to maildir

It looks like your outlook.office365.com/INBOX file might be in mbox format. A Library of Congress website gives some useful information on a number of mbox formats. However, I'm going to guess that ...
DericS's user avatar
  • 836
2 votes

Change existing dovecot maildir installation from m-UTF7 charset to UTF8 to avoid breaking TAB

UTF-8 is key-only option, i.e.: mail_home = /home/data/%d/%n mail_location = maildir:~/mail:LAYOUT=fs:DIRNAME=_m_a_i_l_:UTF-8 see: https://doc.dovecot.org/configuration_manual/mail_location/ https://...
Andrei Pozolotin's user avatar
1 vote

Be notified of new mail in any Maildir inbox under ~/Mail, in the Zsh shell

Creating a custom hook function is not the only possible approach. An alterative approach is use the shell's built-in functionality for mail notifications. Looking at the man page for zsh, mail ...
user92403's user avatar
1 vote
Accepted

Where do custom folders of virtual users with dovecot IMAP get stored?

You probably did not use the -a option to ls, to show files starting with a dot (sometimes called hidden files because of this). Maildir format dictates that sub-folder directories start with a dot, ...
wurtel's user avatar
  • 16.5k
1 vote

accessing Maildir locally with Mutt and remotely over IMAP simultaneously

Mutt does not "complain" about mailbox externally modified, it merely informs the user about changes resulting in simultaneous access to the same mailbox. Some cached flags might be out of ...
Launchpad user unable to login's user avatar
1 vote

How should an email message, represented as a single file, be added to a Maildir?

I confirm @larsks's answer about procmail and maildrop limitations: both tend to require some shell-based wrapping. Additionally, both come with heavy filtering features that are irrelevant when the ...
Xavier G.'s user avatar
1 vote
Accepted

How should an email message, represented as a single file, be added to a Maildir?

What you're looking for is a mail delivery agent ("MDA") with maildir support. There are a couple of programs that fit the bill: procmail can do this, of course, but I don't think it's ...
larsks's user avatar
  • 38.5k
1 vote
Accepted

How to get the notmuch message-id and thread-id from a maildir message filename already in the notmuch db?

I eventually found a way through the notmuch python bindings, see https://notmuch.readthedocs.io/projects/notmuch-python/en/latest/database.html?highlight=filename#notmuch.Database....
jlewk's user avatar
  • 131
1 vote
Accepted

Can mutt handle exclamation points instead of colons in file names?

After looking at the source code I'm afraid this is not possible in mutt nor neomutt at the moment. Links lead to latest commits in master branch as of now. In both cases the colon separator is ...
Jakub Jindra's user avatar
  • 1,522
1 vote

Bash scripting in a Maildir directory

When the shell executes an external command, the length of the command line, after expansion of any filename globbing pattern such as *, must not exceed a particular length. In your case, grep '...
Kusalananda's user avatar
  • 356k
1 vote

Bash scripting in a Maildir directory

Ask grep itself to construct the file list, by recursing from the current directory: grep -r MyPattern . This isn’t quite the same as *, since it will search in sub-directories, but for mail ...
Stephen Kitt's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible