List Info

Thread: set 'seen' flag for message via sieve script




set 'seen' flag for message via sieve script
country flaguser name
Russian Federation
2007-08-07 04:09:40
Hi!

I have next sieve script
--
require "fileinto";
if header :contains ["From"] "userblahblah.com" {
   fileinto "sent";
   stop;
}
--

How I can set 'seen' flag for message which processed by
sieve and put to sent?
_______________________________________________
DBmail mailing list
DBmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

Re: set 'seen' flag for message via sieve script
country flaguser name
Austria
2007-08-07 04:30:31
On Dienstag, 7. August 2007 umask wrote:
> How I can set 'seen' flag for message which processed
by sieve and
> put to sent? 

use setflag '\Seen' to mark an e-mail as read

mfg zmi
-- 
// Michael Monnerie, Ing.BSc    -----      http://it-management.at
// Tel: 0676/846 914 666                     
.network.your.ideas.
// PGP Key:         "curl -s http://zmi.at/zmi.asc | gpg
--import"
// Fingerprint: EA39 8918 EDFF 0A68 ACFB  11B7 BA2D 060F
1C6F E6B0
// Keyserver: www.keyserver.net                   Key-ID:
1C6FE6B0

_______________________________________________
DBmail mailing list
DBmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

Re: set 'seen' flag for message via sieve script
country flaguser name
Russian Federation
2007-08-07 05:44:02
--
require ["fileinto", "imap4flags"];
if header :contains ["From"] "userblahblah.com" {
   setflag "\Seen";
   fileinto "sent";
   stop;
}
--

or
--
require ["fileinto", "imap4flags"];
if header :contains ["From"] "userblahblah.com" {
   fileinto "sent";
   setflag "\Seen";
   stop;
}
--

Does not work. Message put to 'sent' and unseen.

I try next:
--
require ["fileinto", "imap4flags"];
if header :contains ["From"] "usertest.rupochta.ru" {
   fileinto "sent";
   removeflag "\Unseen";
   setflag "\Seen";
   stop;
}
--
and it didn't help.

Can you write full work script?


07.08.07, 13:30, Michael Monnerie <michael.monnerieit-management.at>:

> On Dienstag, 7. August 2007 umask wrote:
> > How I can set 'seen' flag for message which
processed by sieve and
> > put to sent? 
> use setflag '\Seen' to mark an e-mail as read
> mfg zmi
> -- 
> // Michael Monnerie, Ing.BSc    -----      http://it-management.at
> // Tel: 0676/846 914 666                     
.network.your.ideas.
> // PGP Key:         "curl -s http://zmi.at/zmi.asc | gpg
--import"
> // Fingerprint: EA39 8918 EDFF 0A68 ACFB  11B7 BA2D
060F 1C6F E6B0
> // Keyserver: www.keyserver.net                  
Key-ID: 1C6FE6B0
_______________________________________________
DBmail mailing list
DBmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

Re: set 'seen' flag for message via sieve script
country flaguser name
Austria
2007-08-07 06:27:33
On Dienstag, 7. August 2007 umask wrote:
>    setflag "\Seen";
> Can you write full work script?

Sorry I copied my reply out of a script documentation. The
only flag I 
use is:
addflag "\Flagged";

and this works for me, but that's on a cyrus mail server. I
don't know 
if dbmail supports this or has bugs.

mfg zmi
-- 
// Michael Monnerie, Ing.BSc    -----      http://it-management.at
// Tel: 0676/846 914 666                     
.network.your.ideas.
// PGP Key:         "curl -s http://zmi.at/zmi.asc | gpg
--import"
// Fingerprint: EA39 8918 EDFF 0A68 ACFB  11B7 BA2D 060F
1C6F E6B0
// Keyserver: www.keyserver.net                   Key-ID:
1C6FE6B0

_______________________________________________
DBmail mailing list
DBmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

Re: set 'seen' flag for message via sieve script
country flaguser name
Russian Federation
2007-08-07 06:40:36
Unfortunately imap4flags sieve extension does not work
properly in DBMail.

mysql> select * from dbmail_messages;

...
|          301 |            4 |            133 |         0 |
            0 |            0 |            0 |           1 | 
        0 | 19514c20fc31e36bc666a187295ba040 |      0 | 
|          302 |            6 |            133 |         0 |
            0 |            0 |            0 |           1 | 
        0 | ad2a0c35ddc5c3816cf7ce400bf7621b |      0 | 
|          304 |            4 |            134 |         1 |
            0 |            0 |            0 |           0 | 
        0 | c65f9be37889ebdadf5e4b0c8f76621a |      1 | 
+--------------+--------------+----------------+-----------+
---------------+--------------+--------------+-------------+
------------+----------------------------------+--------+
63 rows in set (0.00 sec)

