projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* give the flag to the CtdlDoIHavePermissionToPostInThisRoom in through the parameter...
[citadel.git]
/
citadel
/
modules
/
smtp
/
serv_smtp.c
diff --git
a/citadel/modules/smtp/serv_smtp.c
b/citadel/modules/smtp/serv_smtp.c
index 0376c1e47d2077f162d53e550e9182f4a84c1de9..d2c7b1e95f6ca4896187885c199dca25e28485ae 100644
(file)
--- a/
citadel/modules/smtp/serv_smtp.c
+++ b/
citadel/modules/smtp/serv_smtp.c
@@
-598,7
+598,8
@@
void smtp_rcpt(char *argbuf) {
}
}
}
}
- valid = validate_recipients(recp);
+ valid = validate_recipients(recp,
+ (CC->logged_in)? POST_LOGGED_IN:POST_EXTERNAL);
if (valid->num_error != 0) {
cprintf("599 5.1.1 Error: %s\r\n", valid->errormsg);
free_recipients(valid);
if (valid->num_error != 0) {
cprintf("599 5.1.1 Error: %s\r\n", valid->errormsg);
free_recipients(valid);
@@
-721,7
+722,8
@@
void smtp_data(void) {
msg->cm_fields['V'] = strdup(SMTP->recipients);
/* Submit the message into the Citadel system. */
msg->cm_fields['V'] = strdup(SMTP->recipients);
/* Submit the message into the Citadel system. */
- valid = validate_recipients(SMTP->recipients);
+ valid = validate_recipients(SMTP->recipients,
+ (CC->logged_in)? POST_LOGGED_IN:POST_EXTERNAL);
/* If there are modules that want to scan this message before final
* submission (such as virus checkers or spam filters), call them now
/* If there are modules that want to scan this message before final
* submission (such as virus checkers or spam filters), call them now
@@
-1437,7
+1439,7
@@
void smtp_do_bounce(char *instr) {
}
/* Can we deliver the bounce to the original sender? */
}
/* Can we deliver the bounce to the original sender? */
- valid = validate_recipients(bounceto);
+ valid = validate_recipients(bounceto
, 0
);
if (valid != NULL) {
if (valid->num_error == 0) {
CtdlSubmitMsg(bmsg, valid, "");
if (valid != NULL) {
if (valid->num_error == 0) {
CtdlSubmitMsg(bmsg, valid, "");