Re: [Exim] Malformed address - how to remove

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: Robert Gomulka
CC: exim-users
Sujet: Re: [Exim] Malformed address - how to remove
On Mon, 2 Jul 2001, Robert Gomulka wrote:

> 1d   31K 157Xj1-0007by-00 <> *** frozen ***
>            user@???
>         ^^^^ here is


> How can I remove that recipient with non-printing characters in address?


Somehow you need to get the non-printing character into a shell command.
One way I found of doing it was to create a file containing the command

  exim -Mmd 15HKhU-0000zm-00 '?h10@???'
                              ^
where I used my text editor to get the non-printing character into the
command. Then I just ran the file as a shell script.


If you can get the non-printer in from the keyboard, you could do it
directly. On my xterm, on a Sun keyboard, I can get that particular
character (hex A0, octal 240, decimal 160) by pressing Shift-Meta-space
when typing into the 'cat' command, but not when typing at the shell
(bash).

Aha! When in doubt, RTFM. By reading the bash man page, I have come up
with the answer:

exim -Mmd 15HKvU-00013Q-00 $'\240'h10@???

I do not know if that works for other shells, though.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.