Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: dev
Re: SMTP PRDR
 

Index | Next | Previous | View Flat


jgh at wizmail

Mar 19, 2012, 10:47 AM


Views: 425
Permalink
Re: SMTP PRDR

I'm in no sense an authority, but here's my take:

On 2012-03-19 16:19, Todd Lyons wrote:
> MAIL FROM:<user [at] example> PRDR
>
> In the code which parses args to mail and rcpt commands, it requires
> key=value pairs (for example, BODY=149833),

Actually, despite the comment on extract_option() I don't see it being
called at RCPT. Maybe I'm missing something, or maybe the
comment needs correcting.


> So the extract_option requires a key=value pair. At this point, the
> has not yet verified that the options are valid/invalid, it's just
> splitting them from the email address. With contemporary exim design
> standards in mind:
>
> 1) would it better to pass a variable to extract_option() to indicate
> that "=" is not required?

Given the limited number of callers I'd be happy with such a mod.
The problem is that it's still required for the current options,
and you've not determined what the option is yet.

> 2) would it be better to make a duplicate function that basically just
> does #1 (i.e. not require "=")
> 3) something else?

I'd like a code refactor from the if/elseif chain into a table-driven
approach, using a static data table of acceptable option names
each with a "supplies argument" indicator. This would be in line
with (eg.) the parsing in acl_verify().

Admission: I've been a-refactoring in verify myself (bug 1184).


Good luck; it looks like a worthwhile project.
--
Jeremy

--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##

Subject User Time
Re: SMTP PRDR jgh at wizmail Mar 19, 2012, 10:47 AM
    Re: SMTP PRDR tlyons at ivenue Mar 19, 2012, 11:22 AM
    Re: SMTP PRDR jgh at wizmail Jan 24, 2013, 1:31 PM
        Re: SMTP PRDR jgh at wizmail Jan 27, 2013, 6:31 AM
            Re: SMTP PRDR tlyons at ivenue Feb 5, 2013, 5:53 PM
        Re: SMTP PRDR tlyons at ivenue Feb 6, 2013, 10:53 AM
        Re: SMTP PRDR jgh at wizmail Feb 6, 2013, 12:21 PM
        Re: SMTP PRDR pdp at exim Feb 6, 2013, 1:33 PM
            Re: SMTP PRDR jgh at wizmail Feb 6, 2013, 1:45 PM
                Re: SMTP PRDR tlyons at ivenue Feb 6, 2013, 3:19 PM
                Re: SMTP PRDR pdp at exim Feb 6, 2013, 3:52 PM
                    Re: SMTP PRDR jgh at wizmail Feb 7, 2013, 4:27 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.