Save an email attachment automatically to map with qmail and reformime
问题 Save an email attachment automatically to map with qmail and reformime I'm trying to move attachment automatically to another locatie with the dot-qmail file. My .qmail file #------------------------------------------------------------ | condredirect pdf-junkmail headermatch 'X-Spam-Status: Yes' | reformime -X /bin/sh -c "if [ "\${FILENAME#*.}" == "pdf" ]; then cat > /home/users/name/home/$(date +%Y%m%d)_\$FILENAME; fi" # Forward not set # Vacation Message not set ./Maildir/ This works for a