Re: Im having two Problems with EXMH.
[email protected] Thu, 31 Dec 2015 01:42:38 -0500
| Newsgroups | gmane.mail.exmh.user |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 30 Dec 2015 22:14:44 -0700, "Dr. Reginald W. Clemens" said: > The two additional problems, these are: > (1) I have set MASQUERDE_AS(dwf.com) in sendmail.mc, and if I just > use MAIL to send mail, my return address is [email protected], where dwf.com > is my domain name. HOWEVER, if I use COMP in EXMH to compose the > mail, my return (FROM) address shows as [email protected], the > machine name that I sent the mail from. THIS DID NOT HAPPEN IN LINUX. > What do I set, how do I work arround this? Where is EXMH getting this > info, and how do I FIX it to not show the machine name. Actually, it's not exmh - it's getting it from whatever your system's MH/nmh does - that's where most of the heavy lifting happens. So the question isn't how to configure exmh to do this, it's how to get MH/nmh to do it. Can't speak to others, but I use a 'components' file: % cat Mail/components To: cc: Subject: Fcc: +outbox From: Valdis Kletnieks <[email protected]> -------- and that gets the job done. Similarly for replies, I have repl: -form replcomps and a Mail/replcomps: %(lit)%(formataddr %<{reply-to}%|%<{from}%|%<{sender}%|%<{return-path}%>%>%>%>)\ %<(nonnull)%(void(width))%(putaddr To: )\n%>\ %(lit)%(formataddr{to})%(formataddr{cc})%(formataddr(me))\ %<(nonnull)%(void(width))%(putaddr cc: )\n%>\ %<{fcc}Fcc: %{fcc}\n%|Fcc: +outbox\n%>\ %<{subject}Subject: Re: %{subject}\n%>\ %<{from}From: [email protected]\n%>\ %<{message-id}In-reply-to: %{message-id}\n%>\ %<{message-id}References: \ %<{references}%(void{references})%(trim)%(putstr) %>\ %(void{message-id})%(trim)%(putstr)\n%>\ -------- You can of course just copy the distributed version into place and edit it as needed - > (2) In the list of e-mails in a folder, on my LINUX machine each > line has: Number, Date, FROM_name, Size, Subject. > On FreeBSD the Size field is missing and I see no way to set the format of > this line from Preferences. Do I somehow have to modify the EXMH > code to get this to show. The secret sauce here is that exmh just invokes 'scan'. What I do: % grep scan .mh_profile scan: -form scan/timely inc: -form scan/timely (Second entry only needed if you use 'inc' - if you're an slocal or procmail/rcvstore type, it's handled by exmh via scan when needed) And then my Mail/scan/timely is a hideous beast.. To save you the scrolling, if you want the size in there, you just want to stick %6(size) at the spot in the scan format you want the size to be (and feel free to change the 6 to whatever number of columns you want.... cat Mail/scan/timely %6(msg)%<(cur)+%| %>\ %<{Replied}-%|%<(unseen)U%| %>%>\ %<{x-mentioned}*%| %> \ %<{x-priority}%01{x-priority}%| %> \ %<{In-reply-to}*%| %>\ %(void{content-type})\ %<(match text/plain) \ %?(match multipart/signed)S\ %?(match multipart/encrypted)E\ %|%<{content-type}M%|?%>%> \ %(void(rclock{date}))\ %<(gt 31356000)%02(mday{date}) %03(month{date}) %(void(year{date}))%02(modulo 10 0)%|\ %<(gt 86400)%(day{date}) %2(mday{date})%03(month{date})%|\ %02(hour{date}):%02(min{date}) %3(tzone{date})%>%>\ %<{date} %|*%> %6(size) \ %<(mymbox{from})To:%14(decode(friendly{to}))%|\ %(void(addr{from}))\ %<(match mailer@)%17(host{from})\ %?(match mailer-daemon@)%17(host{from})\ %?(match listserv@)%17(host{from})\ %?(match listbit@)%17(host{from})\ %?(match mailbit@)%17(friendly{to})\ %?(match postoffice@)%17(host{from})\ %?(match postmaster@)%17(host{from})\ %?(match root@)%17(host{from})\ %|%17(decode(friendly{from}))%>%> \ %(decode{subject})\ %(void{content-type})\ %<(match multipart)%|\ %<{body} <<%{body}%>\ %> Basically, if it's a courtesy copy of what I sent to a list, say who it was *to*, because we know it was *from* me. And then if it looks like it's from an automated process, strip the user@ part to have a better chance of the full domain showing up in 17 columns (because seeing "postmaster@mail1." tells me less than seeing "mail1.badmail.com") I'll let you figure out what the rest of it does yourself. :) _______________________________________________ Exmh-users mailing list [email protected] https://www.redhat.com/mailman/listinfo/exmh-users
signature.asc
(application/pgp-signature, 848 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Exmh version 2.5 07/13/2001 iQIVAwUBVoTOXgdmEQWDXROgAQLaNA/+JdVV7JIi6QdRqxGV0XAc7bU46/MVqv1F uW0aRfi86ygkUyu4s1ILKs2+yQa49KKwNn36NBKkszEO+nSoM6ZcK3lGNnDqdONZ GOc8WSLoZzQg8qb0h3rHFNh+lz91iX+whqV9u3igUXUHa3lC0iZW2WTH/DCWAeA2 Uk9EPZOvEUcjSgV54z9cM0vpHfB6m5YlE9psdJgrjaP/QOTlkhAVGebfZEWqiURn F89F4adBTBS6+MfBIAWiVKqT1gHlT/qQDtXCAa9Wo9k1DitGjjWWlki4V/VeGbOS 72xp7uVFQVJJpqT1FBxBao1M9azYFXq47B6UXbVDgRfEV80ool/OVTw5H7h/DbX/ 9d+0xrTnPS0MTV0ThRCr3Akzw1ga89NIRCzpgkQS9h9dWWEg8+Z10pzek9HxFZeH tkZRnjlinn6vMK/alNFBTYuly6+QlFx69g1qNkvsg7ndb2e2A+sWd/44261nzM0o ohwrUihyZYPNcc+mArN9P9OOsU+PoE5XobjUDO7EDCabO3oK7vqmf95AzzUXhHan 929W88lTi8eKI20lvyHFHRb7H87uqJXDjFICNCTeZWxZzoPNZedsXEJU+kjZGGIr c/91GyrhOSjvyDNgJ2oXeo58gLaOnYS6fC3TOE9MQlV8Bc1xACO0UGZBJa0BGIbq 0yfJFXBAEVE= =C2Ew -----END PGP SIGNATURE-----