Opened 15 years ago

Last modified 15 years ago

#103 new defect

news2mail does not handle postings with different senders

Reported by: Julien ÉLIE Owned by: eagle
Priority: low Milestone:
Component: utilities Version: 2.4.5
Severity: normal Keywords:


  1. Stussy reports that news2mail does not handle postings to multiple lists which have different envelope-from senders.

It should be handled by sending multiple messages. One would have to call mailto() for each UNIQUE SENDER in saddr{}. A null entry (or no entry) in saddr{} for a given list can match any non-null entry (but should only actually be matched to one - e.g. the first). Note that the number of unique senders is not necessarily the same as the number of lists.

Currently, the "news" user is used as the envelope-from sender when multiple lists receive a posting, or when one list omits the third parameter in The news2mail program is set up as a funneled channel in newsfeeds, implying multiple matches should be handled as one -- and multiple matching funneled feeds will result in a single call to the script.

Change History (1)

comment:1 Changed 15 years ago by Julien ÉLIE

Pseudo-code suggestion from D. Stussy:

  loop = 0;
  foreach(@saddr[@good] as sa) {
      foreach(@good) {
          if (sa == saddr[good]) then
              append maddr[good] to recipient_list_array;
          if (loop == 0 and saddr[good] == NULL) then
              append ....
Note: See TracTickets for help on using tickets.