Dovecot - Unable to receive mail - Fatal: Plugin 'sieve' not found

94

You probably need to install the dovecot-sieve package too. dovecot-managesieved will be handy too for managing the rules. It looks like ubuntu folks split the sieve stuff into a separate package.

Share:
94
Spark
Author by

Spark

Updated on September 18, 2022

Comments

  • Spark
    Spark over 1 year

    so I am new to bash linux and I am trying to fix a .txt file.

    I have a .txt file that looks something like this:

    blueberry, "yummy", 12345, "I love fruit and eating apples"
    blueberry, "tasty", 4455, "fruit is good for you"
    blueberry, "yum", 109833, "I go crazy for fruit"
    blueberry, "wooohh", 1347672, "I love fruit and 
    eating apples"
    blueberry, "yummy yummy", 1023433, "I love fruit more than my dog"
    blueberry, "yummy", 12345, "I love fruit and eating apples"
    blueberry, "something good to eat", 42, "fruit is the 
    greatest thing EVER"
    blueberry, "tasty", 4455, "fruit is good for you"
    blueberry, "yum", 109833, "I go crazy for fruit"
    

    I want to create a new .txt file that looks like this:

    blueberry, "yummy", 12345, "I love fruit and eating apples"
    blueberry, "tasty", 4455, "fruit is good for you"
    blueberry, "yum", 109833, "I go crazy for fruit"
    blueberry, "wooohh", 1347672, "I love fruit and eating apples"
    blueberry, "yummy yummy", 1023433, "I love fruit more than my dog"
    blueberry, "yummy", 12345, "I love fruit and eating apples"
    blueberry, "something good to eat", 42, "fruit is the greatest thing EVER"
    blueberry, "tasty", 4455, "fruit is good for you"
    blueberry, "yum", 109833, "I go crazy for fruit"
    

    (so the random sentences that are on two lines are put back together)

    So far I have tried using echo like so:

    while read p; do                      #for every line in the .txt file
      if[[ $p == "blueberry"* ]]          #if the line starts with 'blueberry' 
           echo -n "$p" >> newfruit.txt   #add the line to newfruit.txt without a new line
      else
           echo " $p" >> newfruit.txt     #add to the current line
      fi
    done <fruit.txt
    

    but it just returns the exact same .txt file I have also tried using printf and echo -e with the same result

    any suggestions or tips would be greatly appreciated! thank you!

  • James White
    James White over 12 years
    Thanks, that seems to have done the trick for the Sieve not found error. I just assumed it would all come bundled together. I know get the following error which I don't think is related but I wonder if you might have any ideas what could be causing it: 2011-10-16 17:20:38 lda: Error: userdb lookup: connect(/var/run/dovecot/auth-master) failed: Connection refused
  • Charles Duffy
    Charles Duffy over 8 years
    Strongly suggest switching from echo to printf (either printf '%s\n' to emit with a newline, or printf %s to emit contents without). See APPLICATION USAGE section of the POSIX echo spec at pubs.opengroup.org/onlinepubs/009604599/utilities/echo.html -- relying on echo -n is nonportable.
  • Charles Duffy
    Charles Duffy over 8 years
    Also, putting >> newfruit.txt on every line that emits output is reopening the file every time you want to write to it -- wildly inefficient. Just put one > newfruit.txt on the outside of the while loop.
  • Amadan
    Amadan over 8 years
    @CharlesDuffy: Agreed on all points; I was going for minimal changes to the original code in this answer.
  • Rob Cle
    Rob Cle over 8 years
    I was also missing this on Debian 8.