Advertisement
Guest User

Untitled

a guest
May 8th, 2017
555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. # vim: ft:perl
  2. #logfile "/home/agateau/mailfilter.log"
  3.  
  4. DEFAULT="Maildir"
  5.  
  6. if ( /^X-Launchpad-Bug:/ )
  7. {
  8. log "Launchpad bug"
  9. if ( /^X-Launchpad-Message-Rationale: .*@([-a-z]+)/ )
  10. {
  11. TEAM=$MATCH1
  12. DEST=`/home/agateau/bin/lpbugdir $DEFAULT $TEAM`
  13. log "Moving lpbug message to $DEST"
  14. to "${DEFAULT}/.$DEST"
  15. }
  16. else
  17. {
  18. to "${DEFAULT}/.bugs"
  19. }
  20. }
  21.  
  22. if ( /^List-Id:.*plasma-devel.kde.org/ )
  23. {
  24. to "${DEFAULT}/.plasma-devel"
  25. }
  26.  
  27. if ( /^(To|CC):.*canonical-tech@lists.launchpad.net/ )
  28. {
  29. to "${DEFAULT}/.canonical-tech"
  30. }
  31.  
  32. if ( /^List-Id: <ayatana-commits.lists.launchpad.net>/ )
  33. {
  34. to "${DEFAULT}/.commits"
  35. }
  36.  
  37. if ( /^(To|CC):.*xdg@lists.freedesktop.org/ )
  38. {
  39. to "${DEFAULT}/.xdg"
  40. }
  41.  
  42. if ( /^(To|CC):.*kde-core-devel@kde.org/ )
  43. {
  44. to "${DEFAULT}/.kde-core-devel"
  45. }
  46.  
  47. if ( /^(To|CC):.*ayatana@lists.launchpad.net/ )
  48. {
  49. to "${DEFAULT}/.ayatana"
  50. }
  51.  
  52. if ( /^(To|CC):.*warthogs@lists.canonical.com/ )
  53. {
  54. to "${DEFAULT}/.warthogs"
  55. }
  56.  
  57. if ( /^(To|CC):.*dx-team@lists.(canonical.com|launchpad.net)/ )
  58. {
  59. to "${DEFAULT}/.dx-team"
  60. }
  61.  
  62. if ( /^(To|CC):.*kubuntu-devel@lists.ubuntu.com/ )
  63. {
  64. to "${DEFAULT}/.kubuntu-devel"
  65. }
  66.  
  67. if ( /^(To|CC):.*ubuntu-devel@lists.ubuntu.com/ )
  68. {
  69. to "${DEFAULT}/.ubuntu-devel"
  70. }
  71.  
  72. if ( /^(To|CC):.*dbusmenu-list@lists.launchpad.net/ )
  73. {
  74. to "${DEFAULT}/.lists.dbusmenu"
  75. }
  76.  
  77. if ( /^(To|CC):.*kopete-devel@kde.org/ )
  78. {
  79. to "${DEFAULT}/.lists.kopete-devel"
  80. }
  81.  
  82. if ( /^X-Launchpad-Build-Arch:/ )
  83. {
  84. to "${DEFAULT}/.build"
  85. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement