Jean Louis
2016-12-25 11:26:27 UTC
Dear Sergey,
I am using sieve, to sort thousands of emails.
And I get error:
sieve: /home/data1/protected/Documents/System Administration/save-by-from.sieve:2: address: retriever failure: Malformed email address
whereby save-by-from.sieve is:
require [ "fileinto", "variables" ];
if address :matches [ "from" ] "*" {
fileinto "~/Maildir/${1}";
}
Quite many mailboxes are not properly recognized for the from email
address.
However, bigger problem is that when the email address has status of
"mailformed", the messages becomes empty or appears 0 kilobytes in the
folder. The folders are however not empty, as I can see nice sizes
there.
Basically, the bodies of those not processed messages are
missing. So messages are probably lost and cannot be viewed in such
changed folder.
The program logic shall be changed, so that if email address is
"malformed" that messages are not tampered.
Example:
admin-> ls -l MBOX
-rw------- 1 admin admin 106847 Nov 7 2013 MBOX
I have 5 messages inside, all visible and readable by using mutt.
I process the mbox, and I get:
address: retriever failure: Malformed email address for each mailbox
Then again I can see that size of mbox did not considerably change:
-rw------- 1 admin admin 106517 Dec 25 14:23 MBOX
The email address in that mbox was:
From: TXSOS <***@sos.state.tx.us>
However, I can also see:
Return-Path: <***@sos.texas.gov>^M
with the ^M on the end, which I just think, maybe it is a problem?
Jean Louis
I am using sieve, to sort thousands of emails.
And I get error:
sieve: /home/data1/protected/Documents/System Administration/save-by-from.sieve:2: address: retriever failure: Malformed email address
whereby save-by-from.sieve is:
require [ "fileinto", "variables" ];
if address :matches [ "from" ] "*" {
fileinto "~/Maildir/${1}";
}
Quite many mailboxes are not properly recognized for the from email
address.
However, bigger problem is that when the email address has status of
"mailformed", the messages becomes empty or appears 0 kilobytes in the
folder. The folders are however not empty, as I can see nice sizes
there.
Basically, the bodies of those not processed messages are
missing. So messages are probably lost and cannot be viewed in such
changed folder.
The program logic shall be changed, so that if email address is
"malformed" that messages are not tampered.
Example:
admin-> ls -l MBOX
-rw------- 1 admin admin 106847 Nov 7 2013 MBOX
I have 5 messages inside, all visible and readable by using mutt.
I process the mbox, and I get:
address: retriever failure: Malformed email address for each mailbox
Then again I can see that size of mbox did not considerably change:
-rw------- 1 admin admin 106517 Dec 25 14:23 MBOX
The email address in that mbox was:
From: TXSOS <***@sos.state.tx.us>
However, I can also see:
Return-Path: <***@sos.texas.gov>^M
with the ^M on the end, which I just think, maybe it is a problem?
Jean Louis