Quantcast
Channel: Rebex Q&A Forum - Recent questions and answers
Viewing all 3862 articles
Browse latest View live

Answered: How to convert linked resources to attachments

$
0
0

Actually, you should copy MediaType and other properties as well. So your code should look like this:

foreach (var res in mail.Resources)
{
    if (res.ContentId == null)
        continue;

    var att = new Attachment(res.GetContentStream(), res.FileName, res.MediaType);
    att.ContentId = res.ContentId;
    if (res.ContentDescription != null)
        att.ContentDescription = res.ContentDescription;
    if (res.ContentLocation != null)
        att.ContentLocation = res.ContentLocation;
    mail.Attachments.Add(att);
}

Connection type for FTP client

$
0
0

Hello
Does Rebex.FTP have equivalent to the System.Net.FtpClient.FtpDataConnectionType and how it is set for the FTP client?
Thank you

Answered: Is possible to do the Xml signature with the new version

$
0
0

Yes, it is possible to create signatures on .NET CF.

The code looks like this:

// load certificate with private key
var cert = Certificate.LoadPfx(certPath, certPassword);

// set desired parameters
var parameters = new SignatureParameters()
{
    HashAlgorithm = HashingAlgorithmId.SHA256,
    Format = SignatureFormat.Pkcs,
};

// compute signature
byte[] signedData = cert.SignMessage(dataToSign, parameters);

// convert binary data to base-64 string
string signature = Convert.ToBase64String(signedData);

However, you are responsible to provide dataToSign for the SignMessage method.

What I know about XML signatures, there is typically specified: normalization for XML, signature format, hash method, etc.

Nissan's Ceo Wagers 'Credibility' On Raising Revenue

