Let Clash handle all local network traffic.
# Create a separate user to run Clash
useradd clash
# Note down UID
id clash
# Use rest of the file in this gist as usual.
#!/usr/bin/env ruby | |
# Maildir folder: create an UTF-8 symlink to original UTF-7 maildir. | |
# For example, it will create a symlink named '所有邮件' to a directory | |
# named '&YkBnCZCuTvY-' | |
utf7_dirs = Dir.entries(Dir.pwd).select do |dir| | |
dir.start_with?("&") | |
end | |
utf7_dirs.each do |dir| |