Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经成功地将我的邮件 imap 代理从 dovecot 更改为 courier-imap,对于一些必需的功能,我如何在 maildrop/seive 目录结构中遇到问题,我需要将 10000 个邮箱移动到正确的目录结构,
所以我需要的是一个脚本,它将转换为像这样移动
mv /var/vmail/[域]/[用户名]/Maildir/* /var/vmail/[域]/[用户名]/
我不想运行这个命令 10000 次,它很麻烦,你能帮忙吗?
谢谢你
for dir in /var/vmail/*/* do mv "$dir"/Mail/* "$dir" done