Re: The updates firehose

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bill Nottingham wrote:
Don Russell (fedora@xxxxxxxxxxxxxxxxxxxxx) said:
What I *would* like (just started thinking about it) is a procmail recipe to divide the announcement e-mails into "installed" and "not installed" packages.

Well, there's no guarantee that you're reading the mail on the
box in question, etc. Perhaps something utilizing yum-updatesd
might be better?

Actually I can guarantee that because sendmail/procmail runs on my Fedora box... I access my e-mail via IMAP. But, I see your point in general applications... if I have F7 on my laptop for example, that mail-sorting method won't be accurate. But, for what I want... it's perfect. :-)


For example... I received an e-mail with this subject:
Fedora 7 Update: xorg-x11-server-1.3.0.0-8.fc7

Thats great... very consistent subject patterns, but from a programming point of view, how do I know where the program name ends (so I can use it with an rpm -q command to see if it is installed), and where the version number starts (so I can compare it with the results of rpm -q)? It would help is there was a blank between program name and version number... or even more explicit:
Fedora 7 Update: xorg-x11-server Version: 1.3.0.0-8.fc7

echo "xorg-x11-server-1.3.0.0-8.fc7" | awk -F '-' '{ print gensub("-"," ",NF-2) }'

There are certainly simpler ways.

Thanks.... I found a way to easily extract the info from the message boy using native procmail syntax.


--
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux