Hi, I'm running a batch script to update my sieve settings for mailing lists, as:
#!/bin/bash script=$'put sieve.rc\nactivate sieve.rc\nquit' cd $HOME sieveshell -e "$script" -u $USER -r mail localhost But when I run it, I get: unable to connect to server at /usr/bin/sieveshell line 195. Odder still, if I strace the script, I see: ... read(4, "\"IMPLEMENTATION\" \"Cyrus timsieve"..., 4096) = 465 write(2, "unable to connect to server at /"..., 61unable to connect to server at /usr/bin/sieveshell line 195. ) = 61 ... Which means we ARE connecting to it just fine. Is the Perl module broken? Connecting to the socket manually works just fine: [philipp@mail ~]$ telnet localhost 4190 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. "IMPLEMENTATION" "Cyrus timsieved 3.2.4-7.fc34 Fedora" "VERSION" "1.0" "SIEVE" "comparator-i;ascii-numeric fileinto reject ereject vacation vacation-seconds imapflags notify enotify include editheader ihave envelope environment body imap4flags date mailbox mboxmetadata servermetadata duplicate relational regex extlists subaddress copy index variables mailboxid" "NOTIFY" "mailto" "EXTLISTS" "urn:ietf:params:sieve:addrbook" "STARTTLS" "UNAUTHENTICATE" OK ^]close telnet> close Connection closed. [philipp@mail ~]$ I'm using perl-Cyrus-3.2.4-7.fc34.x86_64. I'm stumped. Anyone else seeing something similar? Thanks, -Philip ------------------------------------------ Cyrus: Devel Permalink: https://cyrus.topicbox.com/groups/devel/T7994137699dc50f4-Me867ca9792b55be63ad7a1db Delivery options: https://cyrus.topicbox.com/groups/devel/subscription