$
0
0
In only several short times, i will commemorate the conclusion of 17 years as that most iconic of leaders, the main Executive Officer (universally called CEO). There will be on that day terms comical and serious; sort desires; wonder about when I want to retire and how that may impact things (quick solution. I enjoy my work much too much to offer it in my prime, that I define as whatever time, month and 12 months it is actually. It is a pleasant best business people time. with some tears, cheers and hugs at all times, which many smart group (officers and workers) dutifully sufficient reason for unfeigned deference gathering to know exactly what the old man has to say this time and wondering exactly how it's going to influence them.

Rebex.EWS.StoreMessage stores messages on exchange server in editable format

$
0
0

Hello
I am trying to put eml messages onto Exchange server, using Rebex.EWS, but messages received are in editable format, like draft messages. Below is the code I use

protected void SendMessage(byte[] emlData){
Rebex.Mail.MailMessage mailMsg = new Rebex.Mail.MailMessage();
mailMsg.Load(emlData);
//I tried to fix it with X-Unsent header, but it didn't work
messageMime.Headers.Add("X-Unsent", "0");
ews.StoreMessage(config.Folder.Id, mailMsg);
}

Thank you

page limit of POP3?

$
0
0

Is there a way to only pull 500 messages per check with POP3? Using VB for Reference. Extremely large mailbox so can't pull all messages at once.

Thanks
Nick

Topless Kate Middleton And Kristen Stewart, The Top News Difference

Connection type for FTP client

$
0
0

Hello
Does Rebex.FTP have equivalent to the System.Net.FtpClient.FtpDataConnectionType and how it is set for the FTP client?
Thank you


Lather Hair Salon Events To Raise Funds For Domestic Violence

$
0
0
liberal arts schoolWhen so you think you can dance have been spending lots of time online for more information about how to supply the perfect present, you almost certainly have realized chances are that just about all talks seem to revolve the work of gift offering across the a few ideas of economics and cash. And, rightly therefore, because almost anything material nowadays involves spending.

The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

$
0
0

Hello,

just downloaded the Trial of your Secure Mail component and want do use it from another software (ZennoPoster, an webautomation framework in C#). The problem is, when I try to add the reference to e.g. your Rebex.Networking.dll or Rebex.Smtp.dll I get the following error:

""Connection assembly to project"
Message: "System.ApplicationException: Could not load exported type data for assembly 'Rebex.Networking, Version=3.0.6249.0, Culture=neutral, PublicKeyToken=1c4638788972655d'. ---> System.IO.FileLoadException: Could not load file or assembly 'Rebex.Common, Version=2.0.6249.0, Culture=neutral, PublicKeyToken=1c4638788972655d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at #Rye.#eze..ctor(Assembly assembly, String assemblyFullName, String assemblyLocation, String cachePath, Boolean documentationEnabled)
--- End of inner exception stack trace ---
at #Rye.#eze..ctor(Assembly assembly, String assemblyFullName, String assemblyLocation, String cachePath, Boolean documentationEnabled)"

Referencing other .dlls e.g. Rebex.Common.dll or Rebex.Mail.dll works fine. Also when I add the .dlls to a VS2008 project all of them are working and I even tested to send out an email with SMTP via SSH and the email arrives at the recipient.

Would be great if you can help me out with this error.

Thank you!
Best,
Martin

FTP with HTTP Connect Proxy - Can't open data Connection (425)

$
0
0

Hello,

I encounter some issue with Rebex FTP but only for one of my FTP's Provider. I succeed to access FTP through FileZilla but not with FTP Rebex.

It seems FileZilla use the Proxy for each action but not the Rebex one.

See my logs below (reach max characters):

Answered: page limit of POP3?

$
0
0

Please note that POP3 protocol is very old and paging was never introduced in it. The POP3 was intended to synchronize remote POP3 mailbox with user's local mailbox copy the most easiest way.

The suggested routine is like this:

  1. get list of unique ids in remote mailbox
  2. compare retrieved list with local mailbox copy
  3. download missing mails in local mailbox sequentially

Some kind of database is required on client to hold information about already downloaded mails (unique ids) and to solve situations for deleted mails on client/server.

To get list of unique ids from server use:

pop3.GetMessageList(Pop3ListFields.UniqueId | Pop3ListFields.SequenceNumber);

You may also find GetMessageSequenceNumber() method helpful.

Then instead paging, download mails sequentially using the GetMessage() method.
Alternatively use GetMessageInfo(Pop3ListFields.FullHeaders) method if you don't want to download whole message (only headers such as From, To, CC, Subject, etc. are received).

SFTP server in java

$
0
0

Hi, does the rebex has FileServer API that support java? We are looking into setting up our own SFTP server in linux environment. Thanks in advance!

Answered: FTP with HTTP Connect Proxy - Can't open data Connection (425)

$
0
0

Can you please try the same with the latest version. The version you used is from 2012.

If it is not working, please post here log with LogLevel.Debug.

How can I parse .p7s file for Signer

$
0
0

How can I parse the digital signature (.p7s) so I can get information like:
Subject, From, Signed by, Validity, etc..?


Abort Connection

$
0
0

Hello,
In your sample FtpWinFormClient, the "Abort" button works only for Upload.

If I am trying to download and I click "Abort", the connection is blocked, and if I re-try to re-download something everything is blocked!

So I would like to know if it is a bug or the "Abort" button only concerns the upload methode???

Answered: How can I parse .p7s file for Signer

$
0
0

If you view a Digital Signature in Microsoft Outlook it explicitly has:

Digital Signature:
Subject:
From:
Signed By:
etc...
I will send you a picture of what I am talking about.

Secure mail throws exception while decrypting AES192

$
0
0

Hi,

This happens while trying to decrypt an EML file. The same file can be decrypted by other 3rd party component.
Could someone help me on this?

Encryption Status:

The message is encrypted.
The message can be decrypted.
Rebex.Security.Certificates.CertificateException: Unable to decrypt data (00000057).
at Rebex.Security.Certificates.Certificate.QY(Byte[] C, Boolean V)
at Rebex.Security.Certificates.Certificate.Decrypt(Byte[] rgb, Boolean silent)
at Rebex.Security.Cryptography.Pkcs.KeyTransRecipientInfo.GW(Boolean C)
at Rebex.Security.Cryptography.Pkcs.EnvelopedData.GetSymmetricKey()
at Rebex.Security.Cryptography.Pkcs.EnvelopedData.RH()
at Rebex.Security.Cryptography.Pkcs.EnvelopedData.Decrypt()
at Rebex.Mime.MimeEntity.Decrypt()
at Rebex.Mail.MailMessage.Decrypt()
at at.Mime.Program.UseRebex(String sourcePath) in C:\Users\inm\Documents\Visual Studio 2017\Projects\at.Mime\at.Mime\Program.cs:line 118

OAEP support in Secure Mail

$
0
0

Hi,

I know that the current version does not support OAEP. Can you give a timeframe for implementation if there is any? I need that feature by the end of the year.

Regards,

GetItems Traverse Mode does not work

$
0
0

Hello
I am using Rebex.FTP(v. 4.0.6249.0) library for my FTP client and I have troubles with GetItems method's traversalMode parameter. If it is set to NonRecursive, only the current directory is returned and not the files inside. If I use MatchFilesShallow or MatchFilesDeep, I get "Ambiguous usage of path and mode.\r\nParameter name: remotePath" exception. Could you please provide any workaround for this problem?
Thank you

Viewing all 3862 articles
Browse latest View live