Re: SRS_ENOTREWRITTEN?
Shevek <[email protected]> Wed, 13 Apr 2005 15:02:40 +0100
| Newsgroups | gmane.mail.spam.srs.general |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 2005-04-13 at 11:24 +0200, Stephan Menzel wrote: > Hi, > > And yet another question I would like to bother you with... > When srs_reverse() gives SRS_ENOTREWRITTEN back as subtye of SRS_ERRTYPE_NONE, > what exactly does that mean? > The API description just sais > "The address was not rewritten, probably because the configuration denies > forwards or reverse rewriting" > > I don't know how to react. The timestamp has expired or something like that? No, I think the second half of that message is confusing. It means you fed in an email address which wasn't an SRS address, i.e. did not start with SRS[01][-+=]. You can check whether an address is an SRS address using the SRS_IS_SRS_ADDRESS(x) macro. Note that this macro evaluates its argument more than once. S. -- Shevek <[email protected]>