AUR registration rejecting valid email address
Apparently the pattern that's supposed to match email addresses for AUR registration doesn't match email addresses with '+' in the username portion. I'd appreciate if this could be fixed.
edit: it should be as simple as replacing
web/lib/aur.inc:125
return eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,4}$", $addy);
with
return preg_match('/([\w-+]+(?:\.[\w-+]+)*@(?:[\w-]+\.)+[a-zA-Z]{2,7})/', $addy);
which will match a wider variety of email addresses
Last edited by MindlessXD (2008-05-25 21:59:00)
You should post this to the aur-dev mailing list so this post does not get overlooked by the people working on the AUR.
http://www.archlinux.org/mailman/listinfo/
Similar Messages
-
Validating email address - please help?
hi,
i have registration form in jsf, and i have a field for an email address, i was wandering if anyone knows how to validate the email address, when this is submitted to a javabean, to make sure it is an actual valid email address and that both email addresses ( re-entered ) entered are the same.
so what i really want is the javacode for the javabean that can validate the email address to make sure it is valid.
any help is appreciated
thanks.Here's how I did a Postal code validation:
public void validatePostalCode(FacesContext context, UIComponent toValidate, java.lang.Object inputValue) throws
ValidatorException {
Pattern pattern;
String expression = "\\D{1}\\d{1}\\D{1}\\d{1}\\D{1}\\d{1}"; // x9x9x9
String value = null;
try {
value = inputValue.toString();
pattern = Pattern.compile(expression);
this.postalCodeValidationError = !pattern.matcher(value).matches();
} catch (ClassCastException e) {
throw new ValidatorException(
new FacesMessage(
"Validation Error: Value " +
"cannot be converted to String.",
null));
if (this.postalCodeValidationError) {
// Here you do what ever you want when the validation fails
// Like generating an error in JSF ... see ValidatorException
On your JSP page add "validator="#{yourBean.validatePostalCode}"" to your inputText tag.
It would be a good idea to read on Java's regular expression stuff to fihure out the expression you need to pass to Pattern.compile(expression) in order to validate the email address.
Hope this help. Cheers -
SendFailedException, valid email addresses not sent
Hi all,
I'm using the JavaMail 1.2 API to send email to an SMTP server and I'm having a problem with invalid addresses. I'm using the Transport.sendMessage(Message, Address[]) method. The API docs says, ". Also, if any of the addresses is invalid, a SendFailedException is thrown. Note however, that the message is sent to the valid addresses."
However, if there is an invalid address I get the SendFailedException as expected, but the message is not sent to the valid email addresses.
Has anyone experienced this? Solutions, workarounds?
Thanks,
DerekHello Sir,
I am working on an Enterprise Java Bean Application running on J2EE application server..Also using JavaMail API to send Emails through my application.
I am able to send emails successfully through it and sending it into a loop one after the other...
What i am tring to do is, if i encounter an Invalid Email Address the application throws me an SendFailedException and from this SendFailedException i want to catch Invalid Email Addresses... so that i will come to know which emails where sent and which were not...
But the problem is that ,if an Invalid Email Address is encountered and after throwing me an SendFailedException if i try to Catch the Invalid Address ,like
Address[] invalid = sfe.getInvalidAddresses();
and print an SOP after this,
System.out.println("Collected InvalidAddress from SendFailedException...."+invalid);
the SOP prints "Null" ...
The Invalid Email Address is also an well Formed String....e.g... "[email protected]"...
The complete Exception is .....
The exception is javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.SendFailedException: 554 <[email protected]>: Recipient address rejected: Domain not found
The Code is ..
<Code>
MimeMessage msg = new MimeMessage(session);
msg.setFrom(new InternetAddress(eMess.getEmailSender()));
String to = "";
msg.setRecipients(Message.RecipientType.TO,
InternetAddress.parse(to, false));
msg.setRecipients(Message.RecipientType.BCC,
InternetAddress.parse(eMess.getEmailReceiver(), false));
msg.setSubject(eMess.getSubject());
msg.setContent(eMess.getHtmlContents(),"text/plain");
msg.saveChanges();
try {
Transport.send(msg);
System.out.println ("The Email has been sent successfully....");
} catch (javax.mail.SendFailedException sfe) {
System.out.println("The exception in MailHelper is " + sfe);
ArrayList al = new ArrayList();
Collection badAddresses = null;
System.out.println("Collecting InvalidAddress from SendFailedException....");
Address[] invalid = sfe.getInvalidAddresses();
System.out.println("Collected InvalidAddress from SendFailedException...."+invalid);//this SOP is Null....
if (invalid != null) {
System.out.println("Invalid Addresse(s) found......");
if (invalid.length > 0) {
for (int x = 0; x < invalid.length; x++) {
invalidAddresses = invalid[x].toString();
System.out.println("The Invalid Addresses are :"+invalidAddresses);
</Code>
Can anybody help me out with this problem.Any suggestion or code can be greatly appreciated...
Thanks a million is advance...
Regards
Sam -
JavaMail and Valid Email Address
Hello All,
I am using JavaMail API to send thousands of emails every day through my application running on J2EE application server...
But what i really want to do is, how do i check whether a particular Email Address is Valid or not,if not valid then catch a exception and report it....
Also i meant by Valid email address as to be exsisting on that mail server..e.g "[email protected]"...i.e.the user "javamail" should exist on that domain "sun.com"...
Is there any way which i can do the above thing?
Also,since i will be sending 1000's of emails every day will it be feasible for me to check each and every email whether it exist or not and then send it.....how much time will it take to do the same...
Please help me out with this,can anybody give me a Detail desciption and Code of how can i do it...
Any suggestions are greatly appreciated
Thanks a million is advance
SamE-mail generally passes through a whole series of Mail Transfer Agents before arriving on the target machine, and it could be rejected at any stage.
It may wind up waiting in a queue. It could be days before it reaches a machine that knows whether the user is valid or not.
And machines aren't as helpful as they used to be about letting out information about available e-mail addresses,
too many evil spammers about.
You can test the format, though I've seen a lot of active e-mail addresses with what I believe are invalid characters in them apparently find their way through.
In theory you could look up the domain part of the address on the DNS. If you don't find either an "A" record or a "MX" record then niether will your mail transfer agent. AFAIK there's no standard java classes for doing that but there may be some out there on the net.
There's no sure way of validating a user name except sending a mail and see if it bounces. -
how can I change an email for authorization, the email address we used years back, is no longer a valid email address
SfromW wrote: ... how can I change an email for authorization, the email address we used years back, is no longer a valid email address
How to change account here: http://support.apple.com/kb/PH1641
If you need more help, start here: http://www.apple.com/support/itunes/
SfromW wrote: ... we can't remember the password from the old email address (for authorization)...
Help Retrieving and changing passwords here: http://support.apple.com/kb/HT1911
If you need more help, from iTunes for Windows, click iTunes > iTunes Store > Support
SfromW wrote: ... apple should make it easier to transfer authorization authority....I would think anyways.
You might want to rethink your thoughts about making transferring authority easier. Making it too easy would certainly degrade your account's security. If you still believe it should be easier, you can send feedback directly to Apple via http://www.apple.com/feedback/itunesapp.html
You will not get a response, but you can be certain that the responsible Apple people will see your input for consideration in FaceTime product development.
As a new user, please understand that you are NOT directly addressing Apple here. For more info about Apple discussions, start here: http://discussions.apple.com/static/apple/tutorial/etiquette.html
Message was edited by: EZ Jim
Mac OSX 10.7.4 -
I can't set up my email on my ipod touch. It keeps saying I have to use a valid email address for this account. Help!
Hi Annie,
Make sure when you are setting up your e-mail account that you enter in your entire e-mail address. If you have a Yahoo (includes any e-mail account associated with Yahoo), G-mail, or Aol after entering in your password it should automatically set up. Any other e-mail address you will have to manually set the account up. -
I restored my ipod touch however the apps will not sync. I tried to re-download but I changed my apple id as my old id is no longer a valid email address. Any ideas out there please?
It might be logical to someone, but not to me. I agree it's a pain.
How did you change your Apple ID? Creating a new one is not what you want to do, but if you changed the ID associated with your purchases then that might have worked. You would need to sign in with the Apple ID on both your iPod Touch as well as in iTunes. I'm not sure how you changed it but clearly they need to match.
If it's just your password that is not getting recognized reset it here: http://iforgot.apple.com/
It will send an email confirmation to the email address associated with that Apple ID. The email address you elect to use might not look anything like your Apple ID. If you don't appear to get an email check your spam filter. -
"" does not appear to be a valid email address. Verify the address and try again.
I am getting this error whenever I copy an email address from somewhere and paste it into the 'To' field.
“” does not appear to be a valid email address. Verify the address and try again.
Whattup with that?
Only way to get around it seems to be either typing the whole address in (uh!) or clicking on the email address and letting Mail create the new message. Both are not the way I need to do things and it used to work perfectly in Snow Leopard, as would be expected for such a basic sort of command.I had the same problem with multiple adressess:
I used the " ; " as a seperator.
The message was sent with no trouble at all as soon as I used the " , " (comma) instead.
Hope this helps -
Spry validation and validating email address?
I've seen that spry can be used to validate forms. I have not
seen an
example of an email address or more complicated validating
being done.
Where's a good source for how to do this?Validating email addresses is not entirely possible. You can
only validate
the SYNTAX of an email address. This is best done server side
rather than
client side (or perhaps both ways) since validating only
client side can be
defeated by simply disabling javascript.
I like the Spry validation, though, because it is EXTREMELY
flexible and
easy to use. David Powers has some very good discussions
about Spry in his
Dreamweaver CS3 with CSS. Ajax, and PHP book, as does David
McFarland in his
Dreamweaver CS3: The Missing Manual.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Art" <lee_nospam_@nospam_artjunky.com> wrote in
message
news:fe5uke$pu7$[email protected]..
> I've seen that spry can be used to validate forms. I
have not seen an
> example of an email address or more complicated
validating being done.
>
> Where's a good source for how to do this? -
On the iPhone, when the server rejects the email address and it sits in the outbox, why doesn't it automatically resend when the server is fixed?
Hi Razmee,
Thanks for your response.
The mail server worked when I originally set it up and continued to work for months afterwards.
What would make the outgoing mail server not be set up correctly after all that time?
Thanks again. -
MSEXchange not rejecting bad email addresses
I have written a specialized email application In ACCES 2010 for my department. At first I couldn't send email outside our domain so the server folks turned on relay and gave me a static IP address. However, now the mail server does not reject bad email
addresses unless I leave off everything to the right of the @ sign. Example my real address is
[email protected]. But if I change something in the address, such as
[email protected] I don't get an error message back from the mail server, error handling is ignored and it counts as being sent. This is true for emails going both inside and outside the domain.
It seems to me that something needs to be configured on the host, or I need to do something in my ap. (I'm no expert here.) The Send part of the code is an ACCESS 2010 function. (Mail server is MSExchange 2010.) If nothing is wrong it works great.
Public Sub SendAMessage(strFrom As String, strTo As String, _
strSubject As String, strTextBody As String, _
Optional strAttachDoc As String, Optional strCC As String, _
Optional strBcc As String)
On Error GoTo ErrorHandler
Set objMessage = New CDO.Message
With objMessage
.From = strFrom
.To = strTo
Debug.Print strTo
If Len(Trim$(strCC)) > 0 Then
.CC = strCC
End If
If Len(strBcc) > 0 Then
.BCC = strBcc
End If
.Subject = strSubject
.TextBody = strTextBody
If Len(strAttachDoc) > 0 Then
.AddAttachment strAttachDoc
End If
With .Configuration.Fields
.Item(CDO.cdoSMTPServer) = "mymail"
.Item(CDO.cdoSMTPServerPort) = xx
.Item(CDO.cdoSendUsingMethod) = CDO.cdoSendUsingPort
.Item(cdoSMTPConnectionTimeout) = xx
.Update
End With
.Send
End With
Set objMessage = Nothing
Dim CurDateTime As DependencyInfo
CDateTime = Now()
Dim AccountNo As String
AccountNo = GBL_Master_Id
If GBL_PostMailSwitch = True Then 'Test if in management and skip the next three statements
Dim SentSql As String
'DoCmd.SetWarnings False
'SentSql = "INSERT INTO SentEmailTbl(Account_Number, Event, DateSent) Values('" & GBL_Master_Id & "', '" & GBL_Event & "', # " & Now() & " #)"
'DoCmd.RunSQL SentSql
'DoCmd.SetWarnings True
End If
Exit Sub
ErrorHandler:
Dim BadEmSql As String
Dim emVal As String
'MsgBox "in error Handler" & " " & Err.Number
'If Err.Number = -2147220977 Or -2147220980 Then
'MsgBox "Bad email"
DoCmd.SetWarnings False
BadEmSql = "INSERT INTO EmErrorsTbl(AccountNo, EmailAddress, ErrNo, ErrMsg, ErrDate) VALUES('" & GBL_Master_Id & "', '" & strTo & "', '" & Err.Number & "', '" &
Err.Description & "','" & GBL_DateSent & "')"
GBL_Rejected = GBL_Rejected + 1
Forms!EmailForm!emRejected = GBL_Rejected
DoCmd.RunSQL BadEmSql
DoCmd.SetWarnings True
'End If
Resume Next
End Sub
Thanks in advanceHi,
Generally, when you send an email to an address that doesn't exist via OWA or Outlook, you will receive a NDR explaining that delivery has failed.
Please disable the app temporarily and check the result. If the issue disappears, there is something wrong with the app code. Actually, we have a dedicated support team regarding the Microsoft Office for Developers. I recommend you ask your question on our
Microsoft Office for Developers forum which is staffed by more experts specializing in this kind of problems. For your convenience:
http://social.msdn.microsoft.com/Forums/office/en-US/home?forum=accessdev
Thanks for your understanding.
Best regards,
Amy
Amy Wang
TechNet Community Support -
Please help! Valid email address?
Why do I keep getting asked to enter a valid email address? I have verified my email but yet I can not continue with adobe unless I enter my email WHICH I HAVE!
This is a User 2 User site. We do not have control over how the site functions. But all users must signin to the forums to post. When you sign in review the options and select options that might adjust you login, like "remember me" or "stayed logged in".
-
I have money left on an old Itunes Apple ID email account which is no longer a valid email address.. How do I transfer those funds to my new Apple ID?
Thanks in advance for any assistance in this matter.
SandyButler4Click here and request assistance.
(65392) -
trying to rent movie from Apple TV. Message states a valid address is necessary to purchase. We have purchased about 15 show in the last month along. Any suggestion on how to update valid email address.
I got the same error and can't get it to work. My email and home address have not changed in the 3 years I've been using this device, my credit card info is up to date and my most recent rental was 2 days ago yet I get the error message on both the Apple TV and in iTunes. I don't understand what the issue is, nothing is invalid.
-
Any service available on net to check valid email addresses?jwenting, help.
Is there any 100% reliable service available on net to check the valid email address so that the mail should not get bounced back if sent to the email id.
According to jwenting in previous topic, there is one service. Here are his quotes.
Spammers would love to have such a
service. Just send random combinations to that
service at a rate of a hundred thousand a minute and
you have in a few hours a complete list of all
working addresses on the net.
Good enough that you can repeat the process before
every run and you're never getting bounces again.Could anybody explain what is meant by this?He's saying "No there is no such service". It would provide yet another haven for crappy spammers.
Maybe you are looking for
-
How to load external resources such as JavaScript files, etc. ?
Hello, I'd like to put my resources files such as my scripts, my stylesheets, in a jar file, included in my webapp. How can I refer to these files in my JSP file ? Should I make a filter ? Can someone help me please ? Thanks in advance. bgOnline
-
I have windows xp. I 'm trying to download the airPort utility. how can I do this? It is required for AirPort base station right?
-
Please tell me how to adjust field width for alv data .
Hi, Please tell me how to adjust field width for alv data . Also i want to remove zeros after decimal coming in field. Regards, Ranu
-
Trying to move my images from XP PSE 11 to WIN 8.1 with PSE12. can get part way but catalog seemed scrambled first time. What are the process steps.
-
how do i unblock adobe flash