From: Bruce Ingalls <bingalls@CUT-this-SPAM-BLOCK.fit-zones.com>
Subject: Re: extract regexp
Date: Tue, 22 Apr 2003 17:31:19 GMT [thread overview]
Message-ID: <H%epa.16018$J17.15308@twister.nyc.rr.com> (raw)
In-Reply-To: <3EA56DB8.3090909@yahoo.com>
Kevin Rodgers wrote:
> Bruce Ingalls wrote:
>> Unfortunately, it gets a little more tricky, as I should check that
>> mail.server.server*.type
>> is pop3 or imap, and not nntp, but this is good enough.
>
> Is that information in the prefs.js file, or do you have to querey the
> server?
It's in prefs.js.
I didn't say everything about how I was using this code, and I suspect that
your correction (while appreciated) is not appropriate.
There is one nonstandard regex that I pass in, but otherwise, I can use
a normal
string for the key, and concat it.
I'm sure the previous line sounds like rambling, and I likely need to
explain myself in code.
You can see how I am actually using it, in the EMacro 2.7 beta at
<url: http://sf.net/projects/emacro/ >
in the files e-config.el and e-functions.el
I also use this function to import (the first possible) nntp news server,
as well as login IDs, etc.
Here are excerpts from my prefs.js file, with names slightly altered for
protection:
user_pref("mail.server.server1.directory",
"/home/bingalls/.mozilla/default/mo3abcd.slt/Mail/pop-server.aol.com");
user_pref("mail.server.server1.download_on_biff", true);
user_pref("mail.server.server1.empty_trash_on_exit", true);
user_pref("mail.server.server1.hostname", "pop-server.aol.com");
user_pref("mail.server.server1.spamLoggingEnabled", true);
user_pref("mail.server.server1.type", "pop3");
//...
user_pref("mail.server.server3.directory",
"/home/bingalls/.mozilla/default/mo3abcd.slt/News/news-server.aol.com");
user_pref("mail.server.server3.hostname", "news-server.aol.com");
user_pref("mail.server.server3.max_cached_connections", 2);
user_pref("mail.server.server3.name", "news-server.aol.com");
user_pref("mail.server.server3.newsrc.file",
"/home/bingalls/.mozilla/default/mo3abcd.slt/News/newsrc-news-server.aol.com");
user_pref("mail.server.server3.type", "nntp");
Thus, the mail.server.server?.type in prefs.js tells me that I have a
POP3, IMAP, NNTP or local folder.
The '*.type' follows the server name, by a variable number of lines.
prev parent reply other threads:[~2003-04-22 17:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-17 16:20 extract regexp Bruce Ingalls
2003-04-17 17:11 ` lawrence mitchell
2003-04-17 17:31 ` Kevin Rodgers
2003-04-22 14:08 ` Bruce Ingalls
2003-04-22 16:28 ` Kevin Rodgers
2003-04-22 17:31 ` Bruce Ingalls [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='H%epa.16018$J17.15308@twister.nyc.rr.com' \
--to=bingalls@cut-this-spam-block.fit-zones.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).