Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # vim: ft:perl
- #logfile "/home/agateau/mailfilter.log"
- DEFAULT="Maildir"
- if ( /^X-Launchpad-Bug:/ )
- {
- log "Launchpad bug"
- if ( /^X-Launchpad-Message-Rationale: .*@([-a-z]+)/ )
- {
- TEAM=$MATCH1
- DEST=`/home/agateau/bin/lpbugdir $DEFAULT $TEAM`
- log "Moving lpbug message to $DEST"
- to "${DEFAULT}/.$DEST"
- }
- else
- {
- to "${DEFAULT}/.bugs"
- }
- }
- if ( /^List-Id:.*plasma-devel.kde.org/ )
- {
- to "${DEFAULT}/.plasma-devel"
- }
- if ( /^(To|CC):.*canonical-tech@lists.launchpad.net/ )
- {
- to "${DEFAULT}/.canonical-tech"
- }
- if ( /^List-Id: <ayatana-commits.lists.launchpad.net>/ )
- {
- to "${DEFAULT}/.commits"
- }
- if ( /^(To|CC):.*xdg@lists.freedesktop.org/ )
- {
- to "${DEFAULT}/.xdg"
- }
- if ( /^(To|CC):.*kde-core-devel@kde.org/ )
- {
- to "${DEFAULT}/.kde-core-devel"
- }
- if ( /^(To|CC):.*ayatana@lists.launchpad.net/ )
- {
- to "${DEFAULT}/.ayatana"
- }
- if ( /^(To|CC):.*warthogs@lists.canonical.com/ )
- {
- to "${DEFAULT}/.warthogs"
- }
- if ( /^(To|CC):.*dx-team@lists.(canonical.com|launchpad.net)/ )
- {
- to "${DEFAULT}/.dx-team"
- }
- if ( /^(To|CC):.*kubuntu-devel@lists.ubuntu.com/ )
- {
- to "${DEFAULT}/.kubuntu-devel"
- }
- if ( /^(To|CC):.*ubuntu-devel@lists.ubuntu.com/ )
- {
- to "${DEFAULT}/.ubuntu-devel"
- }
- if ( /^(To|CC):.*dbusmenu-list@lists.launchpad.net/ )
- {
- to "${DEFAULT}/.lists.dbusmenu"
- }
- if ( /^(To|CC):.*kopete-devel@kde.org/ )
- {
- to "${DEFAULT}/.lists.kopete-devel"
- }
- if ( /^X-Launchpad-Build-Arch:/ )
- {
- to "${DEFAULT}/.build"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement