[Postfixbuch-users] doppelte Mails ???

Thomas Berger thomas.berger.postfix at freenet.de
Sa Nov 25 15:23:53 CET 2006


Andreas Winkelmann schrieb:
>
> Trotzdem, dass Cyrus-Imapd sich zweimal die selbe Mail "merkt" wird
> sie noch
> nicht zweimal ausgeliefert.
>
> Mich würde mal interessieren, wie das sieve-Script aussieht. Vermutlich
> speicherst Du sie da mehrmals.
>
Wenn dem so ist, dann lasse ich mich sehr! gern korrigieren. Hier ist
mein noch nicht
sehr optimiertes Testscript (Bin noch Sieve Anfänger):

require "fileinto";

if address :matches ["from","to","cc"] "*suse.*"
{
      fileinto "suse";
}
elsif address :matches ["from","to","cc"] "*kde.org*"
{
      fileinto "kde";
}
elsif address :matches ["from","to","cc"] "*@gnome*.org*"
{
      fileinto "gnome";
}
elsif address :matches ["sender","to"] "*postfixbuch-users*"
{
      fileinto "postfix";
}
elsif address :matches ["sender","to"] "*blfs*@linuxfromscratch.org*"
{
      if address :matches ["sender","to"] "*blfs-book*"
      {
            fileinto "blfs.book";
      }
      elsif address :matches ["sender","to"] "*blfs-dev*"
      {
            fileinto "blfs.dev";
      }
      elsif address :matches ["sender","to"] "*blfs-support*"
      {
            fileinto "blfs.support";
      }
      else
      {
            fileinto "blfs";
      }
}
elsif address :matches ["sender","to"] "*lfs*@linuxfromscratch.org*"
{
      if address :matches ["sender","to"] "*lfs-announce*"
      {
            fileinto "lfs.announce";
      }
      elsif address :matches ["sender","to"] "*lfs-book*"
      {
            fileinto "lfs.book";
      }
      elsif address :matches ["sender","to"] "*lfs-dev*"
      {
            fileinto "lfs.dev";
      }
      elsif address :matches ["sender","to"] "*lfs-support*"
      {
            fileinto "lfs.support";
      }
      else
      {
            fileinto "lfs";
      }
}
elsif address :matches "from" "*@nulltarif.de"
{
      fileinto "nulltarif";
}
elsif address :matches "from" ["*handy.de", "newsletter at mail.idgcom.de"]
{
      fileinto "news";
}
elsif address :matches "from" "*cinestar.de"
{
      fileinto "kino";
}
elsif address :matches "from" ["*winload.de*",
"*@listsrv.idginteractive.de*"]
{
      fileinto "computer";
}
elsif address :matches ["from", "to"] ["*lyris*@mailliste.de*",
"*devolo-news*@mailliste.de*"]
{
      fileinto "developer";
}
elsif address :matches "to" ["*familie.berger.lpz at freenet.de*",
"*fan at net.fan*"]
{
      fileinto "fan";
}

Mfg Thomas.




Mehr Informationen über die Mailingliste Postfixbuch-users