]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] complete doc part of task:get_from method
authorJan Smutny <js@excello.cz>
Fri, 17 Apr 2020 09:23:22 +0000 (11:23 +0200)
committerJan Smutny <js@excello.cz>
Fri, 17 Apr 2020 12:32:31 +0000 (14:32 +0200)
src/lua/lua_task.c

index 4f92bdb0620db1710dbbaf262294a9d333e8a814..4ac819c9dfe6a747b5ffe52dd23c00dd850c2cf7 100644 (file)
@@ -519,6 +519,14 @@ LUA_FUNCTION_DEF (task, has_from);
  * - `addr` - address part of the address
  * - `user` - user part (if present) of the address, e.g. `blah`
  * - `domain` - domain part (if present), e.g. `foo.com`
+ * - `flags` - table with following keys set to true if given condition fulfilled:
+ *   - [valid] - valid SMTP address in conformity with https://tools.ietf.org/html/rfc5321#section-4.1.
+ *   - [ip] - domain is IPv4/IPv6 address
+ *   - [braced] - angled `<blah@foo.com>` address
+ *   - [quoted] - quoted user part
+ *   - [empty] - empty address
+ *   - [backslash] - user part contains backslash
+ *   - [8bit] - contains 8bit characters
  * @param {integer|string} type if specified has the following meaning: `0` or `any` means try SMTP sender and fallback to MIME if failed, `1` or `smtp` means checking merely SMTP sender and `2` or `mime` means MIME `From:` only
  * @return {address} sender or `nil`
  */