Last 3 messages is:
19514c20fc31e36bc666a187295ba040 - delivered to user... and
MUST be put to 'Sent' (but not put!) by sieve.
ad2a0c35ddc5c3816cf7ce400bf7621b - delivered to test... and
put to INBOX (without sieve).
c65f9be37889ebdadf5e4b0c8f76621a - put by Thunderbird to
user
'Sent' folder.


and seen flag set only on message created by Thunderbird.
My sieve scripts code listed in previously message.

07.08.07, 15:27, Michael Monnerie <michael.monnerieit-management.at>:

> On Dienstag, 7. August 2007 umask wrote:
> >    setflag "\Seen";
> > Can you write full work script?
> Sorry I copied my reply out of a script documentation.
The only flag I 
> use is:
> addflag "\Flagged";
> and this works for me, but that's on a cyrus mail
server. I don't know 
> if dbmail supports this or has bugs.
> mfg zmi
> -- 
> // Michael Monnerie, Ing.BSc    -----      http://it-management.at
> // Tel: 0676/846 914 666                     
.network.your.ideas.
> // PGP Key:         "curl -s http://zmi.at/zmi.asc | gpg
--import"
> // Fingerprint: EA39 8918 EDFF 0A68 ACFB  11B7 BA2D
060F 1C6F E6B0
> // Keyserver: www.keyserver.net                  
Key-ID: 1C6FE6B0
_______________________________________________
DBmail mailing list
DBmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

Re: set 'seen' flag for message via sieve script
country flaguser name
United States
2007-08-07 11:24:06
I received a fix for this about a week ago. It's in my tree,
will see
about getting it into SVN this week.

On Tue, 2007-08-07 at 15:40 +0400, umask wrote:
> Unfortunately imap4flags sieve extension does not work
properly in DBMail.
> 
> mysql> select * from dbmail_messages;
> 
> ...
> |          301 |            4 |            133 |       
 0 |             0 |            0 |            0 |          
1 |          0 | 19514c20fc31e36bc666a187295ba040 |      0 |

> |          302 |            6 |            133 |       
 0 |             0 |            0 |            0 |          
1 |          0 | ad2a0c35ddc5c3816cf7ce400bf7621b |      0 |

> |          304 |            4 |            134 |       
 1 |             0 |            0 |            0 |          
0 |          0 | c65f9be37889ebdadf5e4b0c8f76621a |      1 |

>
+--------------+--------------+----------------+-----------+
---------------+--------------+--------------+-------------+
------------+----------------------------------+--------+
> 63 rows in set (0.00 sec)
> 
> Last 3 messages is:
> 19514c20fc31e36bc666a187295ba040 - delivered to
user... and MUST be put to 'Sent' (but not put!) by
sieve.
> ad2a0c35ddc5c3816cf7ce400bf7621b - delivered to
test... and put to INBOX (without sieve).
> c65f9be37889ebdadf5e4b0c8f76621a - put by Thunderbird
to user 'Sent' folder.
> 
> 
> and seen flag set only on message created by
Thunderbird.
> My sieve scripts code listed in previously message.
> 
> 07.08.07, 15:27, Michael Monnerie
<michael.monnerieit-management.at>:
> 
> > On Dienstag, 7. August 2007 umask wrote:
> > >    setflag "\Seen";
> > > Can you write full work script?
> > Sorry I copied my reply out of a script
documentation. The only flag I 
> > use is:
> > addflag "\Flagged";
> > and this works for me, but that's on a cyrus mail
server. I don't know 
> > if dbmail supports this or has bugs.
> > mfg zmi
> > -- 
> > // Michael Monnerie, Ing.BSc    -----      http://it-management.at
> > // Tel: 0676/846 914 666                     
.network.your.ideas.
> > // PGP Key:         "curl -s http://zmi.at/zmi.asc | gpg
--import"
> > // Fingerprint: EA39 8918 EDFF 0A68 ACFB  11B7
BA2D 060F 1C6F E6B0
> > // Keyserver: www.keyserver.net                  
Key-ID: 1C6FE6B0
> _______________________________________________
> DBmail mailing list
> DBmaildbmail.org
> htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

_______________________________________________
DBmail mailing list
DBmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

Re: set 'seen' flag for message via sieve script
country flaguser name
United States
2007-08-07 22:23:27
There is a bug. I believe that \Flagged was actually the
only thing
that worked. All flags should be working again in 2.2.6.

On Tue, 2007-08-07 at 13:27 +0200, Michael Monnerie wrote:
> On Dienstag, 7. August 2007 umask wrote:
> >    setflag "\Seen";
> > Can you write full work script?
> 
> Sorry I copied my reply out of a script documentation.
The only flag I 
> use is:
> addflag "\Flagged";
> 
> and this works for me, but that's on a cyrus mail
server. I don't know 
> if dbmail supports this or has bugs.
> 
> mfg zmi
> _______________________________________________
> DBmail mailing list
> DBmaildbmail.org
> htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

_______________________________________________
DBmail mailing list
DBmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

[1-7]

about | contact  Other archives ( Real Estate discussion Medical topics )