// https://101010.pl/@nabijaczleweli/113081938079382839 // Drive as // csplit -f .SPLIT xx0420 '/^$/' // { sed '/Content-Transfer-Encoding:/s/8bit/quoted-printable/' < .SPLIT00; // ./.fix < .SPLIT01; } > xx0420f #include int main() { for(int c; (c = getchar()) != EOF;) if(c < 0x80 && c != '=') putchar(c); else printf("=%02X", c); }