Hello, is there a way to edit a message header using doveadm? I see how I can fetch the things I need, but even if I can't edit in place; if I extract the full message, edit it, there doesn't seem to be a way to append it back again?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, 4 Dec 2016, MRob wrote:> Hello, is there a way to edit a message header using doveadm?I guess not.> I see how I can fetch the things I need, but even if I can't edit in place; > if I extract the full message, edit it, there doesn't seem to be a way to > append it back again?check out doveadm import http://wiki2.dovecot.org/Tools/Doveadm/Import it should be easy to fake a maildir or mbox structure. - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEVAwUBWEUYnHz1H7kL/d9rAQIefgf/aO5IqfQsI7Xu4Xy6/wzxrMw8aAkDyf3j RNa58av4udtZtNufSA9Im95lt3cTK6cAeRn0ccBTYNwaWKA4L45WDJkrgtfbRjYu ZRlJJ1Z3FvbFtn/89ywgndU3qYo/5lwxPL1IssjX2LrHmg+zPUYR5dwlahWyfp92 UQpHL3z4z714mEc2Qdd9rZS+axSEJIAbYG3Yz1XODxLotnMC2umT9ulKLzxoNcQr 5Ini/XcYH/zlR9/DMAsRxESR77Rj5/5k/ecxO+oY9s1UfZmlrv7UUItIJ2hwv+z6 Ncw+j0KoyDQmhLzxuw1XR5+m3i4F8eRXLJitvDiDR2nwn/BBz1QmkA==mDfu -----END PGP SIGNATURE-----
On 05.12.2016 09:34, Steffen Kaiser wrote:> On Sun, 4 Dec 2016, MRob wrote: > > > Hello, is there a way to edit a message header using doveadm? > > I guess not. > > > I see how I can fetch the things I need, but even if I can't edit in > place; if I extract the full message, edit it, there doesn't seem to > be a way to append it back again? > > check out doveadm import > http://wiki2.dovecot.org/Tools/Doveadm/Import > > it should be easy to fake a maildir or mbox structure. > > -- Steffen KaiserHi! You can edit message in a roundabout way: 1. Use doveadm fetch to retrieve the message 2. Edit the message 3. Use doveadm delete to delete the original message 4. Use doveadm save to save the message You cannot directly edit a message Aki