[imp] Mark a message as forwarded

Igor Stroh stroh@scan-plus.de
07 Aug 2002 22:25:07 +0200


---------------------- multipart/signed attachment
Hi there,

I extended the filter rules so that I can forward a message if a rule
triggers. The problem is, I have to mark this message as already
filtered somehow, 'cos it remains in the INBOX after the rule was
applied... My first idea was to tag the mail as FLAGGED, but then I
realized that IMP uses \\Flagged to mark important messages, so I asked
at #horde and a guy (thnx ShadowSpawn :) ) came up with the idea to set
a header in the filtered mail... something like "X-Forwarded: <date>".
The thing is, the whole procedure becomes pretty complicated:

o fetch the message from the imap server (header and body + multipart=20
  stuff)

o set the header (PGP signed stuff is fscked up then)

o resend the message

o check if it has arrived and flag it as UNSEEN or RECENT (paranoia=20
  part)

Does anyone have a better idea of how to solve the problem (except
storing the uids of filtered mails in $prefs)?

TIA,
Igor

---------------------- multipart/signed attachment
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
Url : http://lists.horde.org/archives/imp/attachments/93a94385/attachment.bin

---------------------- multipart/signed attachment--