Filter error when a...
 
Notifications
Clear all

Filter error when apply on inbox

2 Posts
2 Users
0 Reactions
287 Views
(@m-sistem)
Joined: 13 years ago
Posts: 7
Topic starter  

Hi,

 

I successfully import filter rules from zimbra to carbonio.

But when I try to run filter directly from Mails Settings / Filters and choose Inbox as folder to apply filter I get Error:

" An error coourred while applying the filter 'Name of Filter' "

What is the problem or how to diagnose this error. This happens on all filters, ones that are imported or that was created in Carbonio.

 

Best Regards, Marko


   
Quote
(@flashcloud-idoritm-co-id)
Joined: 4 weeks ago
Posts: 2
 

Hi Marko,

It seems like the issue is with the filter application process in Carbonio, possibly due to an unexpected folder configuration or a missing filter execution mechanism. To troubleshoot and resolve this, you can try running the filter operation directly from the command line. Below is a script example that moves emails based on a filter from the inbox to a specified folder, which might help you address the problem.

This script was designed for Zimbra/Carbonio mailboxes and can also be used for similar situations:


Script Example: Moving Emails by Filter (From: noreply@malwarebytes.com)

 
#!/bin/bash

# Replace this with the email account to process

EMAIL_ACCOUNT="your-email@example.com"

# Specify the folder to move emails into

TARGET_FOLDER="/Inbox/Malwarebytes"

# Ensure the target folder exists

zmmailbox -z -m "$EMAIL_ACCOUNT" cf "$TARGET_FOLDER" || true

# Search and move emails matching the filter

zmmailbox -z -m "$EMAIL_ACCOUNT" search "from:noreply@malwarebytes.com not in:$TARGET_FOLDER" | awk '/^[0-9]/ {gsub(/^-/, "", $2); print $2}' | while read -r conv_id; do
echo "Attempting to move conversation ID: $conv_id to $TARGET_FOLDER"
zmmailbox -z -m "$EMAIL_ACCOUNT" mm "$conv_id" "$TARGET_FOLDER"
if [ $? -eq 0 ]; then
echo "Successfully moved conversation ID: $conv_id"
else
echo "Failed to move conversation ID: $conv_id"
fi
done

Best regards,
Fandi Kurnia
FlashCloud.ID | ITM.CO.ID


   
ReplyQuote