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 ...
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 ...
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, ...
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 ...
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://...
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 ...
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, ...
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 ...
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 ...
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 ...
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....
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 ...
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 '...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
maildir × 47email × 17
postfix × 8
dovecot × 8
imap × 8
mutt × 7
debian × 3
thunderbird × 3
procmail × 3
shell × 2
centos × 2
files × 2
scripting × 2
software-rec × 2
synchronization × 2
mailx × 2
notmuch × 2
linux × 1
bash × 1
ubuntu × 1
command-line × 1
grep × 1
permissions × 1
zsh × 1
regular-expression × 1