From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84899 Path: news.gmane.org!not-for-mail From: lee Newsgroups: gmane.emacs.gnus.general Subject: Re: Has anyone created code for reply to author on yahoogroups? Date: Mon, 08 Sep 2014 22:25:47 +0200 Organization: my virtual residence Message-ID: <87fvg17tbo.fsf@yun.yagibdah.de> References: <87r3znfahl.fsf@dod.no> <87zjebc53x.fsf@yun.yagibdah.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410210228 21331 80.91.229.3 (8 Sep 2014 21:03:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Sep 2014 21:03:48 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33143@lists.math.uh.edu Mon Sep 08 23:03:42 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XR5rt-0006TS-IM for ding-account@gmane.org; Mon, 08 Sep 2014 22:48:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1XR5rG-0001zT-HZ; Mon, 08 Sep 2014 15:48:18 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1XR5rD-0001zE-H9 for ding@lists.math.uh.edu; Mon, 08 Sep 2014 15:48:15 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1XR5rB-0001Dk-DD for ding@lists.math.uh.edu; Mon, 08 Sep 2014 15:48:15 -0500 Original-Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.217]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XR5r9-0008Cw-6H for ding@gnus.org; Mon, 08 Sep 2014 22:48:11 +0200 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1410209290; l=2729; s=domk; d=yun.yagibdah.de; h=Content-Type:MIME-Version:References:Date:In-Reply-To:Subject:To: From; bh=Ojus2qC9CoFInPSiER34uBBDX2A=; b=t31ymiUa68Gyg7+uoQzbIZKQOFr8aWwrbua431rZ+k3QZxDR4kcwJBfT86WGrMs6lU+ IS3EXlx//di7e4IqsQRafMHUjBppNa84ApJMPcv6Uth52a9l++U+ZoqKUU8RiVttEWG/8 0mDq2NqAXaB2Pv99x9E7E4jnbZ8V9BJul5Q= X-RZG-AUTH: :O2kGeEG7b/pS1FS4THaxjVF9w0vVgfQ9xHcw0u9bPwwMFwe5A1Mf1jo8+wbUeX1fjiA= X-RZG-CLASS-ID: mo00 Original-Received: from jarl.yagibdah.de ([185.55.75.245]) by smtp.strato.de (RZmta 35.8 AUTH) with ESMTPSA id R01e33q88KmAUsr (using TLSv1.2 with cipher DHE-RSA-AES256-SHA256 (256/256 bits)) (Client did not present a certificate) for ; Mon, 8 Sep 2014 22:48:10 +0200 (CEST) Original-Received: from yun.yagibdah.de ([192.168.3.20]) by jarl.yagibdah.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XR5r7-00026y-OZ for ding@gnus.org; Mon, 08 Sep 2014 22:48:09 +0200 Original-Received: from lee by yun.yagibdah.de with local (Exim 4.80.1) (envelope-from ) id 1XR5r7-0001nY-Kh for ding@gnus.org; Mon, 08 Sep 2014 22:48:09 +0200 In-Reply-To: (Steinar Bang's message of "Mon, 08 Sep 2014 09:18:31 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) Mail-Followup-To: ding@gnus.org X-Spam-Score: -2.0 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84899 Archived-At: Steinar Bang writes: >>>>>> lee : > >> Look at the group setup (Gc in the group buffer) and set up the mailing >> list address? > > No, that won't help. Setting to-address and (broken-reply-to . t) in > the group parameters work with the old style at yahoogroups and other > mailing list agents, where a reply-to header redirects repliers to the > list. > > What Yahoogroups now does, is to mangle the sender, so that the actual > email address there is the list address. The address of the sender is > made part of the "real name"-part of the From-field: > "Steinar Bang sb@dod.no [somelist]" Yahoo needs to fix their broken setup. Other than that, you could pipe the mails through a perl script that fixes the headers. The Email::Simple module does a pretty good job at reading them. If you use an IMAP account, Net::IMAP::Client works well, too --- only you may have to put in delays when fetching messages consecutively because otherwise you may obtain a message that has no body. It goes like this: sub fix_data { my ($msgbody) = @_; # # $msgbody is a string containing the complete message with all # headers # my @h_subject = decode('MIME-Header', $email->header('Subject')); my $fixed = [do something here and return fixed message]; return $fixed; } my $imap = Net::IMAP::Client->new( server => SERVER, user => USER, pass => PASS, ssl => 1, ssl_verify_peer => 0, port => 993) or die "connection to imap server failed"; $imap->login or die "login failed\n"; $imap->select('INBOX'); foreach my $id ($imap->search('ALL')) { foreach my $msg (@$id) { my $data = $imap->get_rfc822_body($msg); my $fixed = fix_headers($$data); [somehow put fixed message as a new one on IMAP server]; # # delete the original message # $imap->add_flags($msg, '\\Deleted'); sleep(20); } } $imap->expunge; $imap->logout; If you have the messages in nnml storage or the like, it's much easier of course. >> I do that for lists, and it works fine, plus I have > >> (setq message-subscribed-address-functions >> '(gnus-find-subscribed-addresses)) > >> in .gnus, though I'm not too sure about this having the effect I would >> assume it has. > > I don't know... what effect do you think it has...? :-) IIRC it should make it so that I do not need to configure the groups I'm using for mail from mailing lists. > (If you always reply, or post, inside the list's mail group, or if you > do 'C-u a' on top of the list's mail group, then you don't need it, I > think) I do either F, a or, rarely, R. -- Knowledge is volatile and fluid. Software is power.