RE: [vchkpw] how to make sender does not receive it's own email ?

2004-03-09 Thread Shane Chrisp
This has already been answered. There is _no_ way to achieve this
without you hacking away, or paying someone else to hack away at
the code to add this sort of functionality. As for the mailing list,
im not sure if there is a echo off type function that the customer
can use to not receive their own posts back from the server.

Shane

-Original Message-
From: Matthieu Foillard [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 9 March 2004 5:54 PM
To: [EMAIL PROTECTED]
Subject: [vchkpw] how to make sender does not receive it's own email ?

Hi list,

I'm running a classic setup using qmail + vpopmail + qmailadmin.
I've some aliases defined and i want sender which is belong to 
an alias does 
not receive its own email.
exemple, 
i've defined an alias like [EMAIL PROTECTED] - [EMAIL PROTECTED], [EMAIL PROTECTED]
if [EMAIL PROTECTED] sends a mail to [EMAIL PROTECTED], i want [EMAIL PROTECTED] does 
_not_ 
receive its own 
email, only other members, in this case : [EMAIL PROTECTED]
Is there a way to do so ?
Then, using ezmlm-idx, i want to to the same so that senders 
does not receive 
its own email when sending mail to the list in which he belongs to.

Thanks for help,
Matthieu




Re: [vchkpw] how to make sender does not receive it's own email ?

2004-03-09 Thread Matthieu Foillard
Le Tuesday 09 March 2004 10:59, Shane Chrisp a écrit :
 This has already been answered. There is _no_ way to achieve this
 without you hacking away, or paying someone else to hack away at
 the code to add this sort of functionality. As for the mailing list,
 im not sure if there is a echo off type function that the customer
 can use to not receive their own posts back from the server.

 Shane

Thanks, but can you at least tell me which part of the code i must modifiy to 
add this feature ? I know C and can try to do it. I'm sure some people could 
be interested in this feature.


Re: [vchkpw] how to make sender does not receive it's own email ?

2004-03-09 Thread Matthieu Foillard
Could you please tell me what you think of this ?

--- vdelivermail.c  2004-03-09 13:38:24.0 +0100
+++ vdelivermail.c.new  2004-03-09 13:38:23.0 +0100
@@ -89,6 +89,7 @@
 void usernotfound(void);
 int is_loop_match( char *dt, char *address);
 int deliver_quota_warning(const char *dir, const char *q);
+char *get_from(char *fromline);

 static char local_file[156];
 static char local_file_new[156];
@@ -447,6 +448,17 @@
 /* This is a comment, ignore it */
 if ( *address == '#' ) return(0);

+/* If the sender address is the same as the email, we do not deliver */
+while(fgets(loop_buf, sizeof(loop_buf), stdin) != NULL) {
+  if (strncmp(loop_buf, From: , 6) == 0  *address == '') {
+   char *from;
+   from = get_from(loop_buf);
+   if(strncmp(from, ++address, strlen(from) - 1) == 0)  {
+ return(0);
+   }
+  }
+}
+
 /* check if the email is looping to this user */
 if ( is_looping( address ) == 1 ) {
 printf(message is looping %s\n, address );
@@ -1270,6 +1282,17 @@
 return(0);
 }

+
+char *get_from( char *fromline)
+{
+  while(*fromline != '@'  *fromline != 0) ++fromline;
+  if(*fromline == 0)
+return fromline;
+  while ( *fromline != ''  *fromline != ' ') --fromline;
+  ++fromline;
+  return fromline;
+}
+
 int is_loop_match( char *dt, char *address)
 {
  char *startdt;


 This has already been answered. There is _no_ way to achieve this
 without you hacking away, or paying someone else to hack away at
 the code to add this sort of functionality. As for the mailing list,
 im not sure if there is a echo off type function that the customer
 can use to not receive their own posts back from the server.
 
 Shane


Re: [vchkpw] how to make sender does not receive it's own email ?

2004-03-09 Thread Tom Collins
On Mar 9, 2004, at 5:44 AM, Matthieu Foillard wrote:
Could you please tell me what you think of this ?
The problem with patching vdelivermail in that manner is that users 
won't be able to send themselves email.

Also, you should be using the sender from the SMTP envelope, and not 
trying to parse the From: header in the email.  I'm not sure how to 
access that address from vpopmail.

I took a look at the documentation for ezmlm (which you could have done 
yourself if you weren't lazy) and found that ezmlm-send has the option 
you need.

   The C switch prevents posts from being set to SENDER. Rather 
than just
   copying out subscriber address files, ezmlmsend has to parse  
them  to
   look  for  SENDER. This makes it less efficient. Also, it is 
useful for
   the SENDER to see the post to know that it has made it to the 
list, and
   its  context to other subscribers, i.e. where it came within 
the traf
   fic of messages on the list.

   Avoiding SENDER as a recipient is useful in small lists, such as 
 small
   teams  with  varying members, where ezmlm serves mainly as an 
efficient
   tool to keep the team  connected  without  administrator  
intervention.
   Here the overhead of subscriber list parsing is negligible.

Manually edit the .qmail-listname file (which is actually a link to 
listname/editor) in the site's directory.  Add -C after ezmlm-send and 
before the first parameter (the list directory).

If you have a moderated list, it will use ezmlm-gate instead.  Checking 
the man page for ezmlm-gate tells us that you can add the -C option and 
it will be passed to ezmlm-send.

Feel free to log into SourceForge (url in sig) and add a feature 
request for us to add this to qmailadmin.  It will get a low priority, 
and probably won't be acted on unless someone sponsors its development.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] how to make sender does not receive it's own email ?

2004-03-07 Thread Matthieu Foillard
Sorry to repost this but after some more search i did,
i still can't find a way to do that. Could someone help please ?
Thanks again

Le Thursday 04 March 2004 13:33, Matthieu Foillard a écrit :
 Hi list,

 I'm running a classic setup using qmail + vpopmail + qmailadmin.
 I've some aliases defined and i want sender which is belong to an alias
 does not receive its own email.
 exemple,
 i've defined an alias like [EMAIL PROTECTED] - [EMAIL PROTECTED], [EMAIL PROTECTED]
  if [EMAIL PROTECTED] sends a mail to [EMAIL PROTECTED], i want [EMAIL PROTECTED] 
 does _not_ receive its
 own email, only other members, in this case : [EMAIL PROTECTED]
 Is there a way to do so ?
 Then, using ezmlm-idx, i want to to the same so that senders does not
 receive its own email when sending mail to the list in which he belongs to.

 Thanks for help,
 Matthieu


Re: [vchkpw] how to make sender does not receive it's own email ?

2004-03-07 Thread Tom Collins
I don't think that's possible with aliases or ezmlm mailing lists.

On Mar 7, 2004, at 4:19 PM, Matthieu Foillard wrote:
Sorry to repost this but after some more search i did,
i still can't find a way to do that. Could someone help please ?
Thanks again
Le Thursday 04 March 2004 13:33, Matthieu Foillard a écrit :
Hi list,

I'm running a classic setup using qmail + vpopmail + qmailadmin.
I've some aliases defined and i want sender which is belong to an 
alias
does not receive its own email.
exemple,
i've defined an alias like [EMAIL PROTECTED] - [EMAIL PROTECTED], [EMAIL PROTECTED]
 if [EMAIL PROTECTED] sends a mail to [EMAIL PROTECTED], i want [EMAIL PROTECTED] does _not_ 
receive its
own email, only other members, in this case : [EMAIL PROTECTED]
Is there a way to do so ?
Then, using ezmlm-idx, i want to to the same so that senders does not
receive its own email when sending mail to the list in which he 
belongs to.

Thanks for help,
Matthieu


--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] how to make sender does not receive it's own email ?

2004-03-07 Thread Matthieu Foillard
 I don't think that's possible with aliases or ezmlm mailing lists.

Before i installed vpopmail, qmail was running using /etc/aliases and old 
sysadmin did something so that it worked like they want (i can't ask admin 
what he did) The problem is that the company which is running this server was 
very happy about this feature and flame me cause it does not work now :-(
Maybe someone has an idea or some things i can investigate ?
Thanks again, again !


 On Mar 7, 2004, at 4:19 PM, Matthieu Foillard wrote:
  Sorry to repost this but after some more search i did,
  i still can't find a way to do that. Could someone help please ?
  Thanks again
 
  Le Thursday 04 March 2004 13:33, Matthieu Foillard a écrit :
  Hi list,
 
  I'm running a classic setup using qmail + vpopmail + qmailadmin.
  I've some aliases defined and i want sender which is belong to an
  alias
  does not receive its own email.
  exemple,
  i've defined an alias like [EMAIL PROTECTED] - [EMAIL PROTECTED], [EMAIL 
  PROTECTED]
   if [EMAIL PROTECTED] sends a mail to [EMAIL PROTECTED], i want [EMAIL PROTECTED] 
  does _not_
  receive its
  own email, only other members, in this case : [EMAIL PROTECTED]
  Is there a way to do so ?
  Then, using ezmlm-idx, i want to to the same so that senders does not
  receive its own email when sending mail to the list in which he
  belongs to.
 
  Thanks for help,
  Matthieu

 --
 Tom Collins  -  [EMAIL PROTECTED]
 QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
 Info on the Sniffter hand-held Network Tester: http://sniffter.com/

-- 
Matthieu Foillard [EMAIL PROTECTED]
tel : 0140719720 - mob : 0686574170
pgp : 0x1609654F